Thanks for your information, I didn't know the existence of this
library and it's sound like perfect for the problems. So I try to use
it but at the final linking stage of the compilation, I've got this
error message :
| main.o: In function `main':
| main.o(.text+0x17a9): warning: sprintf() is often misused, please use snprintf()
| nb_dns.o: In function `nb_dns_init':
| nb_dns.o(.text+0x80): undefined reference to `__res_state'
| nb_dns.o(.text+0xf1): undefined reference to `__res_state'
| collect2: ld returned 1 exit status
When I do an objdump -t to the libbind.so.1 or to libbind.a, I can't
see any __res_state symbols. If I do the same with the libbind found
in the official bind9, I find this symbol. My libbind is the 9.2.2rc2
from OpenBSD snapshot (less than 1 week).
So I'll keep the patch like that for the moment. If anybody have an
Chad Dougherty <crd(a)cert.org> a dit:
--On Thursday, June 26, 2003 14:09 +0200 Sylvain de
You should use the bind library too due to the libc resolv functions
which are not as complete as FreeBSD one. If you don't want to install
all bind9 sources, I just separate the interesting part here :
I found it easier just to install libbind from the ports collection;
Sylvain de Tilly
"Mettons nous tout GNU !"