Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Apr 2007 03:05:40 +0900
From:      Hajimu UMEMOTO <ume@freebsd.org>
To:        Craig Butler <craig001@lerwick.hopto.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: security/clamav 0.92.2 broke during build
Message-ID:  <ygeirby6dcb.wl%ume@mahoroba.org>
In-Reply-To: <4620AEC8.3010006@lerwick.hopto.org>
References:  <4620AEC8.3010006@lerwick.hopto.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

>>>>> On Sat, 14 Apr 2007 11:36:56 +0100
>>>>> Craig Butler <craig001@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@mahoroba.org  ume@{,jp.}FreeBSD.org
http://www.imasy.org/~ume/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ygeirby6dcb.wl%ume>