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
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to