Nmap Development mailing list archives
Re: iphone nmap compile error
From: Mike C <mikec824 () gmail com>
Date: Mon, 25 May 2009 01:31:11 -0400
Found the following: map and string --> /var/include/c++/4.0.0/ stl_tree.h etc etc.. --> /var/include/c++/4.0.0/bits adding .h to string helped, map is now the problem. These files are in /var/include/c++/4.0.0/bits (all of them) yet they are not being included with map (map cant not find those files yet they are right their). ./config.status --recheck running CONFIG_SHELL=/bin/sh /bin/sh ./configure --without-ncat --without-liblua --without-zenmap --without-ndiff --no-create --no-recursion 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 portlist.h:95, from output.h:115, from NmapOps.h:95, from main.cc:96: /var/include/c++/4.0.0/map:65:27: error: bits/stl_tree.h: No such file or directory /var/include/c++/4.0.0/map:66:26: error: bits/stl_map.h: No such file or directory /var/include/c++/4.0.0/map:67:31: error: bits/stl_multimap.h: 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/try1' make: *** [all] Error 2 N239:~/try1 root# make On Sun, May 24, 2009 at 11:06 PM, David Fifield <david () bamsoftware com>wrote:
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.onsock_core.onsock_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 2Can 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
Current thread:
- iphone nmap compile error Mike C (May 24)
- Re: iphone nmap compile error David Fifield (May 24)
- Re: iphone nmap compile error Mike C (May 24)
- Re: iphone nmap compile error David Fifield (May 25)
- Re: iphone nmap compile error Mike C (May 25)
- Re: iphone nmap compile error David Fifield (May 25)
- Re: iphone nmap compile error Mike C (May 25)
- Re: iphone nmap compile error doug (May 25)
- Re: iphone nmap compile error Mike C (May 24)
- Re: iphone nmap compile error David Fifield (May 24)