security/clamav 0.92.2 broke during build
Hajimu UMEMOTO
ume at freebsd.org
Sat Apr 14 18:17:14 UTC 2007
Hi,
>>>>> On Sat, 14 Apr 2007 11:36:56 +0100
>>>>> Craig Butler <craig001 at lerwick.hopto.org> said:
craig001> I cant get clamav-0.90.2 to build from ports.
craig001> It bombs out with an error as follows;
craig001> network.o(.text+0x2b): In function `r_gethostbyname':
craig001> : undefined reference to `gethostbyname_r'
craig001> however when it runs configure at the start of the build script it does
craig001> detect gethostbyname_r;
craig001> checking for gethostbyname_r... yes, and it takes 5 arguments
craig001> anybody getting the same build error ? I am using FreeBSD 6.1 still
6.1 doesn't have gethostbyname_r(3). The following patch should fix
the problem:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/security/clamav/Makefile,v
retrieving revision 1.97
diff -u -p -r1.97 Makefile
--- Makefile 13 Apr 2007 18:25:19 -0000 1.97
+++ Makefile 14 Apr 2007 18:01:41 -0000
@@ -97,7 +97,7 @@ PLIST_SUB+= CLAMAVUSER=${CLAMAVUSER} \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} < 600000
+.if ${OSVERSION} < 601103
CONFIGURE_ARGS+= --disable-gethostbyname_r
.else
CONFIGURE_ARGS+= --enable-gethostbyname_r
Sincerely,
--
Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan
ume at mahoroba.org ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/
More information about the freebsd-ports
mailing list