clamav bug
Ben Stuyts
ben at altesco.nl
Fri Jul 4 08:08:44 UTC 2008
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
More information about the freebsd-ports
mailing list