On 2011-01-12 01:13, Forrest Aldrich wrote: > I am compiling 0.96.5 on RHEL 5, when I ran into this error during "make > check". I realize this may not be a Clamav-specific bug, however it > does involve a dependency. > > /usr/bin/ld: /usr/local/lib/libbz2.a(bzlib.o): relocation R_X86_64_32S > against `a local symbol' can not be used when making a shared object; > recompile with -fPIC
You need to use Makefile-libbz2_so to build a .so out of the bzip2 library. libbz2.a is a static archive, it was not compiled with -fPIC hence it cannot be linked into a shared library like libclamav.so. > > I had to install a different version of libbz2 than what is provided > with the OS. I compiled/installed with a simple "make install" which > has worked fine on 32bit systems. I've never seen this problem before. Yes 32-bit systems don't care if you link the wrong library, it will still work. 64-bit system are more strict. Best regards, --Edwin _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
