Date: Wed, 22 Jun 2005 17:35:47 -0600 (MDT) From: Warren Block <wblock@wonkity.com> To: Louis LeBlanc <FreeBSD@keyslapper.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: clamav build link error (reference to gethostbyname_r) Message-ID: <20050622173308.M25752@wonkity.com> In-Reply-To: <20050622154637.GE67917@keyslapper.net> References: <20050622154637.GE67917@keyslapper.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050622173308.M25752>