Hello,

Though libnsl build problems are common, I could not locate info on
this problem in the FAQ or mail-list archives so I generated this
posting.

I have been using Vetescan, and would value a chance to evaluate
nessus, so any help in this matter is MUCH appreciated!

* I am on a Red Hat 6.x machine with a 2.2-17 kernel.

* I have built and installed the nessus libraries.

* I have flex-2.5.4a-6, bison-1.27-3, gtk+-1.2.8-1,
gtk+-development-1.2.8-1, and the m4-1.4-12 packages installed.  I
also have nmap 2.5beta built from source.

* After nessus library installation, I verified that /etc/ld.so.conf
contains "/usr/local/lib", I ran ldconfig as root, and my path
includes /usr/local/bin.  I have been deleting config.cache before
each build attempt.

When I try to build libnasl, the configure script completes, with
this being the only questionable item:

[snip]
checking for pcap_restart in -lpcap-nessus... no
checking for pcap_yyrestart in -lpcap-nessus... no
checking for yyrestart in -lpcap-nessus... no
no yacc restart func found
perhaps libpcap-nessus wasn't compiled with bison/flex? <<<<<<<
[/snip]

Also, the config.log contains these related entries:

[snip]
configure:3918: checking for pcap_restart in -lpcap-nessus
configure:3937: gcc -pipe -o
conftest -g -O2 -L/usr/local/lib -lnessus -lhosts_gatherer -lpcap-$
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__dn_expand'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_mkquery'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3926 "configure"
#include "confdefs.h"
[/snip]

Then, during the make I get the following error:

cd nasl && make
make[1]: Entering directory `/home/guest/libnasl/nasl'
gcc -pipe

`./cflags` -I. -I/usr/local/include -I/home/guest/libnasl/include  -o
nasl -DVERSION=\"1.0.10\" nasl.c init.o parser.o function_call.o
sanitize.o send_packet.o pkt_utils.o prompt.o udp.o tcp.o ip.o pcap.o
instruction.o pcap_next.o boolean.o strutils.o inet.o execute.o
nessus_extensions.o igmp.o icmp.o nasl_rpc.o nasl_memory.o
regex.o -lrpcsvc `/usr/local/bin/nessus-config --libs`
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__dn_expand'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_mkquery'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_init'
collect2: ld returned 1 exit status
make[1]: *** [nasl] Error 1
make[1]: Leaving directory `/home/guest/libnasl/nasl'
make: *** [all] Error 2

My /usr/local/bin/nessus-config file has the following on the "EXTRA"
line:

EXTRA="-lnsl -lresolv  "

FWIW, the same error occurs when I run the nessus-installer.sh
script. Any help, guidance, or suggestions will be highly valued.
This seems like a library linking problem, but not being a coder I
have hit the wall on this one. The complete contents of the
config.log is pasted below.

Thanks in advance.

