Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jul 2008 15:12:21 +0000 (UTC)
From:      Duane Hill <d.hill@yournetplus.com>
To:        freebsd-ports@freebsd.org
Subject:   Re: clamav bug
Message-ID:  <alpine.BSF.1.10.0807041510090.44099@duane.dbq.yournetplus.com>
In-Reply-To: <66E4D6F6-6923-4407-809F-B52B9533209D@altesco.nl>
References:  <000801c8dcc4$dc1b0c40$3d01a8c0@xprz12> <66E4D6F6-6923-4407-809F-B52B9533209D@altesco.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 4 Jul 2008, Ben Stuyts wrote:

> On 3 Jul 2008, at 06:25, yance wrote:
>
>> I have just update m ports collection. My FreeBSD is 6.0-RELEASE, and when 
>> I
>> tried to install clamav from ports collection it returned an error:
>
>> ../libclamav/.libs/libclamav.so: undefined reference to `gethostbyname_r'
>
> I recently had the same problem on FreeBSD 5.5. I fixed it by changing the 
> port's Makefile as follows:
>
> RCS file: /home/ncvs/ports/security/clamav/Makefile,v
> retrieving revision 1.116
> diff -c -r1.116 Makefile
> *** Makefile	17 Jun 2008 11:20:03 -0000	1.116
> --- Makefile	27 Jun 2008 18:52:49 -0000
> ***************
> *** 48,54 ****
> 		--disable-clamav \
> 		--enable-bigstack \
> 		--enable-readdir_r \
> ! 		--enable-gethostbyname_r \
> 		--disable-dependency-tracking
> CPPFLAGS+=	-I${LOCALBASE}/include \
> 		${PTHREAD_CFLAGS}
> --- 48,54 ----
> 		--disable-clamav \
> 		--enable-bigstack \
> 		--enable-readdir_r \
> ! 		--disable-gethostbyname_r \
> 		--disable-dependency-tracking
> CPPFLAGS+=	-I${LOCALBASE}/include \
> 		${PTHREAD_CFLAGS}

I did the same change on 6.1. However, I still received the error. 
Ultimate solution was to upgrade to 7.0.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0807041510090.44099>