[Debian-med-packaging] C++ help needed for libfastahack
Andreas Tille
andreas at an3as.eu
Thu Jun 23 09:24:55 UTC 2016
Hi,
I need to package libfastahack[1] as a pre-pre-dependency for some
Debian Med package. The code comes with a manually crafted Makefile
that simply creates an executable while the pre-depencency of my
package[2] needs a devel package.
As I did yesterday successfully (thanks to the help of Gert) I again
considered it the easiest way to build the lib by adding configure.ac
and Makefile.am as quilt patch and use autoconf. This went fine until
to a linker problem which I do not understand:
...
libtool: link: ( cd ".libs" && rm -f "libfastahack.la" && ln -s "../libfastahack.la" "libfastahack.la" )
g++ -DHAVE_CONFIG_H -I. -I. -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -c -o FastaHack.o FastaHack.cpp
/bin/bash ./libtool --tag=CXX --mode=link g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -o fastahack FastaHack.o -lfastahack
libtool: link: g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z -Wl,relro -Wl,-z -Wl,now -o .libs/fastahack FastaHack.o /build/libfastahack-0.0+20160309/.libs/libfastahack.so
FastaHack.o: In function `main':
/build/libfastahack-0.0+20160309/FastaHack.cpp:168: undefined reference to `shannon_H(char*, long long)'
collect2: error: ld returned 1 exit status
Makefile:540: recipe for target 'fastahack' failed
...
I checked via strings on the resulting libraries that shannon_H is
included - but it is not found anyway. Any hint?
Thanks for your time
Andreas.
[1] https://anonscm.debian.org/git/debian-med/libfastahack.git
[2] https://anonscm.debian.org/git/debian-med/libvcflib.git
--
http://fam-tille.de
--
http://fam-tille.de
More information about the Debian-med-packaging
mailing list