Nmap Development mailing list archives
re: patches for HP-UX 11.11compilation problems
From: Zakharov Mikhail <zmey20000 () yahoo com>
Date: Sat, 17 Jun 2006 16:21:24 +0400 (MSD)
--- Zakharov Mikhail <zmey20000 () yahoo com> пишет:
Hi! These simple patches fix nmap-4.03 compilation problem under HP-UX 11.11. Tested with gcc 4.1.0 on c110 (9000/777) box under HP-UX 11.11. you should patch configure and configure.ac, then just run ./configure The point is, that library -lnm was not included to configure.ac and as a result was not specified in LIBS variable in configure script. The same patches for nmap-4.10 also included. Found another bug: can't compile nmap-4.10 on HP-UX 11.11. Here is the output: Compiling nmap rm -f nmap g++ -Llibpcap -Lnbase -Lnsock/src/ -o nmap main.o nmap.o targets.o tcpip.o nmap_error.o utils.o idle_scan.o osscan.o output.o scan_engine.o timing.o charpool.o services.o protocols.o nmap_rpc.o portlist.o NmapOps.o TargetGroup.o Target.o FingerPrintResults.o service_scan.o NmapOutputTable.o MACLookup.o nmap_tty.o nmap_dns.o -lnbase -lnsock -lpcre -lpcap libdnet-stripped/src/.libs/libdnet.a -lm -lnm /usr/ccs/bin/ld: Unsatisfied symbols: pcap_parse (first referenced in libpcap/libpcap.a(gencode.o)) (code) collect2: ld returned 1 exit status gmake: *** [nmap] Error 1
Ok, I fixed the bug with pcap_parse() at least on HP-UX. Here is the patch which adds this string: #define yyparse pcap_parse to libpcap/grammar.c file. Environment is the same, HP-UX 11.11, C110 9000/777, GCC-4.1.0, nmap-4.10 ________________________________________________________ Вы уже с Yahoo!? Испытайте обновленную и улучшенную. Yahoo! Почту! http://ru.mail.yahoo.com
--- grammar.c.orig 2006-05-06 09:47:28.000000000 +0300 +++ grammar.c 2006-05-06 09:47:32.000000000 +0300 @@ -48,7 +48,7 @@ /* Using locations. */ #define YYLSP_NEEDED 0 - +#define yyparse pcap_parse /* Tokens. */ #ifndef YYTOKENTYPE
_______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev
Current thread:
- patches for HP-UX 11.11compilation problems Zakharov Mikhail (Jun 16)
- re: patches for HP-UX 11.11compilation problems Zakharov Mikhail (Jun 17)
- Re: patches for HP-UX 11.11compilation problems Fyodor (Jun 18)
- Ответ: Re: patches for HP-UX 11.11compilation problems Zakharov Mikhail (Jun 19)
- Re: patches for HP-UX 11.11compilation problems Fyodor (Jun 18)
- <Possible follow-ups>
- Re: Re: patches for HP-UX 11.11compilation problems Zakharov Mikhail (Jun 24)
- re: patches for HP-UX 11.11compilation problems Zakharov Mikhail (Jun 17)