ClamAV fails to install

IT_Architect

Verified User
Joined
Feb 27, 2006
Messages
1,114
DA's CB 2.0 ClamAV 0.100.0 install fails with FreeBSD 11.x

New FreeBSD 11.2 x64 Install

I followed the instructions here https://help.directadmin.com/item.php?id=370. However, it errors out during install:
Code:
--- libclamav_la-version.lo ---
  CC       libclamav_la-version.lo
--- libclamav.la ---
  CCLD     libclamav.la
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_compile.o): relocation R_X86_64_32S against hidden symbol `_pcre_utf8_table4' can not be used when making a shared object
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_exec.o): relocation R_X86_64_32 against hidden symbol `_pcre_default_tables' can not be used when making a shared object
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_fullinfo.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_jit_compile.o): relocation R_X86_64_32 against hidden symbol `_pcre_default_tables' can not be used when making a shared object
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_ord2utf8.o): relocation R_X86_64_32S against hidden symbol `_pcre_utf8_table1' can not be used when making a shared object
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_study.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_valid_utf8.o): relocation R_X86_64_32S against hidden symbol `_pcre_utf8_table4' can not be used when making a shared object
/usr/local/bin/ld: /usr/local/lib/libpcre.a(libpcre_la-pcre_xclass.o): relocation R_X86_64_32S against hidden symbol `_pcre_ucd_stage1' can not be used when making a shared object
/usr/local/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
*** [libclamav.la] Error code 1

make[4]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1/libclamav
1 error

make[4]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1/libclamav
*** [all-recursive] Error code 1

make[3]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1/libclamav
1 error

make[3]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1/libclamav
*** [all] Error code 2

make[2]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1/libclamav
1 error

make[2]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1/libclamav
*** [all-recursive] Error code 1

make[1]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1
1 error

make[1]: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1
*** [all] Error code 2

make: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1
1 error

make: stopped in /usr/local/directadmin/custombuild/clamav-0.100.1

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

I thought I would want this maintained by DA as it integrates with Exim and it would take care of all of the settings for me. It doesn't seem to work. Now I'm wondering if it would be better to use pkg? If so, what do I need to do configure DA files manually? (My last experience doing it that was was FreeBSD 7.2 and DA from 2009)

Thanks!
 
Last edited:
DA manages it's programs but it does not guarantee that you will not install something conflicting from ports or FreeBSD packages.

I see lines with PCRE involved, so I would suggest you to reinstall it first:

cd /usr/local/directadmin/custombuild
./build pcre

then try again to build clamav.
 
DA manages it's programs but it does not guarantee that you will not install something conflicting from ports or FreeBSD packages.
I did a reverse on pcre and realize you are correct. I installed VMware tools, which pulled glib, which pulled pcre. I reverted back to prior to before the VMware tools snapshot, and it installed fine.
 
Back
Top