Home page logo
/

nmap-dev logo Nmap Development mailing list archives

iphone nmap compile error
From: Mike C <mikec824 () gmail com>
Date: Sun, 24 May 2009 14:20:44 -0400

I attempted to compile nmap on the iphone a few months ago with no luck,
but this cropped up today, I see what is causing the error (incorrect
include?) but I dont know c++,
learning Java now.
Any help would be great.

-Mike

gcc -c  -g -O2 -Wall  -I../../nbase  -DHAVE_CONFIG_H
-DNSOCK_VERSION=\"0.02\" -D_FORTIFY_SOURCE=2 -I../include -I../../libpcap
nsock_pcap.c -o nsock_pcap.o
rm -f libnsock.a
ar cr libnsock.a error.o filespace.o gh_list.o nsock_connect.o nsock_core.o
nsock_iod.o nsock_read.o nsock_timers.o nsock_write.o nsock_ssl.o
nsock_utils.o nsock_event.o nsock_pool.o netutils.o nsock_pcap.o
ranlib libnsock.a
make[1]: Leaving directory `/private/var/root/nmap-4.85BETA9/nsock/src'
make nmap
make[1]: Entering directory `/private/var/root/nmap-4.85BETA9'
g++ -c -DNOLUA -Ilibdnet-stripped/include  -Inbase -Insock/include
-no-cpp-precomp -g -O2 -Wall  -fno-strict-aliasing   -DHAVE_CONFIG_H
-DNMAP_NAME=\"Nmap\" -DNMAP_URL=\"http://nmap.org\";
-DNMAP_PLATFORM=\"arm-apple-darwin9.4.1\"
-DNMAPDATADIR=\"/usr/local/share/nmap\" -D_FORTIFY_SOURCE=2 main.cc -o
main.o
In file included from output.h:115,
                 from NmapOps.h:95,
                 from main.cc:96:
portlist.h:95:15: error: map: No such file or directory
In file included from main.cc:96:
NmapOps.h:96:18: error: string: No such file or directory
In file included from main.cc:96:
NmapOps.h:307: error: ISO C++ forbids declaration of 'map' with no type
NmapOps.h:307: error: invalid use of '::'
NmapOps.h:307: error: expected ';' before '<' token
NmapOps.h:310: error: ISO C++ forbids declaration of 'map' with no type
NmapOps.h:310: error: invalid use of '::'
NmapOps.h:310: error: expected ';' before '<' token
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/private/var/root/nmap-4.85BETA9'
make: *** [all] Error 2

_______________________________________________
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:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]