[config.log]

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:658: checking host system type
configure:681: checking for ranlib
configure:711: checking for gcc
configure:824: checking whether the C compiler (gcc  ) works
configure:840: gcc -o conftest    conftest.c  1>&5
configure:866: checking whether the C compiler (gcc  ) is a
cross-compiler
configure:871: checking whether we are using GNU C
configure:880: gcc -E conftest.c
configure:899: checking whether gcc accepts -g
configure:943: checking for ld used by GCC
configure:1000: checking if the linker (/usr/bin/ld) is GNU ld
GNU ld version 2.9.1 (with BFD 2.9.1.0.23)
configure:1016: checking for BSD-compatible nm
configure:1053: checking whether ln -s works
configure:1122: checking for gcc
configure:1235: checking whether the C compiler (gcc -g -O2 ) works
configure:1251: gcc -o conftest -g -O2   conftest.c  1>&5
configure:1277: checking whether the C compiler (gcc -g -O2 ) is a
cross-compiler
configure:1282: checking whether we are using GNU C
configure:1310: checking whether gcc accepts -g
configure:1342: checking whether make sets ${MAKE}
configure:1375: checking if the compiler understands -pipe
configure:1385: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:1401: checking for nessus-config
configure:1444: checking how to run the C preprocessor
configure:1465: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1524: checking for ANSI C header files
configure:1537: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1604: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:1628: checking for sys/wait.h that is POSIX.1 compatible
configure:1649: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:1670: checking whether time.h and sys/time.h may both be
included
configure:1684: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:1709: checking for dirent.h that defines DIR
configure:1722: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:1747: checking for opendir in -ldir
configure:1766: gcc -pipe -o conftest -g -O2   conftest.c -ldir
1>&5
/usr/bin/ld: cannot open -ldir: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 1755 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
configure:1830: checking for -lrpcsvc
configure:1844: gcc -pipe -o conftest -g -O2   conftest.c -lrpcsvc
1>&5
configure:1864: checking for /usr/ucbinclude/fcntl.h
configure:1874: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1870: /usr/ucbinclude/fcntl.h: No such file or directory
configure: failed program was:
#line 1869 "configure"
#include "confdefs.h"
#include </usr/ucbinclude/fcntl.h>
configure:1899: checking for unistd.h
configure:1909: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1899: checking for getopt.h
configure:1909: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1899: checking for string.h
configure:1909: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1899: checking for strings.h
configure:1909: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1899: checking for sys/sockio.h
configure:1909: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1905: sys/sockio.h: No such file or directory
configure: failed program was:
#line 1904 "configure"
#include "confdefs.h"
#include <sys/sockio.h>
configure:1899: checking for sys/socketio.h
configure:1909: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1905: sys/socketio.h: No such file or directory
configure: failed program was:
#line 1904 "configure"
#include "confdefs.h"
#include <sys/socketio.h>
configure:1939: checking for sys/param.h
configure:1949: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1939: checking for netinet/tcpip.h
configure:1949: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1945: netinet/tcpip.h: No such file or directory
configure: failed program was:
#line 1944 "configure"
#include "confdefs.h"
#include <netinet/tcpip.h>
configure:1939: checking for netinet/in_systm.h
configure:1949: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1979: checking for netinet/ip_udp.h
configure:1989: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1985: netinet/ip_udp.h: No such file or directory
configure: failed program was:
#line 1984 "configure"
#include "confdefs.h"
#include <netinet/ip_udp.h>
configure:1979: checking for netinet/protocols.h
configure:1989: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1985: netinet/protocols.h: No such file or directory
configure: failed program was:
#line 1984 "configure"
#include "confdefs.h"
#include <netinet/protocols.h>
configure:1979: checking for sys/ioctl.h
configure:1989: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:1979: checking for netinet/ip_icmp.h
configure:1989: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for rpc/rpc.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for netinet/udp.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for dlfcn.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for sys/un.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for memory.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for ctype.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2019: checking for errno.h
configure:2029: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2059: checking for sys/types.h
configure:2069: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2059: checking for stdlib.h
configure:2069: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2059: checking for stdio.h
configure:2069: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2059: checking for pthread.h
configure:2069: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2059: checking for sys/filio.h
configure:2069: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2065: sys/filio.h: No such file or directory
configure: failed program was:
#line 2064 "configure"
#include "confdefs.h"
#include <sys/filio.h>
configure:2059: checking for pwd.h
configure:2069: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2099: checking for assert.h
configure:2109: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2099: checking for netdb.h
configure:2109: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2099: checking for netinet/in.h
configure:2109: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2099: checking for arpa/inet.h
configure:2109: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2139: checking for poll.h
configure:2149: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2139: checking for sys/poll.h
configure:2149: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2139: checking for netinet/ip_tcp.h
configure:2149: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2145: netinet/ip_tcp.h: No such file or directory
configure: failed program was:
#line 2144 "configure"
#include "confdefs.h"
#include <netinet/ip_tcp.h>
configure:2179: checking for sys/stat.h
configure:2189: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2179: checking for stat.h
configure:2189: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2185: stat.h: No such file or directory
configure: failed program was:
#line 2184 "configure"
#include "confdefs.h"
#include <stat.h>
configure:2179: checking for net/if.h
configure:2189: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2179: checking for sys/mman.h
configure:2189: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2237: checking for sys/socket.h
configure:2247: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2237: checking for netinet/ip.h
configure:2247: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2237: checking for netinet/tcp.h
configure:2247: gcc -pipe -E  conftest.c >/dev/null 2>conftest.out
configure:2280: checking for working alloca.h
configure:2292: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2313: checking for alloca
configure:2346: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2514: checking for lstat
configure:2542: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2514: checking for memmove
configure:2542: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2514: checking for gettimeofday
configure:2542: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2514: checking for gethrtime
configure:2542: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
/tmp/ccLUOYeo.o: In function `main':
/home/guest/libnasl/configure:2536: undefined reference to
`gethrtime'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2519 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few
prototypes,
    which can conflict with char gethrtime(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gethrtime();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_gethrtime) || defined (__stub___gethrtime)
choke me
#else
gethrtime();
#endif

