FreeBSD Port: clamav-0.93.1_2

Pieter Sybesma psy at gicom.nl
Mon Jun 30 11:46:11 UTC 2008


Hi,

I'm getting this on compiling clamav:

> cc -O -pipe -march=pentium4 -o .libs/clamscan output.o getopt.o cfgparser.o misc.o options.o clamscan.o others.o manager.o treewalk.o  -L/usr/local/lib ../libclamav/.libs/libclamav.so /usr/ports/security/clamav/work/clamav-0.93.1/libclamunrar_iface/.libs/libclamunrar_iface.so /usr/ports/security/clamav/work/clamav-0.93.1/libclamunrar/.libs/libclamunrar.so -lbz2 /usr/local/lib/libgmp.so -lz -lthr  -Wl,--rpath -Wl,/usr/local/lib
> ../libclamav/.libs/libclamav.so: undefined reference to `gethostbyname_r'
> *** Error code 1
> 
> Stop in /usr/ports/security/clamav/work/clamav-0.93.1/clamscan.
> *** Error code 1
> 
> Stop in /usr/ports/security/clamav/work/clamav-0.93.1.
> *** Error code 1
> 
> Stop in /usr/ports/security/clamav/work/clamav-0.93.1.
> *** Error code 1
> 
> Stop in /usr/ports/security/clamav.
> *** Error code 1
> 
> Stop in /usr/ports/security/clamav.
> ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.33714.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=clamav-0.93_1 UPGRADE_PORT_VER=0.93_1 make
> ** Fix the problem and try again.
> ** Listing the failed packages (-:ignored / *:skipped / !:failed)
>         ! security/clamav (clamav-0.93_1)       (linker error)

It seems it's a problem since you removed the following from the 
Makefile last in version 1.112 2008/06/09 16:13:25:

> .if ${OSVERSION} < 601103
> CONFIGURE_ARGS+=        --disable-gethostbyname_r
> .else 	 
> CONFIGURE_ARGS+=        --enable-gethostbyname_r
> .endif 	 

I'm running the following version:

> qmailin# uname -a
> FreeBSD qmailin.gicom.nl 5.3-RELEASE-p37 FreeBSD 5.3-RELEASE-p37 #1: Mon Mar 12 12:47:07 CET 2007     root at qmailin.gicom.nl:/usr/obj/usr/src/sys/MYKERNEL  i386

Greetings Pieter Sybesma



More information about the freebsd-ports mailing list