[sleuthkit-developers] [ sleuthkit-Bugs-3382081 ] tsk 3.2.2 missing libstdc++ in static build
Brought to you by:
carrier
From: SourceForge.net <no...@so...> - 2011-10-25 16:52:12
|
Bugs item #3382081, was opened at 2011-07-29 13:45 Message generated for change (Comment added) made by jbmetz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3382081&group_id=55685 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Other Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Joachim Metz (jbmetz) Assigned to: Nobody/Anonymous (nobody) Summary: tsk 3.2.2 missing libstdc++ in static build Initial Comment: The static build of the sleuthkit 3.2.2 is missing the C++ standard library. Bindings that use the static library fail to find __cxa_pure_virtual A work around is run: LDFLAGS=-lstdc++ ./configure LDFLAGS=-lstdc++ make ---------------------------------------------------------------------- >Comment By: Joachim Metz (jbmetz) Date: 2011-10-25 18:52 Message: Proposed fix add the following statement to configure.ac: AC_CHECK_LIB(stdc++, main) ---------------------------------------------------------------------- Comment By: Joachim Metz (jbmetz) Date: 2011-10-25 17:49 Message: The same issue shows up when building a deb package, in this case as warnings. dpkg-shlibdeps: warning: symbol __cxa_pure_virtual used by debian/sleuthkit/usr/lib/libtsk3.so.3.4.0 found in none of the libraries. dpkg-shlibdeps: warning: symbol __gxx_personality_v0 used by debian/sleuthkit/usr/lib/libtsk3.so.3.4.0 found in none of the libraries. dpkg-shlibdeps: warning: symbol _ZTVN10__cxxabiv120__si_class_type_infoE used by debian/sleuthkit/usr/lib/libtsk3.so.3.4.0 found in none of the libraries. dpkg-shlibdeps: warning: symbol _ZdlPv used by debian/sleuthkit/usr/lib/libtsk3.so.3.4.0 found in none of the libraries. dpkg-shlibdeps: warning: symbol _ZTVN10__cxxabiv117__class_type_infoE used by debian/sleuthkit/usr/lib/libtsk3.so.3.4.0 found in none of the libraries. ---------------------------------------------------------------------- Comment By: Michael Cohen (scudette) Date: 2011-09-20 15:04 Message: We have fixed this issue in pytsk by explicitly linking in libstdc++ as a workaround but this should really not be needed because pytsk itself does not require libstdc++. It would be cleaner to have tsk link it instead. ---------------------------------------------------------------------- Comment By: Joachim Metz (jbmetz) Date: 2011-09-20 07:05 Message: The issue surfaced when building a static version of pytsk on Ubuntu. http://code.google.com/p/grr/wiki/ServerInstallation A straightforward autoconf/make solution would be to detect and include the library. An alternative solution could be to implement your own __cxa_pure_virtual function From: http://stackoverflow.com/questions/920500/what-is-the-purpose-of-cxa-pure-virtual The __cxa_pure_virtual function is an error handler that is invoked when a pure virtual function is called. If you are writing a C++ application that has pure virtual functions you must supply your own __cxa_pure_virtual error handler function. For example: extern "C" void __cxa_pure_virtual() { while (1); } ---------------------------------------------------------------------- Comment By: Brian Carrier (carrier) Date: 2011-09-20 05:14 Message: Is there a autoconf/automake solution for this? I haven't experienced this problem yet when using the library. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=477889&aid=3382081&group_id=55685 |