From owner-freebsd-ports@FreeBSD.ORG Sat Apr 14 18:17:14 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A17F16A400 for ; Sat, 14 Apr 2007 18:17:14 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from ameno.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.freebsd.org (Postfix) with ESMTP id 91FE413C4AE for ; Sat, 14 Apr 2007 18:17:13 +0000 (UTC) (envelope-from ume@mahoroba.org) Received: from kasuga.mahoroba.org (IDENT:HGkkRlxLwSEfPzrF0X/0Pme+msOrzY3aD5QIbKUgyu3FUHrwKCuy5l7pKj80o2MW@kasuga.mahoroba.org [IPv6:2001:2f0:104:8010:20b:97ff:fe2e:b521]) (user=ume mech=CRAM-MD5 bits=0) by ameno.mahoroba.org (8.13.8/8.13.8) with ESMTP/inet6 id l3EI5e9e077194 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 15 Apr 2007 03:05:43 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Sun, 15 Apr 2007 03:05:40 +0900 Message-ID: From: Hajimu UMEMOTO To: Craig Butler In-Reply-To: <4620AEC8.3010006@lerwick.hopto.org> References: <4620AEC8.3010006@lerwick.hopto.org> User-Agent: xcite1.38> Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.7 Emacs/22.0.97 (i386-pc-freebsd) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 6.2-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (ameno.mahoroba.org [IPv6:2001:2f0:104:8010::1]); Sun, 15 Apr 2007 03:05:44 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ameno.mahoroba.org Cc: freebsd-ports@freebsd.org Subject: Re: security/clamav 0.92.2 broke during build X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Apr 2007 18:17:14 -0000 Hi, >>>>> On Sat, 14 Apr 2007 11:36:56 +0100 >>>>> Craig Butler 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 -.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/