From owner-freebsd-questions@FreeBSD.ORG Wed Jun 22 23:35:52 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 1328116A41C for ; Wed, 22 Jun 2005 23:35:52 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC0A643D49 for ; Wed, 22 Jun 2005 23:35:51 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.3/8.13.1) with ESMTP id j5MNZl9k025791; Wed, 22 Jun 2005 17:35:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.3/8.13.1/Submit) with ESMTP id j5MNZl4V025788; Wed, 22 Jun 2005 17:35:47 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 22 Jun 2005 17:35:47 -0600 (MDT) From: Warren Block To: Louis LeBlanc In-Reply-To: <20050622154637.GE67917@keyslapper.net> Message-ID: <20050622173308.M25752@wonkity.com> References: <20050622154637.GE67917@keyslapper.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (wonkity.com [127.0.0.1]); Wed, 22 Jun 2005 17:35:47 -0600 (MDT) Cc: FreeBSD Questions Subject: Re: clamav build link error (reference to gethostbyname_r) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2005 23:35:52 -0000 On Wed, 22 Jun 2005, Louis LeBlanc wrote: > 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 misc.o clamav-milter.o -pthread -L/usr/local/lib ../libclamav/.libs/libclamav.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 Interesting. The same thing happens on 4-STABLE as of May 8, but it works fine on 5-STABLE as of June 13. -Warren Block * Rapid City, South Dakota USA