On NetBSD (1.6 anyway) the detection of gethostbyname_r is not sufficient.


It appears that configure only compiles the test code, but does not link it.


Compiling the test code without -c option gives the error below, indicating that the function is not in the libraries.

gcc -g -O2 -I/usr/pkg/include/ xx.c
xx.c: In function `main':
xx.c:94: warning: assignment makes pointer from integer without a cast
/var/tmp/ccuMF7qX.o: In function `main':
/usr/home/jnp/src/clamav-0.80rc2/xx.c:94: undefined reference to `gethostbyname_r'
collect2: ld returned 1 exit status





Configuring with --disable-gethostbyname_r lets me build clamav on NetBSD.


<x-tad-bigger>
</x-tad-bigger>--
/j�rgen n�rgaard
e-mail: [EMAIL PROTECTED] | Phone: +45 2627 3769
http://anneli.dk/~jnp/
��������������������������������������� |\����� _,,,---,,_
��������������������������������������� /,`.-'`'��� -.� ;-;;,_�
��������������������������������������� |,4-� ) )-,_. ,\ (� `'-'
�������������������������������������� '---''(_/--'� `-'\_)

Reply via email to