| When building httrack on Mandriva Linux 2009.0 Cooker, it fails with these
errors:
creating libhttrack.la
(cd .libs && rm -f libhttrack.la && ln -s ../libhttrack.la libhttrack.la)
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -O
-g3 -Wall -Wcast-align -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -Wpointer-arith -Wnested-externs -D_REENTRANT -DINET6
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
-DPREFIX=\""/usr"\" -DSYSCONFDIR=\""/etc"\" -DDATADIR=\""/usr/share"\"
-DLIBDIR=\""/usr/lib"\" -I/usr/include -O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer
-march=i586 -mtune=generic -fasynchronous-unwind-tables -MT htsjava.lo -MD -MP
-MF .deps/htsjava.Tpo -c -o htsjava.lo htsjava.c
gcc -DHAVE_CONFIG_H -I. -I.. -O -g3 -Wall -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wnested-externs
-D_REENTRANT -DINET6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -DPREFIX=\"/usr\" -DSYSCONFDIR=\"/etc\"
-DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib\" -I/usr/include -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables -MT htsjava.lo -MD -MP -MF .deps/htsjava.Tpo -c
htsjava.c -fPIC -DPIC -o .libs/htsjava.o
htsjava.c: In function 'readshort':
htsjava.c:434: warning: ignoring return value of 'fread', declared with
attribute warn_unused_result
gcc -DHAVE_CONFIG_H -I. -I.. -O -g3 -Wall -Wcast-align -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wnested-externs
-D_REENTRANT -DINET6 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -DPREFIX=\"/usr\" -DSYSCONFDIR=\"/etc\"
-DDATADIR=\"/usr/share\" -DLIBDIR=\"/usr/lib\" -I/usr/include -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables -MT htsjava.lo -MD -MP -MF .deps/htsjava.Tpo -c
htsjava.c -o htsjava.o >/dev/null 2>&1
mv -f .deps/htsjava.Tpo .deps/htsjava.Plo
/bin/sh ../libtool --tag=CC --mode=link gcc -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables -version-info 2:42:0 -Wl,--as-needed
-Wl,--no-undefined -L/usr/lib -o libhtsjava.la -rpath /usr/lib htsjava.lo
-lpthread -ldl -lz
gcc -shared -Wl,--as-needed .libs/htsjava.o -L/usr/lib -lpthread -ldl -lz
-march=i586 -mtune=generic -Wl,--as-needed -Wl,--no-undefined -Wl,-soname
-Wl,libhtsjava.so.2 -o .libs/libhtsjava.so.2.0.42
.libs/htsjava.o: In function `hts_plug':
/home/fhimpe/httrack/BUILD/httrack-3.42.3/src/htsjava.c:301: undefined
reference to `hts_malloc'
/home/fhimpe/httrack/BUILD/httrack-3.42.3/src/htsjava.c:302: undefined
reference to `hts_malloc'
.libs/htsjava.o: In function `tris':
/home/fhimpe/httrack/BUILD/httrack-3.42.3/src/htsjava.c:457: undefined
reference to `get_httptype'
/home/fhimpe/httrack/BUILD/httrack-3.42.3/src/htsjava.c:461: undefined
reference to `get_ext'
/home/fhimpe/httrack/BUILD/httrack-3.42.3/src/htsjava.c:461: undefined
reference to `is_dyntype'
.libs/htsjava.o: In function `hts_parse_java':
/home/fhimpe/httrack/BUILD/httrack-3.42.3/src/htsjava.c:177: undefined
reference to `fconv'
collect2: ld returned 1 exit status
make[1]: *** [libhtsjava.la] Error 1
Mandriva is now very picky about adding the right libraries when linking
(becaues it links with --no-undefined and --as-needed by default). It seems
here it should also link to libhttrack to prevent this error from happening. I
can confirm the command works when adding -lhttrack -L.libs/
Can this be fixed in a next release? | |