Custom Build 2.0 ClamAV build error

Juslintek

Verified User
Joined
Feb 27, 2014
Messages
15
Location
Vilnius, Lithuania
Code:
Trying to make clamav...
make  all-recursive
make[1]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6'
Making all in libltdl
make[2]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libltdl'
make  all-am
make[3]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libltdl'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libltdl'
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libltdl'
Making all in libclamav
make[2]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav'
make  all-recursive
make[3]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav'
Making all in c++
make[4]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav/c++'
make  all-am
make[5]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav/c++'
make[5]: Nothing to be done for `all-am'.
make[5]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav/c++'
make[4]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav/c++'
make[4]: Entering directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav'
  GEN      version.h.tmp
  GEN      version.h
  CCLD     libclamav.la
/usr/bin/ld: /usr/local/lib/libz.a(crc32.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [libclamav.la] Error 1
make[4]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6/libclamav'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/clamav-0.98.6'
make: *** [all] Error 2

*** The make has failed, do you want to try to make again? (y,n):

Pressing yes, same happens. Stuck with outdated version. :)

Code:
freshclam
]ClamAV update process started at Fri Jan 30 13:23:58 2015
WARNING: Your ClamAV installation is OUTDATED!
WARNING: Local version: 0.98.5 Recommended version: 0.98.6
DON'T PANIC! Read http://www.clamav.net/support/faq
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cld is up to date (version: 19999, sigs: 1316210, f-level: 63, builder: neo)
bytecode.cld is up to date (version: 245, sigs: 43, f-level: 63, builder: dgoddard)

Please help
 
I'd recommend removing zlib from /usr/local/lib at all, it's not installed by CB 2.0 there. "./build all d" is recommended after removal.
 
Back
Top