Home page logo
/

nmap-dev logo Nmap Development mailing list archives

Re: iphone nmap compile error
From: David Fifield <david () bamsoftware com>
Date: Sun, 24 May 2009 21:06:47 -0600

On Sun, May 24, 2009 at 02:20:44PM -0400, Mike C wrote:
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

Can you check whether the iPhone development environment includes the
C++ Standard Template Library (also known as the STL)? It's surprising
that this doesn't work. You might also try replacing map with map.h,
string with string.h, etc. Please report back if that works.

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