I'm reporting this bug because the package in summary fails to build when forcing --as-needed on through spec files (check out http://blog.flameeyes.eu/2008/11/14/problems-and-mitigation-strategies-for-as-needed for details). Please note that this bug _might_ apply to -Wl,--as-needed in LDFLAGS as well; in both cases it should be fixed. Also, if this is due to the package in question not respecting user-defined LDFLAGS, you should get to fix that too. Check the attached build log. Thanks, Diego
Created attachment 213217 [details] Build log
I would appreciate help on this, since I don't know how to go about fixing this in this package.
That really a nasty build system. libxutils.so has to additionally linked against -lxncbi. I don't know if that is everything, but will be a starting point. But I cannot find the the linking lines in the makefiles.
Created attachment 218585 [details, diff] adding patch to ebuild
Created attachment 218587 [details, diff] fixing as-needed issues
+*ncbi-tools++-2009.05.15-r6 (26 Jun 2010) + + 26 Jun 2010; Justin Lecher <jlec@gentoo.org> + -ncbi-tools++-2009.05.15-r5.ebuild, +ncbi-tools++-2009.05.15-r6.ebuild, + +files/ncbi-tools++-2009.05.15-asneeded.patch: + Fixed as-needed problem +
Still not solved: ccache /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -c -Wall -Wno-format-y2k -pthread -O2 -pipe -march=core2 -frecord-gcc-switches -mssse3 -mcx16 -mmmx -g -Wmissing-include-dirs -Wenum-compare -fPIC -DNDEBUG -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_MT -D_REENTRANT -D_THREAD_SAFE -I/var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/inc -I/var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/include /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/src/util/test/test_compress.cpp -o test_compress.o /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -pthread -Wl,-O1 -Wl,-O1,--hash-style=gnu,--sort-common -O -Wl,-E test_compress.o -Wl,-rpath,/var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/image//usr/lib64/ncbi-tools++ -Wl,-rpath-link,/var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib -L/var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib -lxutil -lxcompress -lxncbi -lz -lbz2 -llzo2 -lrt -lm -lpthread -o test_compress /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `ncbi::CByteSourceReader::Seekg(std::fpos<__mbstate_t>)' /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `ncbi::CByteSourceReader::SubSource(unsigned long, ncbi::CRef<ncbi::CSubSourceCollector, ncbi::CObjectCounterLocker>)' /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `ncbi::CByteSourceReader::CByteSourceReader()' /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `ncbi::CByteSourceReader::Pushback(char const*, unsigned long)' /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `ncbi::CByteSourceReader::EndOfData() const' /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `typeinfo for ncbi::CByteSourceReader' /var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/lib/libxcompress.so: undefined reference to `ncbi::CByteSourceReader::~CByteSourceReader()' collect2: ld returned 1 exit status make[7]: *** [test_compress] Error 1 make[7]: Leaving directory `/var/tmp/portage/sci-biology/ncbi-tools++-2010.06.15/work/ncbi_cxx--Jun_15_2010/GCC444-ReleaseMTDLL64/build/util/test'
+*ncbi-tools++-2010.06.15-r1 (04 May 2011) + + 04 May 2011; Justin Lecher <jlec@gentoo.org> + -ncbi-tools++-2009.05.15-r6.ebuild, ncbi-tools++-2010.06.15.ebuild, + +ncbi-tools++-2010.06.15-r1.ebuild, + +files/ncbi-tools++-2010.06.15-asneeded.patch, + +files/ncbi-tools++-2010.06.15-asneeded-ng.patch: + Fix for asneeded, #297193; removed old, #312921 +