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
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"