Date: Fri, 4 Jul 2008 10:08:28 +0200 From: Ben Stuyts <ben@altesco.nl> To: yance <yance@sic.nsw.edu.au> Cc: freebsd-ports@freebsd.org Subject: Re: clamav bug Message-ID: <66E4D6F6-6923-4407-809F-B52B9533209D@altesco.nl> In-Reply-To: <000801c8dcc4$dc1b0c40$3d01a8c0@xprz12> References: <000801c8dcc4$dc1b0c40$3d01a8c0@xprz12>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?66E4D6F6-6923-4407-809F-B52B9533209D>