From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 15:46:43 2005 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D255216A41F for ; Wed, 22 Jun 2005 15:46:43 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from camomile.cloud9.net (camomile.cloud9.net [168.100.1.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ADA643D4C for ; Wed, 22 Jun 2005 15:46:41 +0000 (GMT) (envelope-from leblanc@keyslapper.net) Received: from camomile.cloud9.net (localhost.cloud9.net [127.0.0.1]) by camomile.cloud9.net (Postfix) with SMTP id D2DFA549E for ; Wed, 22 Jun 2005 11:46:38 -0400 (EDT) Received: from keyslapper.net (250-119.customer.cloud9.net [168.100.250.119]) by camomile.cloud9.net (Postfix) with ESMTP id DDFD355FC for ; Wed, 22 Jun 2005 11:46:37 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by keyslapper.net (Postfix) with ESMTP id 69BDA11576 for ; Wed, 22 Jun 2005 11:46:37 -0400 (EDT) Received: from keyslapper.net ([127.0.0.1]) by localhost (keyslapper.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41432-08 for ; Wed, 22 Jun 2005 11:46:37 -0400 (EDT) Received: by keyslapper.net (Postfix, from userid 1001) id 3A80F114ED; Wed, 22 Jun 2005 11:46:37 -0400 (EDT) Date: Wed, 22 Jun 2005 11:46:37 -0400 From: Louis LeBlanc To: FreeBSD Questions Message-ID: <20050622154637.GE67917@keyslapper.net> Mail-Followup-To: FreeBSD Questions Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline X-PGP-Key: http://www.keyslapper.net/~leblanc/leblanc-at-keyslapper-net.asc User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at keyslapper.net X-AntiVirus: Checked by Vexira Antivirus v1.5 Cc: Subject: clamav build link error (reference to gethostbyname_r) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 15:46:44 -0000 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I just updated my ports and found that clamav was due for upgrade. Problem is it won't build because of a gethostbyname_r reference. During the configuration stage, it seems to find a gethostbyname_r: checking for gethostbyname_r... yes, and it takes 5 arguments I can't find any reference to gethostbyname_r in the manpages, except for the LWRES_GETHOSTENT(3) manpage. I don't think this is what it refers to, since lwres_gethostbyname_r() takes 4 arguments, not 5. Regardless, the build fails here: cc -O -pipe -pthread -o .libs/clamav-milter cfgparser.o getopt.o memory.o m= isc.o clamav-milter.o -pthread -L/usr/local/lib ../libclamav/.libs/libclam= av.so -lldap -lbz2 -lgmp -lcurl -lidn -lssl -lcrypto -lz -lmilter -pthread = -lwrap -Wl,--rpath -Wl,/usr/local/lib clamav-milter.o(.text+0x5708): In function `clamfi_gethostbyname': : undefined reference to `gethostbyname_r' *** Error code 1 Anyone have any idea why the configuration is finding gethostbyname_r() when it's not there? BTW, I'm running on 5.4 RELEASE-p1 TIA Lou --=20 Louis LeBlanc FreeBSD-at-keyslapper-DOT-net Fully Funded Hobbyist, KeySlapper Extrordinaire :) Please send off-list email to: leblanc at keyslapper d.t net Key fingerprint =3D C5E7 4762 F071 CE3B ED51 4FB8 AF85 A2FE 80C8 D9A2 Crenna's Law of Political Accountability: If you are the first to know about something bad, you are going to be held responsible for acting on it, regardless of your formal duties. --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCuYfcr4Wi/oDI2aIRAlfDAJwOMyChK5Ef2i1S8t9kU4F6KEJo7QCeNUFd Dw5H10s/gP3PG4uAMeB83e4= =2bXg -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--