On Mon, 18 Aug 2003, Michael Spencer Jr. wrote:

> [EMAIL PROTECTED]:ttya0 libhosts_gatherer]# make test
> gcc -pipe -DHAVE_CONFIG_H    -I.  -I/usr/mnt.rom/cf/.dev/nessus/nessus-libra
> ries/include -I/usr/mnt.rom/cf/.dev/nessus/nessus-libraries/libpcap-nessus
> test.c -o test -L.libs -lhosts_gatherer
> test.c: In function `main':
> test.c:17: warning: return type of `main' is not `int'
> .libs/libhosts_gatherer.so: undefined reference to `__dn_expand'
> .libs/libhosts_gatherer.so: undefined reference to `__dn_skipname'
> .libs/libhosts_gatherer.so: undefined reference to `__res_mkquery'
> .libs/libhosts_gatherer.so: undefined reference to `__res_send'
> .libs/libhosts_gatherer.so: undefined reference to `_getshort'
> .libs/libhosts_gatherer.so: undefined reference to `__putshort'
> collect2: ld returned 1 exit status
> make: *** [test] Error 1
> [EMAIL PROTECTED]:ttya0 libhosts_gatherer]#

You need to add -lresolv. I do not know why it was not added
automatically.

--Pavel Kankovsky aka Peak  [ Boycott Microsoft--http://www.vcnet.com/bms ]
"Resistance is futile. Open your source code and prepare for assimilation."

Reply via email to