; return 0; }
configure:2514: checking for getrusage
configure:2542: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2514: checking for rand
configure:2542: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2569: checking for strchr
configure:2597: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2569: checking for memcpy
configure:2597: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2581: warning: conflicting types for built-in function
`memcpy'
configure:2569: checking for select
configure:2597: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2569: checking for poll
configure:2597: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2622: checking for vsnprintf
configure:2650: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2673: checking for memmem
configure:2701: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2726: checking for bzero
configure:2754: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2726: checking for bcopy
configure:2754: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:2781: checking for addr2ascii
configure:2809: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
/tmp/cc7xz3jF.o: In function `main':
/home/guest/libnasl/configure:2803: undefined reference to
`addr2ascii'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2786 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few
prototypes,
    which can conflict with char addr2ascii(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char addr2ascii();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_addr2ascii) || defined (__stub___addr2ascii)
choke me
#else
addr2ascii();
#endif

; return 0; }
configure:2781: checking for inet_neta
configure:2809: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
/tmp/ccpO9zTT.o: In function `main':
/home/guest/libnasl/configure:2803: undefined reference to
`inet_neta'
collect2: ld returned 1 exit status
configure: failed program was:
#line 2786 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few
prototypes,
    which can conflict with char inet_neta(); below.  */
#include <assert.h>
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char inet_neta();

int main() {

/* The GNU C library defines this for functions which it implements
    to always fail with ENOSYS.  Some functions are actually named
    something starting with __ and the normal name is an alias.  */
#if defined (__stub_inet_neta) || defined (__stub___inet_neta)
choke me
#else
inet_neta();
#endif

; return 0; }
configure:2835: checking whether byte ordering is bigendian
configure:2853: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:2868: gcc -pipe -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:2863: `not' undeclared (first use in this function)
configure:2863: (Each undeclared identifier is reported only once
configure:2863: for each function it appears in.)
configure:2863: parse error before `big'
configure: failed program was:
#line 2857 "configure"
#include "confdefs.h"
#include <sys/types.h>
#include <sys/param.h>
int main() {

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
configure:2925: checking for time_t
configure:2958: checking for pid_t
configure:2991: checking for size_t
configure:3024: checking for uid_t in sys/types.h
configure:3060: checking struct ip contains ip_csum
configure:3080: gcc -pipe -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:3075: structure has no member named `ip_csum'
configure: failed program was:
#line 3062 "configure"
#include "confdefs.h"
#ifdef __linux__
#define __BSD_SOURCE
#define _BSD_SOURCE
#define __FAVOR_BSD
#endif
#include <sys/types.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
int main() {

struct ip ip;
ip.ip_csum = 0;

; return 0; }
configure:3095: checking struct ip
configure:3107: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3122: checking struct ip has ip_hl
configure:3134: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3151: checking struct icmp
configure:3164: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3179: checking struct udphdr
configure:3192: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3207: checking BSD struct udphdr
configure:3225: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3241: checking struct tcphdr
configure:3254: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3269: checking struct tcphdr has th_off
configure:3285: gcc -pipe -c -g -O2  conftest.c 1>&5
configure:3300: checking struct tcphdr has th_x2_off
configure:3316: gcc -pipe -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:3312: structure has no member named `th_x2_off'
configure: failed program was:
#line 3302 "configure"
#include "confdefs.h"
#include <sys/types.h>
#ifdef __linux__
#define __FAVOR_BSD
#endif
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
int main() {
struct tcphdr tcp;tcp.th_x2_off = 0;
; return 0; }
configure:3332: checking for long file names
configure:3378: checking for inet_aton in -lc
configure:3397: gcc -pipe -o conftest -g -O2   conftest.c -lc   1>&5
configure:3421: checking for inet_aton in -lresolv
configure:3440: gcc -pipe -o conftest -g -O2   conftest.c -lresolv
1>&5
configure:3464: checking for inet_aton in -lsocket
configure:3483: gcc -pipe -o conftest -g -O2   conftest.c -lsocket
1>&5
/usr/bin/ld: cannot open -lsocket: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:
#line 3472 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char inet_aton();

int main() {
inet_aton()
; return 0; }
configure:3507: checking for inet_aton in -lnsl
configure:3526: gcc -pipe -o conftest -g -O2   conftest.c -lnsl
1>&5
configure:3552: checking if sockaddr{} has sa_len member
configure:3566: gcc -pipe -c -g -O2  conftest.c 1>&5
configure: In function `main':
configure:3562: structure has no member named `sa_len'
configure: failed program was:
#line 3557 "configure"
#include "confdefs.h"

#               include <sys/types.h>
#               include <sys/socket.h>
int main() {
unsigned int i = sizeof(((struct sockaddr *)0)->sa_len)
; return 0; }
configure:3589: checking for a working regexp implementation
configure:3624: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:3644: checking whether we are root
configure:3662: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure:3666: checking whether we are using strange BSD byte
ordering
configure:3737: gcc -pipe -o conftest -g -O2   conftest.c  1>&5
configure: failed program was:
#line 3671 "configure"
#include "confdefs.h"

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <netinet/in_systm.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <sys/socket.h>
extern int errno;
/*
 * The purpose of this program is to determine whether
 * we need to htons(ip.ip_len) (needed on many systems,
 * except some BSD)
 *
 * It works by sending an IP packet to the localhost
 * (this packet will be dropped by the kernel)
 *
 */
int main()
{
 int soc = socket(AF_INET, SOCK_RAW, 0);
 struct ip *ip;
 int on = 1;
 char * buf = malloc(250);
 struct sockaddr_in addr;

 if(geteuid())return(1);
 if(soc < 0)return(2);
 if(setsockopt(soc, IPPROTO_IP, IP_HDRINCL, &on, sizeof(on)) <
0)return(3);

 memset(buf, 'W', 249);
 ip = (struct ip *)buf;
 ip->ip_dst.s_addr = inet_addr("127.0.0.1");
 ip->ip_src.s_addr = inet_addr("127.0.0.1");
#ifdef _IP_VHL
  ip->ip_vhl = 4 << 4 | sizeof(struct ip);
#else
  ip->ip_hl = sizeof(struct ip);
  ip->ip_v = 4;
#endif
  ip->ip_tos = 0;
  /* The critical piece of code is here */
  ip->ip_len = htons(250);
  ip->ip_id = htons(1);
  ip->ip_off = htons(0);
  ip->ip_ttl = 255;
  ip->ip_p = 1;
  ip->ip_sum = 0;

  addr.sin_addr.s_addr = inet_addr("127.0.0.1");
  addr.sin_port = 0;
  addr.sin_family = AF_INET;

  if(sendto(soc, buf, 250, 0, (struct sockaddr *)&addr,
sizeof(addr)))
  {
  /*
   * sendto failed. 22 means 'invalid argument', and means that
   * the ip_len we set was bogus... so we are using BSD byte ordering
   */
  if(errno == 22)return(0);
  }
  else exit(3);
}
configure:3918: checking for pcap_restart in -lpcap-nessus
configure:3937: gcc -pipe -o
conftest -g -O2 -L/usr/local/lib -lnessus -lhosts_gatherer -lpcap-nes
sus -lpeks -lz -lnsl -lresolv   -I/usr/local/include  -I/usr/local/in
clude/nessus -DENABLE_CRYPTO_LAYER -I/usr/local/include/peks
conftest.c -lpcap-nessus   1>&5
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__dn_expand'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_mkquery'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3926 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pcap_restart();

int main() {
pcap_restart()
; return 0; }
configure:3959: checking for pcap_yyrestart in -lpcap-nessus
configure:3978: gcc -pipe -o
conftest -g -O2 -L/usr/local/lib -lnessus -lhosts_gatherer -lpcap-nes
sus -lpeks -lz -lnsl -lresolv   -I/usr/local/include  -I/usr/local/in
clude/nessus -DENABLE_CRYPTO_LAYER -I/usr/local/include/peks
conftest.c -lpcap-nessus   1>&5
/tmp/ccUFDwph.o: In function `main':
/home/guest/libnasl/configure:3974: undefined reference to
`pcap_yyrestart'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__dn_expand'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_mkquery'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 3967 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char pcap_yyrestart();

int main() {
pcap_yyrestart()
; return 0; }
configure:4000: checking for yyrestart in -lpcap-nessus
configure:4019: gcc -pipe -o
conftest -g -O2 -L/usr/local/lib -lnessus -lhosts_gatherer -lpcap-nes
sus -lpeks -lz -lnsl -lresolv   -I/usr/local/include  -I/usr/local/in
clude/nessus -DENABLE_CRYPTO_LAYER -I/usr/local/include/peks
conftest.c -lpcap-nessus   1>&5
/tmp/ccOE8Qtm.o: In function `main':
/home/guest/libnasl/configure:4015: undefined reference to
`yyrestart'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__dn_expand'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_mkquery'
/usr/local/lib/libhosts_gatherer.so: undefined reference to
`__res_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 4008 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char yyrestart();

int main() {
yyrestart()
; return 0; }

Reply via email to