From owner-freebsd-ports@FreeBSD.ORG Fri Jul 4 15:30:06 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F339B106566C for ; Fri, 4 Jul 2008 15:30:06 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: from duane.dbq.yournetplus.com (duane.dbq.yournetplus.com [65.124.230.214]) by mx1.freebsd.org (Postfix) with ESMTP id CA9998FC0C for ; Fri, 4 Jul 2008 15:30:06 +0000 (UTC) (envelope-from d.hill@yournetplus.com) Received: by duane.dbq.yournetplus.com (Postfix, from userid 1001) id D2D7E3E2C4F; Fri, 4 Jul 2008 15:12:21 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by duane.dbq.yournetplus.com (Postfix) with ESMTP id D143D3E2C48 for ; Fri, 4 Jul 2008 15:12:21 +0000 (UTC) Date: Fri, 4 Jul 2008 15:12:21 +0000 (UTC) From: Duane Hill X-X-Sender: duane@duane.dbq.yournetplus.com To: freebsd-ports@freebsd.org In-Reply-To: <66E4D6F6-6923-4407-809F-B52B9533209D@altesco.nl> Message-ID: References: <000801c8dcc4$dc1b0c40$3d01a8c0@xprz12> <66E4D6F6-6923-4407-809F-B52B9533209D@altesco.nl> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: clamav bug X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d.hill@yournetplus.com List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 15:30:07 -0000 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.