|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
library dependency problem in qnxHi,
I compiled boost 1_35_0 libraries(regex and filesystem) in qnx 6.3.2, but when try to check your dependencies an undefined reference appears: # ld libboost_filesystem-mt.so ld: warning: bin.v2/libs/system/build/qcc/release/threading-multi/libboost_system-mt-1_35.so.1.35.0, needed by libboost_ filesystem-mt.so, not found (try using -rpath or -rpath-link) ld: warning: libm.so.2, needed by libboost_filesystem-mt.so, not found (try using -rpath or -rpath-link) ld: warning: libcpp.so.4, needed by libboost_filesystem-mt.so, not found (try using -rpath or -rpath-link) ld: warning: libc.so.2, needed by libboost_filesystem-mt.so, not found (try using -rpath or -rpath-link) ld: warning: cannot find entry symbol _start; defaulting to 08048284 libboost_filesystem-mt.so: undefined reference to `strcpy' libboost_filesystem-mt.so: undefined reference to `operator new[](unsigned)' libboost_filesystem-mt.so: undefined reference to `std::locale::locale(char const*, int)' libboost_filesystem-mt.so: undefined reference to `__cxa_rethrow' libboost_filesystem-mt.so: undefined reference to `sysconf' libboost_filesystem-mt.so: undefined reference to `utime' libboost_filesystem-mt.so: undefined reference to `stat64' libboost_filesystem-mt.so: undefined reference to `memmove' libboost_filesystem-mt.so: undefined reference to `std::exception::~exception()' libboost_filesystem-mt.so: undefined reference to `pathconf' libboost_filesystem-mt.so: undefined reference to `std::_String_base::_Xran() const' libboost_filesystem-mt.so: undefined reference to `wcslen' libboost_filesystem-mt.so: undefined reference to `boost::system::get_system_category()' libboost_filesystem-mt.so: undefined reference to `__cxa_call_unexpected' libboost_filesystem-mt.so: undefined reference to `std::_String_base::_Xlen() const' libboost_filesystem-mt.so: undefined reference to `memcpy' libboost_filesystem-mt.so: undefined reference to `mbrtowc' libboost_filesystem-mt.so: undefined reference to `malloc' libboost_filesystem-mt.so: undefined reference to `std::_Locinfo::~_Locinfo()' libboost_filesystem-mt.so: undefined reference to `_Mbcurmax' libboost_filesystem-mt.so: undefined reference to `readdir_r' libboost_filesystem-mt.so: undefined reference to `rmdir' libboost_filesystem-mt.so: undefined reference to `vtable for __cxxabiv1::__si_class_type_info' libboost_filesystem-mt.so: undefined reference to `wmemcpy' libboost_filesystem-mt.so: undefined reference to `operator delete(void*)' libboost_filesystem-mt.so: undefined reference to `__cxa_end_catch' libboost_filesystem-mt.so: undefined reference to `rename' libboost_filesystem-mt.so: undefined reference to `__gxx_personality_v0' libboost_filesystem-mt.so: undefined reference to `typeinfo for std::exception' libboost_filesystem-mt.so: undefined reference to `statvfs64' libboost_filesystem-mt.so: undefined reference to `write' libboost_filesystem-mt.so: undefined reference to `std::locale::id::_Id_cnt' libboost_filesystem-mt.so: undefined reference to `chdir' libboost_filesystem-mt.so: undefined reference to `_Unwind_Resume' libboost_filesystem-mt.so: undefined reference to `memchr' libboost_filesystem-mt.so: undefined reference to `__get_errno_ptr' libboost_filesystem-mt.so: undefined reference to `std::codecvt<wchar_t, char, _Mbstatet>::id' libboost_filesystem-mt.so: undefined reference to `__cxa_pure_virtual' libboost_filesystem-mt.so: undefined reference to `read' libboost_filesystem-mt.so: undefined reference to `unlink' libboost_filesystem-mt.so: undefined reference to `_Locksyslock' libboost_filesystem-mt.so: undefined reference to `_Unlocksyslock' The same occurs to any compiled library. Does anybody know how to solve it? I tried with ldd: # ldd libboost_filesystem-mt.so ./libboost_filesystem-mt.so: libboost_filesystem-mt.so => ./libboost_filesystem-mt.so (0xb8200000) ldd: ./libboost_filesystem-mt.so: Memory fault (core dumped) I do not figure out why this happens. Thanks Ricardo |
|
|
Re: library dependency problem in qnxOn Friday 02 May 2008 10:01:09 rperrone wrote:
> > Hi, > > I compiled boost 1_35_0 libraries(regex and filesystem) in qnx 6.3.2, but > when try to check your dependencies Trying to do what? > an undefined reference appears: > > # ld libboost_filesystem-mt.so > ld: warning: > bin.v2/libs/system/build/qcc/release/threading-multi/libboost_system-mt-1_35.so.1.35.0, > ld: warning: cannot find entry symbol _start; defaulting to 08048284 > libboost_filesystem-mt.so: undefined reference to `strcpy' This is twice wrong. First, you are trying to create executable from a shared object to a linker, without any module providing the 'main' function. Second, you should never use 'ld' directly, but use 'gcc' instead (which will make sure to link with all required system libraries). > The same occurs to any compiled library. Does anybody know how to solve it? > I tried with ldd: > > # ldd libboost_filesystem-mt.so > ./libboost_filesystem-mt.so: > libboost_filesystem-mt.so => ./libboost_filesystem-mt.so > (0xb8200000) > ldd: ./libboost_filesystem-mt.so: Memory fault (core dumped) This means your dynamic linker is buggy; please discuss this with the OS distributor. - Volodya _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build |
| Free embeddable forum powered by Nabble | Forum Help |