<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't get a Python extension to work (Boost.Python, g++) in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267665#M715337</link>
    <description>OK, tried all with gcc 3.3.2,&lt;BR /&gt;but I does not work really better :&lt;BR /&gt;&lt;BR /&gt;at python import, I get the same&lt;BR /&gt;"Fatal python error: Interpreter not initialized", but it seems that things go a little better, as some static varaiables get initialized (some messages in my code for that).&lt;BR /&gt;&lt;BR /&gt;Don't know if it THE pb, but :&lt;BR /&gt;When I "ldd" my libs, I find that my stlport&lt;BR /&gt;shared lib miss the "_U_Qfneg" symbol.&lt;BR /&gt;For some of my executables using the stlport,&lt;BR /&gt;this is not a pb, for others, it is !?!?!?&lt;BR /&gt;&lt;BR /&gt;This symbol is not defined anywhere in my gcc 3.3.2 distribution (gcclib.a particularly),&lt;BR /&gt;whereas it is in the gcc 3.2 one.&lt;BR /&gt;Is there any pb with the gcc 3.3.2 build on HP-UX 11 ?</description>
    <pubDate>Fri, 14 May 2004 02:08:21 GMT</pubDate>
    <dc:creator>Clerfayts</dc:creator>
    <dc:date>2004-05-14T02:08:21Z</dc:date>
    <item>
      <title>Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267661#M715333</link>
      <description>Configuration:&lt;BR /&gt;- HPUX 11&lt;BR /&gt;- GCC 3.2&lt;BR /&gt;- STLport 4.5.3&lt;BR /&gt;- Boost 1.30.2&lt;BR /&gt;- Python 2.2.1 from HP&lt;BR /&gt;&lt;BR /&gt;I successfully built a python extension in C++&lt;BR /&gt;using Boost.python (compile, link OK).&lt;BR /&gt;But when I import the module from python,&lt;BR /&gt;I get the following message (and python exits):&lt;BR /&gt;&lt;BR /&gt;% python&lt;BR /&gt;...&lt;BR /&gt;&amp;gt; import MyModule&lt;BR /&gt;...&lt;BR /&gt;Fatal python error: Interpreter not initialized&lt;BR /&gt;(version mismatch?)&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;Suspecting a bad python installation, I rebuilt&lt;BR /&gt;it myself, but ... same result.&lt;BR /&gt;&lt;BR /&gt;Note: This extension module works well on Windows XP / Visual C++ 6 and Linux Red Hat 7 / &lt;BR /&gt;Intel Compiler 7.0 and 7.1.&lt;BR /&gt;&lt;BR /&gt;Any idea of what could cause such crash ?&lt;BR /&gt;&lt;BR /&gt;Yours.&lt;BR /&gt;&lt;BR /&gt;Jean-Philippe.</description>
      <pubDate>Wed, 05 May 2004 02:25:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267661#M715333</guid>
      <dc:creator>Clerfayts</dc:creator>
      <dc:date>2004-05-05T02:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267662#M715334</link>
      <description>gcc 3.2.x does not support static initializers (such as global and static constructors) on HP-UX 11.x. I suggest you use gcc 3.3.x, and compile your own python with it.  Then boost and boost-python work fine. PS. how do you format messages in this forum?</description>
      <pubDate>Thu, 06 May 2004 03:09:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267662#M715334</guid>
      <dc:creator>Harri Pasanen_1</dc:creator>
      <dc:date>2004-05-06T03:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267663#M715335</link>
      <description>Thanks Harri for your answer.&lt;BR /&gt;&lt;BR /&gt;My last (before suicide ;-) idea was about&lt;BR /&gt;these initializer (but it was with very little hope !); so I was just in the process of trying GCC 3.3.2 !&lt;BR /&gt;You answer gives me real hope !&lt;BR /&gt;See you soon for the results ...&lt;BR /&gt;&lt;BR /&gt;Jean-Philippe.&lt;BR /&gt;&lt;BR /&gt;PS: As for the format of my messages on this forum, I don't know exactly; I use Mozilla 1.4&lt;BR /&gt;and write my messages right in the web user interface of the forum; I'm french too, so may be there is a language issue ?&lt;BR /&gt;</description>
      <pubDate>Thu, 06 May 2004 04:38:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267663#M715335</guid>
      <dc:creator>Clerfayts</dc:creator>
      <dc:date>2004-05-06T04:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267664#M715336</link>
      <description>Just a small precision:&lt;BR /&gt;&lt;BR /&gt;gcc 3.2.x does not support static initializers *in shared libraries* (such as global and static constructors) on HP-UX 11.x.&lt;BR /&gt;&lt;BR /&gt;Harri&lt;BR /&gt;&lt;BR /&gt;PS. The formatting seemed to be a browser issue, using Konqueror 3.1.0 it stripped away all the newlines from my replies...</description>
      <pubDate>Thu, 06 May 2004 05:27:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267664#M715336</guid>
      <dc:creator>Harri Pasanen</dc:creator>
      <dc:date>2004-05-06T05:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267665#M715337</link>
      <description>OK, tried all with gcc 3.3.2,&lt;BR /&gt;but I does not work really better :&lt;BR /&gt;&lt;BR /&gt;at python import, I get the same&lt;BR /&gt;"Fatal python error: Interpreter not initialized", but it seems that things go a little better, as some static varaiables get initialized (some messages in my code for that).&lt;BR /&gt;&lt;BR /&gt;Don't know if it THE pb, but :&lt;BR /&gt;When I "ldd" my libs, I find that my stlport&lt;BR /&gt;shared lib miss the "_U_Qfneg" symbol.&lt;BR /&gt;For some of my executables using the stlport,&lt;BR /&gt;this is not a pb, for others, it is !?!?!?&lt;BR /&gt;&lt;BR /&gt;This symbol is not defined anywhere in my gcc 3.3.2 distribution (gcclib.a particularly),&lt;BR /&gt;whereas it is in the gcc 3.2 one.&lt;BR /&gt;Is there any pb with the gcc 3.3.2 build on HP-UX 11 ?</description>
      <pubDate>Fri, 14 May 2004 02:08:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267665#M715337</guid>
      <dc:creator>Clerfayts</dc:creator>
      <dc:date>2004-05-14T02:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267666#M715338</link>
      <description>Harri,&lt;BR /&gt;I don't think you can format messages in the entry box. If that is necessary (e.g. for source code) I suggest you put the data in a small .TXT file and post it as an attachment.</description>
      <pubDate>Fri, 14 May 2004 08:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267666#M715338</guid>
      <dc:creator>Uwe Zessin</dc:creator>
      <dc:date>2004-05-14T08:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267667#M715339</link>
      <description>Hi, all.&lt;BR /&gt;&lt;BR /&gt;I've solved my "undefined _U_Qfneg" symbol&lt;BR /&gt;(debugging stlport code ...).&lt;BR /&gt;&lt;BR /&gt;But ... it steel doesn't work.&lt;BR /&gt;&lt;BR /&gt;Now, I'm trying to understand what happens in python itself ...&lt;BR /&gt;&lt;BR /&gt;See you soon.&lt;BR /&gt;&lt;BR /&gt;Jean-Philippe.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 May 2004 02:19:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267667#M715339</guid>
      <dc:creator>Clerfayts</dc:creator>
      <dc:date>2004-05-17T02:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267668#M715340</link>
      <description>I wonder why are you using stlport?And did you build your own Python?</description>
      <pubDate>Mon, 17 May 2004 02:51:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267668#M715340</guid>
      <dc:creator>Harri Pasanen_1</dc:creator>
      <dc:date>2004-05-17T02:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get a Python extension to work (Boost.Python, g++)</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267669#M715341</link>
      <description>STLport : We wanted a portable STL ... 'cause our project targets Windows XP, Linux and HP-UX.&lt;BR /&gt;&lt;BR /&gt;And all works perfectly under Wondows and Linux&lt;BR /&gt;&lt;BR /&gt;Boost.Python is built with STLport.&lt;BR /&gt;&lt;BR /&gt;Yes, I've built my own python with GCC 3.3.2&lt;BR /&gt;(as of STLport and Boost.python) :&lt;BR /&gt;./configure --enable-shared --with-gcc --with-threads --with-cxx=/usr/local/bin/g++ --with-libc=-lstdc++ -prefix=$HOME --exec-prefix=$HOME&lt;BR /&gt;&lt;BR /&gt;To go further, I put some printf in python, &lt;BR /&gt;and it seems some memory overflow occurs,&lt;BR /&gt;'cause the initialization flag of the interpreter is reset to 0 during "import MyModule", whereas the code that do this reset is never called ...</description>
      <pubDate>Mon, 17 May 2004 04:42:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/can-t-get-a-python-extension-to-work-boost-python-g/m-p/3267669#M715341</guid>
      <dc:creator>Clerfayts</dc:creator>
      <dc:date>2004-05-17T04:42:00Z</dc:date>
    </item>
  </channel>
</rss>

