-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey list,

I have been trying to cross-compile libpcap-1.1.1 for use on the iPhone
(armv6 architecture) to no avail. I have the iPhone SDK 3.1.3 installed
on my Mac (10.6, Snow Leopard) and I have managed to successfully
compile and run applications on the iPhone that don't require any
additional dependencies. However, when trying compile a program that
requires libpcap it fails with the error that the architecture type
isn't correct.

I have thus began trying to compile libpcap for armv6 / arm-apple-darwin
which results in the following error:

bash-3.2# ./configure
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
LD=Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ld
- --host=arm-apple-darwin
 configure: WARNING: If you wanted to set the --build type, don't use
- --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i386-apple-darwin10.2.0
checking host system type... arm-apple-darwin
checking target system type... arm-apple-darwin
checking for arm-apple-darwin-gcc...
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
...
configure: error: pcap type not determined when cross-compiling; use
- --with-pcap=...

Inspecting config.log I see multiple errors:

bash-3.2# grep "error:" config.log
conftest.c:10: error: ac_nonexistent.h: No such file or directory
conftest.c:53:25: error: sys/bitypes.h: No such file or directory
conftest.c:20: error: sys/bitypes.h: No such file or directory
conftest.c:29:23: error: net/pfvar.h: No such file or directory
conftest.c:28:30: error: netinet/if_ether.h: No such file or directory
conftest.c:32:30: error: netinet/if_ether.h: No such file or directory
conftest.c:63:27: error: netinet/ether.h: No such file or directory
conftest.c:30: error: netinet/ether.h: No such file or directory
conftest.c:38:30: error: netinet/if_ether.h: No such file or directory
conftest.c:47: error: invalid application of 'sizeof' to incomplete type
'ac__type_new_'
configure:6902: error: pcap type not determined when cross-compiling;
use --with-pcap=...

Can anyone spread some light on this?

Many Thanks,

A

- -- 

Alan Neville,
Postgraduate Education Officer,
DCU Students' Union 2009/2010,
BS.c Computer Applications DCU (Completed)
MS.c Security and Forensics DCU (Attending)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMINs0AAoJEJ1FG8f8Uuluv3UH/j6Iu34WWEkQli1Rt/+MCgxa
Q8xLK8y6XN/vaJGlm6FQG6Ge60VGXtjdLI4cALtT4Tm2WXN/ElCH6F868/NA5GwP
eMASC6EyKrXyMQ/qj3NK9qpTVtE4ynbPv2cnfkoJl/3S2ueY/SBLUSf9U8dOBUVx
a9nQoN+prUJN+F3bqPlJdsuTCthsQoaf+l/pAnc2Sh22W7R0ZQhSeyuPHL//Wozj
60crcwkGqeM1DYLwWMqIZEFSPSW+dhtmCxB3qKqVWMiyFI808LG1Dz3U6VC+pd0y
EGibVc3ooktrNJf8u890yyjpTDC349GgHDv7RTwxmAk6CZtmu/8dyTODdqFm5Vw=
=BY+I
-----END PGP SIGNATURE-----
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.

Reply via email to