clamav bug

Duane Hill d.hill at yournetplus.com
Fri Jul 4 15:30:07 UTC 2008


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.


More information about the freebsd-ports mailing list