Nmap Development mailing list archives
Re: compile error on Ubuntu 9.10
From: David Fifield <david () bamsoftware com>
Date: Mon, 2 Nov 2009 08:15:15 -0700
On Mon, Nov 02, 2009 at 01:29:41AM -0600, Matt Raspberry wrote:
Hi all, I am unable to compile r15955 on Ubuntu 9.10 gcc -o ncat -g -O2 -Wall -L../libpcap ncat_main.o ncat_connect.o ncat_core.o ncat_posix.o ncat_listen.o ncat_proxy.o ncat_broker.o ncat_hostmatch.o ncat_ssl.o base64.o http.o util.o sys_wrap.o ../nsock/src/libnsock.a ../nbase/libnbase.a -lssl -lcrypto -lpcap -lssl -lcrypto -ldl ../libpcap/libpcap.a(gencode.o): In function `pcap_compile': /home/matt/nmap/libpcap/./gencode.c:397: undefined reference to `lex_init' /home/matt/nmap/libpcap/./gencode.c:399: undefined reference to `pcap_parse' /home/matt/nmap/libpcap/./gencode.c:416: undefined reference to `lex_cleanup' /home/matt/nmap/libpcap/./gencode.c:383: undefined reference to `lex_cleanup' ../libpcap/libpcap.a(grammar.o): In function `yyparse': /home/matt/nmap/libpcap/y.tab.c:2092: undefined reference to `yylex' collect2: ld returned 1 exit status make[1]: *** [ncat] Error 1 make[1]: Leaving directory `/home/matt/nmap/ncat' make: *** [ncat_build] Error 2
Try running "make distclean", then configuring and compiling again. libpcap was recently upgraded so a SVN update may have messed up the dates on the build files. Building libpcap should not require Bison or Flex when done within the Nmap tree. Normally it does, but we pregenerate the parser files and keep them in the repository. David Fifield _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- compile error on Ubuntu 9.10 Matt Raspberry (Nov 01)
- Re: compile error on Ubuntu 9.10 Tom Sellers (Nov 02)
- Re: compile error on Ubuntu 9.10 Matthew Raspberry (Nov 02)
- Re: compile error on Ubuntu 9.10 David Fifield (Nov 02)
- Re: compile error on Ubuntu 9.10 Matt Raspberry (Nov 02)
- Re: compile error on Ubuntu 9.10 David Fifield (Nov 02)
- Re: compile error on Ubuntu 9.10 Corey Chandler (Nov 02)
- Re: compile error on Ubuntu 9.10 Matt Raspberry (Nov 02)
- Re: compile error on Ubuntu 9.10 Tom Sellers (Nov 02)