Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Jun 2008 13:35:59 +0200
From:      Pieter Sybesma <psy@gicom.nl>
To:        garga@FreeBSD.org
Cc:        ports@FreeBSD.org
Subject:   FreeBSD Port: clamav-0.93.1_2
Message-ID:  <4868C51F.5070504@gicom.nl>

next in thread | raw e-mail | index | archive | help
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@qmailin.gicom.nl:/usr/obj/usr/src/sys/MYKERNEL  i386

Greetings Pieter Sybesma




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4868C51F.5070504>