Opened 12 years ago
Closed 12 years ago
#4699 closed Bugs (fixed)
Can't build serialization as a DLL with mingw-w64
Reported by: | Owned by: | Bryce Adelstein Lelbach | |
---|---|---|---|
Milestone: | To Be Determined | Component: | serialization |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: | Bryce Adelstein Lelbach |
Description
Using i686-w64-mingw32-gcc (GCC) 4.5.1 20100702 (prerelease):
$ bjam --with-thread --with-filesystem --with-date_time --with-program_options --with-serialization --layout=versioned toolset=gcc target-os=windows variant=release link=shared,static runtime-link=shared threading=multi threadapi=win32 define=BOOST_USE_WINDOWS_H nBuilding the Boost C++ Libraries.nn ...patience... ...found 1415 targets... ...updating 10 targets... gcc.link.dll bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll.a Creating library file: bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll.abin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_iarchive.o:basic_iarchive.cpp:(.text+0xcc5): undefined reference to `__imp___ZN5boost13serialization18extended_type_info4findEPKc' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_iarchive.o:basic_iarchive.cpp:(.text$_ZNSt8_Rb_treeIN5boost7archive6detail19basic_iarchive_impl12cobject_typeES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE16_M_insert_uniqueERKS4_[std::_Rb_tree<boost::archive::detail::basic_iarchive_impl::cobject_type, boost::archive::detail::basic_iarchive_impl::cobject_type, std::_Identity<boost::archive::detail::basic_iarchive_impl::cobject_type>, std::less<boost::archive::detail::basic_iarchive_impl::cobject_type>, std::allocator<boost::archive::detail::basic_iarchive_impl::cobject_type> >::_M_insert_unique(boost::archive::detail::basic_iarchive_impl::cobject_type const&)]+0x22): undefined reference to `__imp___ZNK5boost13serialization18extended_type_infoltERKS1_' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_iarchive.o:basic_iarchive.cpp:(.text$_ZNSt8_Rb_treeIN5boost7archive6detail19basic_iarchive_impl12cobject_typeES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE16_M_insert_uniqueERKS4_[std::_Rb_tree<boost::archive::detail::basic_iarchive_impl::cobject_type, boost::archive::detail::basic_iarchive_impl::cobject_type, std::_Identity<boost::archive::detail::basic_iarchive_impl::cobject_type>, std::less<boost::archive::detail::basic_iarchive_impl::cobject_type>, std::allocator<boost::archive::detail::basic_iarchive_impl::cobject_type> >::_M_insert_unique(boost::archive::detail::basic_iarchive_impl::cobject_type const&)]+0x76): undefined reference to `__imp___ZNK5boost13serialization18extended_type_infoltERKS1_' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_iarchive.o:basic_iarchive.cpp:(.text$_ZNSt8_Rb_treeIN5boost7archive6detail19basic_iarchive_impl12cobject_typeES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE16_M_insert_uniqueERKS4_[std::_Rb_tree<boost::archive::detail::basic_iarchive_impl::cobject_type, boost::archive::detail::basic_iarchive_impl::cobject_type, std::_Identity<boost::archive::detail::basic_iarchive_impl::cobject_type>, std::less<boost::archive::detail::basic_iarchive_impl::cobject_type>, std::allocator<boost::archive::detail::basic_iarchive_impl::cobject_type> >::_M_insert_unique(boost::archive::detail::basic_iarchive_impl::cobject_type const&)]+0x176): undefined reference to `__imp___ZNK5boost13serialization18extended_type_infoltERKS1_' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_oarchive.o:basic_oarchive.cpp:(.text$_ZNSt8_Rb_treeIN5boost7archive6detail19basic_oarchive_impl12cobject_typeES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE16_M_insert_uniqueERKS4_[std::_Rb_tree<boost::archive::detail::basic_oarchive_impl::cobject_type, boost::archive::detail::basic_oarchive_impl::cobject_type, std::_Identity<boost::archive::detail::basic_oarchive_impl::cobject_type>, std::less<boost::archive::detail::basic_oarchive_impl::cobject_type>, std::allocator<boost::archive::detail::basic_oarchive_impl::cobject_type> >::_M_insert_unique(boost::archive::detail::basic_oarchive_impl::cobject_type const&)]+0x22): undefined reference to `__imp___ZNK5boost13serialization18extended_type_infoltERKS1_' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_oarchive.o:basic_oarchive.cpp:(.text$_ZNSt8_Rb_treeIN5boost7archive6detail19basic_oarchive_impl12cobject_typeES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE16_M_insert_uniqueERKS4_[std::_Rb_tree<boost::archive::detail::basic_oarchive_impl::cobject_type, boost::archive::detail::basic_oarchive_impl::cobject_type, std::_Identity<boost::archive::detail::basic_oarchive_impl::cobject_type>, std::less<boost::archive::detail::basic_oarchive_impl::cobject_type>, std::allocator<boost::archive::detail::basic_oarchive_impl::cobject_type> >::_M_insert_unique(boost::archive::detail::basic_oarchive_impl::cobject_type const&)]+0x76): undefined reference to `__imp___ZNK5boost13serialization18extended_type_infoltERKS1_' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_oarchive.o:basic_oarchive.cpp:(.text$_ZNSt8_Rb_treeIN5boost7archive6detail19basic_oarchive_impl12cobject_typeES4_St9_IdentityIS4_ESt4lessIS4_ESaIS4_EE16_M_insert_uniqueERKS4_[std::_Rb_tree<boost::archive::detail::basic_oarchive_impl::cobject_type, boost::archive::detail::basic_oarchive_impl::cobject_type, std::_Identity<boost::archive::detail::basic_oarchive_impl::cobject_type>, std::less<boost::archive::detail::basic_oarchive_impl::cobject_type>, std::allocator<boost::archive::detail::basic_oarchive_impl::cobject_type> >::_M_insert_unique(boost::archive::detail::basic_oarchive_impl::cobject_type const&)]+0x17d): more undefined references to `__imp___ZNK5boost13serialization18extended_type_infoltERKS1_' follow bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/shared_ptr_helper.o:shared_ptr_helper.cpp:(.text+0x50): undefined reference to `__imp___ZN5boost13serialization13void_downcastERKNS0_18extended_type_infoES3_PKv' bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/shared_ptr_helper.o:shared_ptr_helper.cpp:(.text+0x107): undefined reference to `__imp___ZN5boost13serialization11void_upcastERKNS0_18extended_type_infoES3_PKv' collect2: ld returned 1 exit status "/srv/build/ccpc/win32-3/mingw-w64/mingw-w32-1.0-bin_x86_64-linux_20100702/bin/i686-w64-mingw32-g++" "-Wl,--out-implib,bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll.a" -o "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll" -Wl,-h -Wl,libboost_serialization-mgw45-mt-1_44.dll -shared -Wl,--start-group "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_archive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_iarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_iserializer.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_oarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_oserializer.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_pointer_iserializer.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_pointer_oserializer.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_serializer_map.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_text_iprimitive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_text_oprimitive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/basic_xml_archive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/binary_iarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/binary_oarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/extended_type_info.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/extended_type_info_typeid.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/extended_type_info_no_rtti.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/polymorphic_iarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/polymorphic_oarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/stl_port.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/text_iarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/text_oarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/void_cast.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/archive_exception.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/xml_grammar.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/xml_iarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/xml_oarchive.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/xml_archive_exception.o" "bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/shared_ptr_helper.o" -Wl,-Bstatic -Wl,-Bdynamic -Wl,--end-group -mthreads ...failed gcc.link.dll bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll.a bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll... ...removing bin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi/libboost_serialization-mgw45-mt-1_44.dll.a ...skipped <pstage/lib>libboost_serialization-mgw45-mt-1_44.dll.a for lack of <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_serialization-mgw45-mt-1_44.dll.a... ...skipped <pstage/lib>libboost_serialization-mgw45-mt-1_44.dll for lack of <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_serialization-mgw45-mt-1_44.dll... ...skipped <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_wserialization-mgw45-mt-1_44.dll.a for lack of <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_serialization-mgw45-mt-1_44.dll.a... ...skipped <pstage/lib>libboost_wserialization-mgw45-mt-1_44.dll.a for lack of <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_wserialization-mgw45-mt-1_44.dll.a... ...skipped <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_wserialization-mgw45-mt-1_44.dll for lack of <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_serialization-mgw45-mt-1_44.dll.a... ...skipped <pstage/lib>libboost_wserialization-mgw45-mt-1_44.dll for lack of <pbin.v2/libs/serialization/build/gcc-mingw-4.5/release/target-os-windows/threadapi-win32/threading-multi>libboost_wserialization-mgw45-mt-1_44.dll... ...skipped <pstage/lib>libboost_serialization-mgw45-mt.dll.a for lack of <pstage/lib>libboost_serialization-mgw45-mt-1_44.dll.a... ...skipped <pstage/lib>libboost_wserialization-mgw45-mt.dll.a for lack of <pstage/lib>libboost_wserialization-mgw45-mt-1_44.dll.a... ...failed updating 2 targets... ...skipped 8 targets...
Version 1.43 worked fine.
Change History (7)
comment:1 by , 12 years ago
comment:3 by , 12 years ago
Status: | new → assigned |
---|
comment:4 by , 12 years ago
Cc: | added |
---|---|
Resolution: | → duplicate |
Status: | assigned → closed |
Duplicate of #4747.
comment:5 by , 12 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
comment:6 by , 12 years ago
Owner: | changed from | to
---|---|
Status: | reopened → new |
Richard, this should be fixed. Please let me know if you're still having problems.
Note:
See TracTickets
for help on using tickets.
Same as #4375 ?