Nmap Development mailing list archives
Re: iphone nmap compile error
From: doug () hcsw org
Date: Tue, 26 May 2009 03:51:36 +0000
Ya cydia has an on-phone gcc compiler but it doesn't come with header files due to copyright reasons. I never really got this working very far. I had to compile some codecs a while ago for some installer/cydia apps and I used a darwin/ARM cross-compiler from linux/x86. Definitely follow saurik's instructions: http://www.saurik.com/id/4 It's a PITA cause you have to get like 10 gigs of crap from apple websites and I think you even need a developer login for some of the files (maybe they've chilled out since). The instructions are fairly straightforward but super long.. They will take you at least an evening. I cross compiled an old nmap using the telesphoreo patches. Looks like they are at 4.76 now. You might want to talk to them if the latest Nmap version doesn't compile with the cross compiler. #iphone @ irc.saurik.com was pretty active back in the day... err back when iphone was still cool. It's probably still the best place to talk to people actually using toolchain (ie not xcode). Good luck, Doug PS. I also got most of the way through a perl 5 cross compile but hit some problem and gave up. Perl cross compiles require you to use the on-board gcc but just for the configuration and then you can copy over the config files to your cross compiler machine and compile miniperl and copy this bin to the phone to generate some more config files and then copy those to your cross compiler machine to generate regular perl..... or something like that. On Mon, May 25, 2009 at 12:21:16PM -0400 or thereabouts, Mike C wrote:
I have tried the i686 headers with no luck. The package manager Cydia provides most GCC tools with the toolchain (its an easy installer that uses apt). I was hoping that having GCC ment the usual headers in the correct spots. as you can see from here most apps needed some work: http://svn.telesphoreo.org/trunk/data/nmap/ On Mon, May 25, 2009 at 11:24 AM, David Fifield <david () bamsoftware com>wrote: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.oConfigure 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
Attachment:
_bin
Description:
_______________________________________________ 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)