Trying to compile an original program that is called pcap.h. I have installed the environment on my Mac OSX box which uses the iPhone 3.1.3 SDK for an iPhone 3GS. I have also installed libpcap in ~ / libpcap, so I can say GCC that to see the headers using the I-I flag. However, saying that the file does not require architecture, it fails with a ld alert
I am compiling with the following line:.
/ Developer / Platforms / iPhoneOS .platform / Developer / usr / bin / gcc I / users / abnev / libpcap / include -arch ARMv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer /SDKs/iPhoneOS3.1.3.sdk -o PCAP pcap.c - lpcap
are generated being error:
ld: warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk /usr/lib/libpcap.dylib, required file is not in architecture undefined symbols: "_pcap_open_live in ccOL3e0B.o" ccOL3e0B.o _main Referenced from _main, from: "_pcap_geterr" referenced from, _main "_pcap_next" in ccOL3e0B.o Ref: "_pcap_lookupdev" _main in ccOL3e0B.o, referenced from: "_pcap_setfilter" _main in ccOL3e0B.o, referenced from: _main "_pcap_lookupnet" in ccOL3e0B.o, referenced by _main "_pc, _pcap_compile" in ccOL3e0B.o : ap_close "refers to _main, in ccOL3e0B.o": _main in ccOL3e0B.o ld: can not find symbol (s) collect2: ld returned exit status 1
I now let That I need to recompile the libpcp for armv6 architecture (iphone), but Check / Configure options does not help. I have tried it for Google but there is very little.
to may be generate a makefile that crosses the composible Libopakap for iOS. I think the app will install to Libpikap a jailbreaking iPhones, or use it, at least if you're going to capture packets, because you'll need to root pcap. C is not a source of libpcap, it is a of source files on libpcap. You have to compile all source files and make them in a library.
Sifelajis = "- I / Users / abnev / libpcap / include -arch Armv6 -isysroot / developer / platforms / iPhoneOS.platform / developer / SDKs / iPhoneOS3 .1.3.sdk "./configure
Comments
Post a Comment