|
Nmap Development
mailing list archives
Re: Problem compile nmap-4.68 on SunOS 5.6
From: David Fifield <david () bamsoftware com>
Date: Mon, 29 Sep 2008 12:11:43 -0600
On Sat, Sep 13, 2008 at 04:50:40PM +0800, Najib Hassan wrote:
Hi, I just configure nmap-4.68 on my sunOS 4.68 box and it work but having
problem after trying to "make" step.
Does anyone know why this may be?
Compiling libnsock
cd nsock/src && make
make[1]: Entering directory `/opt/pta/nmap-4.68/nsock/src'
gcc -c -g -O2 -Wall -I../../nbase -DHAVE_CONFIG_H
-DNSOCK_VERSION=\"0.02\" -I../include -I../../libpcap nsock_connect.c -o
nsock_connect.o
nsock_connect.c: In function `nsi_getlastcommunicationinfo':
nsock_connect.c:312: error: `socklen_t' undeclared (first use in this
function)
nsock_connect.c:312: error: (Each undeclared identifier is reported only
once
nsock_connect.c:312: error: for each function it appears in.)
nsock_connect.c:312: error: parse error before "slen"
nsock_connect.c:329: error: `slen' undeclared (first use in this function)
make[1]: *** [nsock_connect.o] Error 1
make[1]: Leaving directory `/opt/pta/nmap-4.68/nsock/src'
make: *** [nsock_build] Error 2
It looks like that version of SunOS doesn't have the socklen_t typedef.
Try adding the line
typedef int socklen_t;
to nsock/src/nsock_config.h.in, then reconfigure and rebuild. Probably
it will build nsock, then fail somewhere else because there are other
places where socklen_t is used. We could add a configure check for it.
David Fifield
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org
By Date
By Thread
Current thread:
|