On 2008-09-03 16:50, Roberto Ullfig wrote: > Török Edwin wrote: > >> On 2008-09-02 23:10, Török Edwin wrote: >> >> >>> Send me your config.log (off-list, this list strips attachments). >>> >>> >>> >> Thanks for the config.log. >> >> There are 2 problems here: >> - configure thinks bzip2 is bugged, but in fact it cannot link (I opened >> bb #1158) >> - seems like the symbol names are not what configure expects (it should >> be either bzDecompress or BZ2_bzDecompress' >> >> /tmp/ccEYOTll.o(.text+0x61):/home/fchan/clamav-0.94/conftest.c:123: undefined >> reference to `BZ2_bzDecompress' >> /tmp/ccEYOTll.o(.text+0x7d):/home/fchan/clamav-0.94/conftest.c:121: undefined >> reference to `BZ2_bzDecompressEnd' >> >> >> Can you show us the output of these commands: >> - nm /usr/lib/libbz2.a|grep bzDecompress >> - nm -D /usr/lib/libbz2.so*|grep bzDecompress >> >> Thanks, >> --Edwin >> >> _______________________________________________ >> Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net >> http://www.clamav.net/support/ml >> >> >> > Looks like an odd linking problem, I copied out the source code from > configure into test.c: > > # gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib -lz > -L/usr/local/lib -lbz2 test.c > /tmp/ccorq5PY.o(.text+0x45): In function `main': > /homes/homefarm/rullfisu/test.c:45: undefined reference to > `BZ2_bzDecompressInit' > /tmp/ccorq5PY.o(.text+0x6f):/homes/homefarm/rullfisu/test.c:50: > undefined reference to `BZ2_bzDecompress' > /tmp/ccorq5PY.o(.text+0x7f):/homes/homefarm/rullfisu/test.c:52: > undefined reference to `BZ2_bzDecompressEnd' > # > > If I move test.c before the libs it links fine: > > # gcc -o conftest -g -O2 test.c -I/usr/local/include -L/usr/local/lib > -lz -L/usr/local/lib -lbz2 > # > > Also, there is no problem when linking with the redhat libs in /usr/lib: > > # gcc -o conftest -g -O2 -lz -lbz2 test.c > # > >
Yes, this is exactly the problem I described in the bugreport. --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml