Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2005 11:46:37 -0400
From:      Louis LeBlanc <FreeBSD@keyslapper.net>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.org>
Subject:   clamav build link error (reference to gethostbyname_r)
Message-ID:  <20050622154637.GE67917@keyslapper.net>

next in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050622154637.GE67917>