Re: [Boost-bugs] [Boost C++ Libraries] #986: Problem building Python modules on boost 1.34.0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #986: Problem building Python modules on boost 1.34.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-05-30 00:20:43


#986: Problem building Python modules on boost 1.34.0
-----------------------------+----------------------------------------------
  Reporter: CarlosEDP | Owner:
      Type: Bugs | Status: new
 Milestone: Boost 1.34.1 | Component: Python
   Version: release 1.34.0 | Severity: Showstopper
Resolution: | Keywords:
-----------------------------+----------------------------------------------
Comment (by grafik):

 The attached patch "fixes" the Boost.Build errors. But it still doesn't
 work in my case. Without a `user-config.jam`, and mscv-8.0, and
 gcc-3.4.5(mingw) I get (in that order):

 {{{
 $ bjam --toolset=msvc
 ...patience...
 ...found 1153 targets...
 ...updating 7 targets...
 msvc.link.dll bin\msvc-8.0\debug\threading-multi\extending.pyd
 bin\msvc-8.0\debug\threading-multi\extending.lib
 LINK : fatal error LNK1104: cannot open file 'boost_python-vc80-mt-gd-
 1_34.lib'

         call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
 x86 >nul
 link /NOLOGO /INCREMENTAL:NO /DLL /DEBUG /subsystem:console
 /out:"bin\msvc-8.0\debug\threading-multi\extending.pyd"
 /IMPLIB:"bin\msvc-8.0\debug\threading-multi\extending.lib"
 /LIBPATH:"c:\Python24\libs" @"bin\msvc-8.0\debug\threading-
 multi\extending.pyd.rsp"
         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
         if exist "bin\msvc-8.0\debug\threading-
 multi\extending.pyd.manifest" (
             mt -nologo -manifest "bin\msvc-8.0\debug\threading-
 multi\extending.pyd.manifest" "-outputresource:bin\msvc-8.0\debug\
 threading-multi\extending.pyd;2"
         )

 ...failed msvc.link.dll bin\msvc-8.0\debug\threading-multi\extending.pyd
 bin\msvc-8.0\debug\threading-multi\extending.lib...
 msvc.link bin\msvc-8.0\debug\threading-multi\embedding.exe
 LINK : fatal error LNK1104: cannot open file 'boost_python-vc80-mt-gd-
 1_34.lib'

         call "C:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
 x86 >nul
 link /NOLOGO /INCREMENTAL:NO /DEBUG /subsystem:console
 /out:"bin\msvc-8.0\debug\threading-multi\embedding.exe"
 /LIBPATH:"c:\Python24\libs" @"bin\msvc-8.0\debug\threading-
 multi\embedding.exe.rsp"
         if %ERRORLEVEL% NEQ 0 EXIT %ERRORLEVEL%
         if exist "bin\msvc-8.0\debug\threading-
 multi\embedding.exe.manifest" (
             mt -nologo -manifest "bin\msvc-8.0\debug\threading-
 multi\embedding.exe.manifest" "-outputresource:bin\msvc-8.0\debug\
 threading-multi\embedding.exe;1"
         )

 ...failed msvc.link bin\msvc-8.0\debug\threading-multi\embedding.exe...
 ...skipped <pbin\test_ext.test\msvc-8.0\debug\threading-multi>test_ext for
 lack of <pbin\msvc-8.0\debug\threading-multi>extending.pyd...
 ...skipped <pbin\test_embed.test\msvc-8.0\debug\threading-
 multi>test_embed.run for lack of <pbin\msvc-8.0\debug\threading-
 multi>embedding.exe...
 ...failed updating 3 targets...
 ...skipped 4 targets...
 }}}

 {{{
 $ bjam --toolset=gcc
 gcc.link.dll ..\..\..\..\bin.v2\libs\python\build\gcc-mingw-3.4.5\debug\
 boost_python-mgw34-d-1_34_1.a ..\..\..\..\bin.v2\libs\python\build\gcc-
 mingw-3.4.5\debug\boost_python-mgw34-d-1_34_1.dll
 Creating library file: ..\..\..\..\bin.v2\libs\python\build\gcc-
 mingw-3.4.5\debug\boost_python-mgw34-d-1_34_1.a
 ..\..\..\..\bin.v2\libs\python\build\gcc-mingw-3.4.5\debug\numeric.o: In
 function
 `ZN5boost6python7numeric68_GLOBAL__N_.._.._.._.._libs_python_src_numeric.cpp_62998629_0651A16318throw_load_failureEv':c:/DevRoots/Boost/boost_1_34/libs/python/example/quickstart/../../../../libs/python/src/numeric.cpp:28:
 undefined reference to `_imp__PyExc_ImportError'
 ..\..\..\..\bin.v2\libs\python\build\gcc-mingw-3.4.5\debug\numeric.o: In
 function
 `ZN5boost6python7numeric68_GLOBAL__N_.._.._.._.._libs_python_src_numeric.cpp_62998629_0651A1634loadEb':c:/DevRoots/Boost/boost_1_34/libs/python/example/quickstart/../../../../libs/python/src/numeric.cpp:56:
 undefined reference to `_imp__PyType_Type'
 [[[--- And many more of the same flavor ---]]]
 }}}

 And the behavior doesn't change if I enable my `user-config.jam`.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/986#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:55 UTC