Nmap Development mailing list archives

Re: iphone nmap compile error


From: David Fifield <david () bamsoftware com>
Date: Mon, 25 May 2009 09:24:10 -0600

On Mon, May 25, 2009 at 10:50:51AM -0400, Mike C wrote:
I added the new path to my configure script, worked untill map
(bits/c++config.h) needed the rest.

having a look none look usable for my arch or compiler ver? (arm-darwin):

./c++/4.0.0/i686-apple-darwin8/bits/c++config.h
./c++/4.0.0/i686-apple-darwin8/x86_64/bits/c++config.h
./c++/4.0.0/i686-apple-darwin9/bits/c++config.h
./c++/4.0.0/i686-apple-darwin9/x86_64/bits/c++config.h
./c++/4.0.0/powerpc-apple-darwin8/bits/c++config.h
./c++/4.0.0/powerpc-apple-darwin8/ppc64/bits/c++config.h
./c++/4.0.0/powerpc-apple-darwin9/bits/c++config.h
./c++/4.0.0/powerpc-apple-darwin9/ppc64/bits/c++config.h
./c++/4.0.0/powerpc64-apple-darwin8/bits/c++config.h
./c++/4.0.0/x86_64-apple-darwin8/bits/c++config.h
./gcc/darwin/3.3/c++/i386-darwin/bits/c++config.h
./gcc/darwin/3.3/c++/ppc-darwin/bits/c++config.h
./gcc/darwin/3.3-fast/c++/i386-darwin/bits/c++config.h
./gcc/darwin/3.3-fast/c++/ppc-darwin/bits/c++config.h

make[1]: Entering directory `/private/var/root/try1'
g++ -c -DNOLUA -Ilibdnet-stripped/include  -Inbase -I/var/include/c++/4.0.0
-I/var/include/c++/4.0.0/i686-apple-darwin9/bits -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

Configure as before, but this time don't include "/bits" at the end of
the header search path. That is,

CPPFLAGS="-I/var/include/c++/4.0.0 -I/var/include/c++/4.0.0/i686-apple-darwin9" ./configure

The preprocessor is already looking for a bits subdirectory, so by
including it, it's looking one level too deep.

It's pretty strange that you don't have an arm-apple-darwin-*
configuration directory. Are you supposed to be able to compile C++
applications natively on the iPhone? Does GCC come with the phone, or
did you have to install it separately? Maybe there is an installation
problem.

David Fifield

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: