From owner-freebsd-ports@FreeBSD.ORG Fri Jul 4 08:08:44 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 9F6221065675 for ; Fri, 4 Jul 2008 08:08:44 +0000 (UTC) (envelope-from ben@altesco.nl) Received: from altus-escon.com (altesco.xs4all.nl [82.95.106.39]) by mx1.freebsd.org (Postfix) with ESMTP id 2F82C8FC27 for ; Fri, 4 Jul 2008 08:08:43 +0000 (UTC) (envelope-from ben@altesco.nl) Received: from giskard.stuyts.nl (stuyts.xs4all.nl [82.95.106.42]) by altus-escon.com (8.14.2/8.14.2) with ESMTP id m6488XWn074360; Fri, 4 Jul 2008 10:08:38 +0200 (CEST) (envelope-from ben@altesco.nl) Message-Id: <66E4D6F6-6923-4407-809F-B52B9533209D@altesco.nl> From: Ben Stuyts To: yance In-Reply-To: <000801c8dcc4$dc1b0c40$3d01a8c0@xprz12> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Date: Fri, 4 Jul 2008 10:08:28 +0200 References: <000801c8dcc4$dc1b0c40$3d01a8c0@xprz12> X-Mailer: Apple Mail (2.926) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0 (altus-escon.com [10.0.0.150]); Fri, 04 Jul 2008 10:08:40 +0200 (CEST) X-Virus-Scanned: ClamAV 0.93.1/7637/Fri Jul 4 05:43:08 2008 on mars.altus-escon.com X-Virus-Status: Clean X-Spam-Status: No, score=-3.6 required=3.5 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mars.altus-escon.com Cc: freebsd-ports@freebsd.org Subject: Re: clamav bug X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jul 2008 08:08:44 -0000 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} Hope this helps, Ben