Openwrt/Coovachilli segmentation fault - openwrt

This is the configuration of chilli:
~# cat /etc/chilli.conf
ipup=/etc/chilli/up.sh
ipdown=/etc/chilli/down.sh
conup=/etc/chilli/conup.sh
include /etc/chilli/main.conf
include /etc/chilli/1_wl.conf
include /etc/chilli/2_wl.conf
include /etc/chilli/3_wl.conf
include /etc/chilli/4_wl.conf
The "*_wl.conf" files contain lists like:
uamdomain=*.doodle.com
uamdomain=*.stackoverflow.com
When I run the debug of coovachilli, I notice there is a memory sementation error:
~# chilli --debug --fg
main-opt.c: 605: 0 (Debug) DHCP Listen: 192.168.182.25
main-opt.c: 606: 0 (Debug) UAM Listen: 192.168.182.25
garden.c: 414: 0 (Debug) Uamallowed IP address #0:128: proto=0 host=167.22.27.58 port=80
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
options.c: 443: 0 (Debug) PID 2928 saving options to /var/run/chilli.2927.cfg.bin
options.c: 652: 0 (Debug) PID 2927 reloaded binary options file
chilli.c: 7143: 0 (Debug) clock realtime sec 1447776837 nsec 649225082
chilli.c: 7148: 0 (Debug) clock monotonic sec 203 nsec 835970546
tun.c: 605: 0 (Debug) TX queue length set to 100
tun.c: 1108: 0 (Debug) Running /etc/chilli/up.sh
ippool.c: 338: 0 (Debug) Hashlog 9 509 512
net.c: 1239: 0 (Debug) Net SNDBUF 163840
net.c: 1242: 0 (Debug) Net RCVBUF 163840
net.c: 1295: 0 (Debug) device br-coova ifindex 6
net.c: 1311: 0 (Debug) lo address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) eth0 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) eth1 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) br-coova address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) eth1.4 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) br-lan address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) eth1.1 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) eth1.3 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) wlan0 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) wlan1 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) wlan1-1 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) wlan0-1 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) tap0 address family: 17 (AF_PACKET)
net.c: 1311: 0 (Debug) lo address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) eth0 address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) br-coova address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) br-lan address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) eth1.3 address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) tap0 address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) tun1 address family: 2 (AF_INET)
net.c: 1311: 0 (Debug) lo address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) eth0 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) eth1 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) br-coova address family: 10 (AF_INET6)
net.c: 1326: 0 (Debug) address: <fe80::32b5:c23f:fe62:4fb2%br-coova>
net.c: 1311: 0 (Debug) br-lan address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) eth1.3 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) wlan0 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) wlan1 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) wlan1-1 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) wlan0-1 address family: 10 (AF_INET6)
net.c: 1311: 0 (Debug) tap0 address family: 10 (AF_INET6)
dhcp.c: 481: 0 (Debug) hash table size 64 (56)
dhcp.c: 333: 0 (Debug) GARP: Replying to broadcast
dhcp.c: 1173: 0 (Debug) dhcpif (br-coova) IPv6 address fe81::32b5:f2ff:fe62:4fb2
radius.c: 1315: 0 (Debug) RADIUS client 10.9.1.231:0
chilli.c: 7303: 0 (Debug) Waiting for client request...
radius.c: 321: 0 (Debug) Allocating RADIUS packet
net.c: 388: 0 (Debug) net select count: 1
net.c: 388: 0 (Debug) net select count: 2
net.c: 388: 0 (Debug) net select count: 3
net.c: 388: 0 (Debug) net select count: 4
net.c: 388: 0 (Debug) net select count: 5
net.c: 388: 0 (Debug) net select count: 6
net.c: 388: 0 (Debug) net select count: 7
net.c: 388: 0 (Debug) net select count: 8
dhcp.c: 3593: 0 (Debug) Not for our MAC or broadcast: 32-B4-DC-62-4F-B3
radius.c: 1898: 0 (Debug) Received RADIUS packet id=0
radius.c: 421: 0 (Debug) Freeing RADIUS packet
radius.c: 426: 0 (Debug) RADIUS queue-out id=0 idx=0
chilli.c: 379: 0 (Debug) caught 18 via selfpipe
chilli.c: 310: 0 (Debug) child 2932 terminated
dhcp.c: 5060: 0 (Debug) Layer2 PROT: 0x86dd dropped
dhcp.c: 5060: 0 (Debug) Layer2 PROT: 0x86dd dropped
dhcp.c: 5060: 0 (Debug) Layer2 PROT: 0x86dd dropped
dhcp.c: 3618: 0 (Debug) dhcp/bootps request being processed
dhcp.c: 3263: 0 (Debug) function dhcp_getreq()
dhcp.c: 730: 0 (Debug) DHCP newconn: 48:5a:3f:7d:d4:8b
chilli.c: 5117: 0 (Debug) New DHCP request from MAC=48-5A-3F-7D-D4-8B
chilli.c: 5120: 0 (Debug) New DHCP connection established
chilli.c: 5076: 0 (Debug) New Chilli Connection
chilli.c: 4869: 0 (Debug) ----> cb_dhcp_request <----
chilli.c: 4873: 0 (Debug) DHCP request for IP address 0.0.0.0
chilli.c: 835: 0 (Debug) newip 0.0.0.0
ippool.c: 456: 0 (Debug) Requesting new static ip: 0.0.0.0
ippool.c: 456: 0 (Debug) Requesting new dynamic ip: 0.0.0.0
chilli.c: 5005: 0 (Debug) Client MAC=48-5A-3F-7D-D4-8B assigned IP 192.168.182.2
dhcp.c: 2755: 0 (Debug) dhcp server:
dhcp.c: 3618: 0 (Debug) dhcp/bootps request being processed
dhcp.c: 3263: 0 (Debug) function dhcp_getreq()
chilli.c: 4869: 0 (Debug) ----> cb_dhcp_request <----
chilli.c: 4873: 0 (Debug) DHCP request for IP address 192.168.182.2
dhcp.c: 2755: 0 (Debug) dhcp server:
dhcp.c: 5060: 0 (Debug) Layer2 PROT: 0x86dd dropped
dhcp.c: 5622: 0 (Debug) ARP: 48-5A-3F-7D-D4-8B asking about 192.168.182.25
dhcp.c: 5506: 0 (Debug) ARP: Replying to 192.168.182.2 / 48-5A-3F-7D-D4-8B
dns.c: 187: 0 (Debug) It was a dns record type: 1 class: 1
dns.c: 194: 0 (Debug) DNS: www.google.com
dns.c: 187: 0 (Debug) It was a dns record type: 1 class: 1
dns.c: 194: 0 (Debug) DNS: www.google.com
dns.c: 187: 0 (Debug) It was a dns record type: 1 class: 1
dns.c: 194: 0 (Debug) DNS: www.google.com
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.stackoverflow.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.mysite.com [www.google.com]
dns.c: 210: 0 (Debug) checking *.google.com [www.google.com]
Segmentation fault
When I comment the includes of the whitelist, everything works fine without ant memory error:
~# cat /etc/chilli.conf
ipup=/etc/chilli/up.sh
ipdown=/etc/chilli/down.sh
conup=/etc/chilli/conup.sh
include /etc/chilli/main.conf
#include /etc/chilli/1_wl.conf
#include /etc/chilli/2_wl.conf
#include /etc/chilli/3_wl.conf
#include /etc/chilli/4_wl.conf
Whiltelist files are really small:
# du -sh /etc/chilli/
90.0K /etc/chilli/
Update
The configuration was done using a bash script that will just drop: echo "" > /etc/chilli.conf no magic !
The same configuration generated by the script when copied/pasted to the config file works fine, but when generated and redirected to the configuration file using the script, then I have the segmentation error.

Looks like your configuration is not right:
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com
chilli allows multiple uamdomain option, but chilli does not checks if it's already in the uamdomain list.
Please remove duplicate uamdomain option in your /etc/chilli/*_wl.conf file.
It should shows only one uamdomain debug message per domain like this:
main-opt.c: 785: 0 (Debug) uamdomain *.mysite.com
main-opt.c: 785: 0 (Debug) uamdomain *.stackoverflow.com
main-opt.c: 785: 0 (Debug) uamdomain *.google.com

Related

Mach-O Librarian error while adding OAuthSwift cocoapod

I'm trying to build an xcode project developing in swift using the OAuthSwift Cocoapod. I'm getting an error with the compiler is creating a static library. Error posted below..
Libtool /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Products/Debug-iphonesimulator/libPods-OAuthSwift.a normal x86_64
cd "/Users/Josh/Desktop/MOB 01/whistle/whistle/Pods"
export IPHONEOS_DEPLOYMENT_TARGET=8.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk -L/Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Products/Debug-iphonesimulator -filelist /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-OAuthSwift.build/Objects-normal/x86_64/Pods-OAuthSwift.LinkFileList -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Intermediates/Pods.build/Debug-iphonesimulator/Pods-`OAuthSwift`.build/Objects-normal/x86_64/Pods_OAuthSwift.swiftmodule -framework Foundation -o /Users/Josh/Library/Developer/Xcode/DerivedData/Whistle-gvivrqpbrrykshduohmpjjdibxka/Build/Products/Debug-iphonesimulator/libPods-OAuthSwift.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
Any Suggestions??
UPDATE: Podfile below
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
pod 'LayerKit'
pod 'SwiftyJSON'
pod 'OAuthSwift'

Swift in iOS Cocoa Touch Static Library

I'm trying to use swift in a cocoa static library but the compiler is spitting back at me this:
Libtool /Users/USERNAME/Library/Developer/Xcode/DerivedData/SwiftFramework-gmerfrjnryqwvmbjvschjjxdjyvs/Build/Products/Debug-iphoneos/libSwiftFramework.a normal arm64
cd /Users/USERNAME/Code/Examples/SwiftFramework
export IPHONEOS_DEPLOYMENT_TARGET=8.1
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only arm64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.1.sdk -L/Users/USERNAME/Library/Developer/Xcode/DerivedData/SwiftFramework-gmerfrjnryqwvmbjvschjjxdjyvs/Build/Products/Debug-iphoneos -filelist /Users/USERNAME/Library/Developer/Xcode/DerivedData/SwiftFramework-gmerfrjnryqwvmbjvschjjxdjyvs/Build/Intermediates/SwiftFramework.build/Debug-iphoneos/SwiftFramework.build/Objects-normal/arm64/SwiftFramework.LinkFileList -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/USERNAME/Library/Developer/Xcode/DerivedData/SwiftFramework-gmerfrjnryqwvmbjvschjjxdjyvs/Build/Intermediates/SwiftFramework.build/Debug-iphoneos/SwiftFramework.build/Objects-normal/arm64/SwiftFramework.swiftmodule -o /Users/USERNAME/Library/Developer/Xcode/DerivedData/SwiftFramework-gmerfrjnryqwvmbjvschjjxdjyvs/Build/Products/Debug-iphoneos/libSwiftFramework.a
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `X' in: -Xlinker
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT] [-no_warning_for_no_symbols]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table <filename>] [-seg_addr_table_filename <file_system_path>] [-all_load] [-noall_load]
This happens from creating a new project that is the Cocoa Touch Static Library and then adding an empty swift file to the target.
unknown option character `X' in: -Xlinker
Has anyone seen this when trying this in a static library?

Error while compiling GnuPG for iOS Simulator + iOS

So I've stumbled across this link today: https://github.com/jmstone617/gnutls-gpg-gpgme-for-ios
Now I want to compile the static framework for both the iOS Simulator and the Device. I'm running OS X Yosemite beta 3 and have Xcode 5 as well as Xcode 6 beta 3 installed. I am using the Developer tools of Xcode 6. I also modified the SDKVERSION flag inside build-pgp.sh to 8.0, since I want to compile for the beta. When running sudo ./build-gpg.sh, it finishes really fast but doesn't compile anything.
This is the shell script output:
Downloading gnupg-1.4.16.tar.bz2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3571k 100 3571k 0 0 984k 0 0:00:03 0:00:03 --:--:-- 984k
Building gnupg for iPhoneSimulator 8.0 i386
Follow the build log with: tail -f /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/bin/iPhoneSimulator8.0-i386.sdk/build-gnupg-1.4.16.log
Please stand by...
When looking at the log file, I saw this:
checking build system type... x86_64-apple-darwin14.0.0
checking host system type... i386-apple-darwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i386-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... scripts/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
configure: autobuild project... gnupg
configure: autobuild revision... 1.4.16
configure: autobuild hostname... GLaDOS
configure: autobuild timestamp... 20140717-002358
checking for style of include used by make... GNU
checking for i386-apple-darwin-gcc... /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions
checking whether the C compiler works... no
configure: error: in `/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16':
configure: error: C compiler cannot create executables
See `config.log' for more details
checking build system type... x86_64-apple-darwin14.0.0
checking host system type... i386-apple-darwin
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i386-apple-darwin-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... scripts/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
configure: autobuild project... gnupg
configure: autobuild revision... 1.4.16
configure: autobuild hostname... GLaDOS
configure: autobuild timestamp... 20140717-004756
checking for style of include used by make... GNU
checking for i386-apple-darwin-gcc... /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions
checking whether the C compiler works... no
configure: error: in `/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16':
configure: error: C compiler cannot create executables
See `config.log' for more details
Looking inside config.logI saw this:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by gnupg configure 1.4.16, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --host=i386-apple-darwin --prefix=/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/bin/iPhoneSimulator8.0-i386.sdk --disable-dependency-tracking
## --------- ##
## Platform. ##
## --------- ##
hostname = GLaDOS
uname -m = x86_64
uname -r = 14.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 14.0.0: Mon Jun 30 11:54:42 PDT 2014; root:xnu-2782.1.20~3/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 14.0.0: Mon Jun 30 11:54:42 PDT 2014; root:xnu-2782.1.20~3/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 241 tasks, 1056 threads, 8 processors
Load average: 2.19, Mach factor: 5.80
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/MacGPG2/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2744: checking build system type
configure:2758: result: x86_64-apple-darwin14.0.0
configure:2778: checking host system type
configure:2791: result: i386-apple-darwin
configure:2827: checking for a BSD-compatible install
configure:2895: result: /usr/bin/install -c
configure:2906: checking whether build environment is sane
configure:2956: result: yes
configure:3005: checking for i386-apple-darwin-strip
configure:3035: result: no
configure:3045: checking for strip
configure:3061: found /usr/bin/strip
configure:3072: result: strip
configure:3097: checking for a thread-safe mkdir -p
configure:3136: result: scripts/install-sh -c -d
configure:3149: checking for gawk
configure:3179: result: no
configure:3149: checking for mawk
configure:3179: result: no
configure:3149: checking for nawk
configure:3179: result: no
configure:3149: checking for awk
configure:3165: found /usr/bin/awk
configure:3176: result: awk
configure:3187: checking whether make sets $(MAKE)
configure:3209: result: yes
configure:3293: autobuild project... gnupg
configure:3295: autobuild revision... 1.4.16
configure:3299: autobuild hostname... GLaDOS
configure:3308: autobuild timestamp... 20140717-004756
configure:3327: checking for style of include used by make
configure:3355: result: GNU
configure:3386: checking for i386-apple-darwin-gcc
configure:3413: result: /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions
configure:3682: checking for C compiler version
configure:3691: /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions --version >&5
Apple LLVM version 6.0 (clang-600.0.38) (based on LLVM 3.5svn)
Target: i386-apple-darwin14.0.0
Thread model: posix
configure:3702: $? = 0
configure:3691: /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions -v >&5
Apple LLVM version 6.0 (clang-600.0.38) (based on LLVM 3.5svn)
Target: i386-apple-darwin14.0.0
Thread model: posix
clang: warning: argument unused during compilation: '-fheinous-gnu-extensions'
configure:3702: $? = 0
configure:3691: /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3702: $? = 1
configure:3691: /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3702: $? = 1
configure:3722: checking whether the C compiler works
configure:3744: /Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -I/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/include -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/usr/local/opt/gcc48/lib conftest.c >&5
ld: warning: directory not found for option '-L/usr/local/opt/gcc48/lib'
ld: building for MacOSX, but linking against dylib built for iOS Simulator file '/Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib/libSystem.dylib' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:3748: $? = 1
configure:3786: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "gnupg"
| #define PACKAGE_TARNAME "gnupg"
| #define PACKAGE_VERSION "1.4.16"
| #define PACKAGE_STRING "gnupg 1.4.16"
| #define PACKAGE_BUGREPORT "http://bugs.gnupg.org"
| #define PACKAGE_URL ""
| #define PACKAGE "gnupg"
| #define VERSION "1.4.16"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3791: error: in `/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16':
configure:3793: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin14.0.0
ac_cv_env_CCASFLAGS_set=
ac_cv_env_CCASFLAGS_value=
ac_cv_env_CCAS_set=
ac_cv_env_CCAS_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='/Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -I/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/include'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/usr/local/opt/gcc48/lib'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i386-apple-darwin
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-apple-darwin
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_CC='/Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions'
ac_cv_prog_ac_ct_STRIP=strip
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16/scripts/missing --run aclocal-1.11'
ALLOCA=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE='#'
AMTAR='$${TAR-tar}'
AR='/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar'
AUTOCONF='${SHELL} /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16/scripts/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16/scripts/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16/scripts/missing --run automake-1.11'
AWK='awk'
BUILD_INCLUDED_LIBINTL=''
CAPLIBS=''
CATOBJEXT=''
CC='/Applications/Xcode6-Beta3.app/Contents/Developer/usr/bin/gcc -arch i386 -fheinous-gnu-extensions'
CCAS=''
CCASDEPMODE=''
CCASFLAGS=''
CCDEPMODE=''
CC_FOR_BUILD=''
CFLAGS='-arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -I/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/include'
CFLAG_VISIBILITY=''
CPP=''
CPPFLAGS=''
CROSS_COMPILING_FALSE=''
CROSS_COMPILING_TRUE=''
CYGPATH_W='echo'
DATADIRNAME=''
DEFS=''
DEPDIR='.deps'
DLLIBS=''
DNSLIBS=''
DOCBOOK_TO_MAN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_AGENT_SUPPORT_FALSE=''
ENABLE_AGENT_SUPPORT_TRUE=''
ENABLE_BZIP2_SUPPORT_FALSE=''
ENABLE_BZIP2_SUPPORT_TRUE=''
ENABLE_CARD_SUPPORT_FALSE=''
ENABLE_CARD_SUPPORT_TRUE=''
ENABLE_LOCAL_ZLIB_FALSE=''
ENABLE_LOCAL_ZLIB_TRUE=''
ENABLE_SELINUX_HACKS_FALSE=''
ENABLE_SELINUX_HACKS_TRUE=''
EXEEXT=''
FAKE_CURL_FALSE=''
FAKE_CURL_TRUE=''
GENCAT=''
GETOPT=''
GETTEXT_MACRO_VERSION=''
GLIBC21=''
GLIBC2=''
GMSGFMT=''
GMSGFMT_015=''
GPGKEYS_CURL=''
GPGKEYS_FINGER=''
GPGKEYS_HKP=''
GPGKEYS_LDAP=''
GPGKEYS_MAILTO=''
GREP=''
HAVE_ASPRINTF=''
HAVE_DOCBOOK_TO_MAN_FALSE=''
HAVE_DOCBOOK_TO_MAN_TRUE=''
HAVE_DOSISH_SYSTEM_FALSE=''
HAVE_DOSISH_SYSTEM_TRUE=''
HAVE_NEWLOCALE=''
HAVE_POSIX_PRINTF=''
HAVE_SHM_FALSE=''
HAVE_SHM_TRUE=''
HAVE_SNPRINTF=''
HAVE_USTAR_FALSE=''
HAVE_USTAR_TRUE=''
HAVE_VISIBILITY=''
HAVE_W32_SYSTEM_FALSE=''
HAVE_W32_SYSTEM_TRUE=''
HAVE_WPRINTF=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
INSTOBJEXT=''
INTLBISON=''
INTLLIBS=''
INTLOBJS=''
INTL_DEFAULT_VERBOSITY=''
INTL_LIBTOOL_SUFFIX_PREFIX=''
INTL_MACOSX_LIBS=''
LDAPLIBS=''
LDAP_CPPFLAGS=''
LDFLAGS='-arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode6-Beta3.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -L/usr/local/opt/gcc48/lib'
LIBCURL=''
LIBCURL_CPPFLAGS=''
LIBICONV=''
LIBINTL=''
LIBMULTITHREAD=''
LIBOBJS=''
LIBPTH=''
LIBPTH_PREFIX=''
LIBREADLINE=''
LIBS=''
LIBTHREAD=''
LIBUSB=''
LIBUSB_CPPFLAGS=''
LTLIBC=''
LTLIBICONV=''
LTLIBINTL=''
LTLIBMULTITHREAD=''
LTLIBOBJS=''
LTLIBPTH=''
LTLIBTHREAD=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16/scripts/missing --run makeinfo'
MKDIR_P='scripts/install-sh -c -d'
MPI_EXTRA_ASM_OBJS=''
MPI_OPT_FLAGS=''
MPI_SFLAGS=''
MSGFMT=''
MSGFMT_015=''
MSGMERGE=''
NETLIBS=''
NM='/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm'
NOEXECSTACK_FLAGS=''
OBJEXT=''
PACKAGE='gnupg'
PACKAGE_BUGREPORT='http://bugs.gnupg.org'
PACKAGE_NAME='gnupg'
PACKAGE_STRING='gnupg 1.4.16'
PACKAGE_TARNAME='gnupg'
PACKAGE_URL=''
PACKAGE_VERSION='1.4.16'
PATH_SEPARATOR=':'
PERL=''
POSUB=''
PRI_MACROS_BROKEN=''
RANLIB='/Applications/Xcode6-Beta3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib'
SENDMAIL=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP='strip'
TAR=''
USE_DNS_SRV_FALSE=''
USE_DNS_SRV_TRUE=''
USE_INCLUDED_LIBINTL=''
USE_INTERNAL_REGEX_FALSE=''
USE_INTERNAL_REGEX_TRUE=''
USE_NLS=''
USE_RNDEGD_FALSE=''
USE_RNDEGD_TRUE=''
USE_RNDLINUX_FALSE=''
USE_RNDLINUX_TRUE=''
USE_RNDUNIX_FALSE=''
USE_RNDUNIX_TRUE=''
USE_RNDW32_FALSE=''
USE_RNDW32_TRUE=''
USE_SHA512_FALSE=''
USE_SHA512_TRUE=''
USE_SIMPLE_GETTEXT_FALSE=''
USE_SIMPLE_GETTEXT_TRUE=''
VERSION='1.4.16'
W32LIBS=''
WINDRES=''
WOE32=''
WOE32DLL=''
XGETTEXT=''
XGETTEXT_015=''
XGETTEXT_EXTRA_OPTIONS=''
ZLIBS=''
_libcurl_config=''
_usb_config=''
ac_ct_CC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCCAS_FALSE=''
am__fastdepCCAS_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin14.0.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin14.0.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-apple-darwin'
host_alias='i386-apple-darwin'
host_cpu='i386'
host_os='darwin'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/src/gnupg-1.4.16/scripts/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/scripts/install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Users/lars/Documents/Development/SecureMailIOS/gnutls-gpg-gpgme-for-ios/bin/iPhoneSimulator8.0-i386.sdk'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "gnupg"
#define PACKAGE_TARNAME "gnupg"
#define PACKAGE_VERSION "1.4.16"
#define PACKAGE_STRING "gnupg 1.4.16"
#define PACKAGE_BUGREPORT "http://bugs.gnupg.org"
#define PACKAGE_URL ""
#define PACKAGE "gnupg"
#define VERSION "1.4.16"
configure: exit 77
I tried changing my command line tools to the old Xcode 5 installation and set the SDKVERSION back to iOS 7, but that gave me the same error.
I don't really see where the problem lies here, so I'd appreciate any help I can get!
Thanks in advance!
Edit the file build-gpg.sh and change line number 87 from:
export LDFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${BUILD_SDKROOT} -L/usr/local/opt/gcc48/lib"
to:
export LDFLAGS="-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${BUILD_SDKROOT} -L/usr/local/opt/gcc48/lib -miphoneos-version-min=7.0"
i.e. add -miphoneos-version-min=7.0 to the end.
Before you run build-gpg.sh again make sure you delete the src directory (if it exists) to create a clean build.
Also:
Run build-libgpg-error.sh before running build-gpg.sh.
Change the last cp command in build-gpg.sh from include/g to include/*.

Compiling expat for iOS - Command /bin/sh failed with exit code 2

PS: My earlier question was different, that could be fixed, now I am running into new problem
I am trying to import the libkml library into my iOS project. I realised that expat libraries cannot be linked (?) and so have to build the expat sources for it again.
I found a SO link where a gentleman mentions that he could successfully link expat with his iOS SDK 5.1: How to compile expat with iOS SDK 5.1?
I tried the same using the [script available in github][2] as mentioned in the above link.
But, I am getting an error in the Run phase of the script. I could not make the most out of it but I need help to fix this.
The script used is the same as from github link. C++ standard library in the project is set to "Compiler default" which I presume is LLVM C++. Below is the output from config.log which I am not able to make out with my level of understanding. Please help me out in resolving this problem and build the library to link it across with my project:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by expat configure 2.0.1, which was
generated by GNU Autoconf 2.59. Invocation command line was
$ ./configure --prefix=/Users/raj/Projects/test/bin/iPhoneSimulator5.0-i386.sdk --host=i386-apple-darwin --enable-static
## --------- ##
## Platform. ##
## --------- ##
hostname = Rajs-MacBook-Pro.local
uname -m = x86_64
uname -r = 12.3.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 4.00 gigabytes
Default processor set: 124 tasks, 641 threads, 8 processors
Load average: 1.70, Mach factor: 6.28
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/libexec
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/local/bin
PATH: /Applications/Xcode.app/Contents/Developer/Tools
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2092: checking build system type
configure:2110: result: i386-apple-darwin12.3.0
configure:2118: checking host system type
configure:2132: result: i386-apple-darwin
configure:2148: checking for i386-apple-darwin-gcc
configure:2174: result: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
configure:2456: checking for C compiler version
configure:2459: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc --version </dev/null >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2462: $? = 0
configure:2464: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~182/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
configure:2467: $? = 0
configure:2469: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -V </dev/null >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2472: $? = 1
configure:2495: checking for C compiler default output file name
configure:2498: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/raj/Projects/test/lib conftest.c >&5
configure:2501: $? = 0
configure:2547: result: a.out
configure:2552: checking whether the C compiler works
configure:2558: ./a.out
configure:2561: $? = 0
configure:2578: result: yes
configure:2585: checking whether we are cross compiling
configure:2587: result: no
configure:2590: checking for suffix of executables
configure:2592: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -o conftest -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/raj/Projects/test/lib conftest.c >&5
configure:2595: $? = 0
configure:2620: result:
configure:2626: checking for suffix of object files
configure:2647: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include conftest.c >&5
configure:2650: $? = 0
configure:2672: result: o
configure:2676: checking whether we are using the GNU C compiler
configure:2700: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include conftest.c >&5
configure:2706: $? = 0
configure:2710: test -z
|| test ! -s conftest.err
configure:2713: $? = 0
configure:2716: test -s conftest.o
configure:2719: $? = 0
configure:2732: result: yes
configure:2738: checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -g
configure:2759: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -g conftest.c >&5
configure:2765: $? = 0
configure:2769: test -z
|| test ! -s conftest.err
configure:2772: $? = 0
configure:2775: test -s conftest.o
configure:2778: $? = 0
configure:2789: result: yes
configure:2806: checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to accept ANSI C
configure:2876: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -c -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include conftest.c >&5
conftest.c:10:19: error: stdio.h: No such file or directory
conftest.c:11:23: error: sys/types.h: No such file or directory
conftest.c:12:22: error: sys/stat.h: No such file or directory
conftest.c:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
conftest.c:44: error: expected declaration specifiers or '...' before 'FILE'
configure:2882: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "expat"
| #define PACKAGE_TARNAME "expat"
| #define PACKAGE_VERSION "2.0.1"
| #define PACKAGE_STRING "expat 2.0.1"
| #define PACKAGE_BUGREPORT "expat-bugs#libexpat.org"
| /* end confdefs.h. */
| #include <stdarg.h>
| #include <stdio.h>
| #include <sys/types.h>
| #include <sys/stat.h>
| /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
| struct buf { int x; };
| FILE * (*rcsopen) (struct buf *, struct stat *, int);
| static char *e (p, i)
| char **p;
| int i;
| {
| return p[i];
| }
| static char *f (char * (*g) (char **, int), char **p, ...)
| {
| char *s;
| va_list v;
| va_start (v,p);
| s = g (p, va_arg (v,int));
| va_end (v);
| return s;
| }
.
.
.
.
.
configure: exit 0
In addition to the above config.log file, I could find a build log too.
Details of the build-expat-2.0.1.log file:
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-darwin12.3.0
checking host system type... i386-apple-darwin
checking for i386-apple-darwin-gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -g... yes
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to accept ANSI C... none needed
checking for a sed that does not truncate output... /usr/bin/sed
checking for egrep... grep -E
checking for ld used by /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) is GNU ld... no
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/nm
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -E
checking for ANSI C header files... no
checking for sys/types.h... no
checking for sys/stat.h... no
checking for stdlib.h... no
checking for string.h... no
checking for memory.h... no
checking for strings.h... no
checking for inttypes.h... no
checking for stdint.h... no
checking for unistd.h... no
checking dlfcn.h usability... no
checking dlfcn.h presence... yes
configure: WARNING: dlfcn.h: present but cannot be compiled
configure: WARNING: dlfcn.h: check for missing prerequisite headers?
configure: WARNING: dlfcn.h: see the Autoconf documentation
configure: WARNING: dlfcn.h: section "Present But Cannot Be Compiled"
configure: WARNING: dlfcn.h: proceeding with the preprocessor's result
configure: WARNING: dlfcn.h: in the future, the compiler will take precedence
configure: WARNING: ## -------------------------------------- ##
configure: WARNING: ## Report this to expat-bugs#libexpat.org ##
configure: WARNING: ## -------------------------------------- ##
checking for dlfcn.h... yes
checking for i386-apple-darwin-g++... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++
checking whether we are using the GNU C++ compiler... yes
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ accepts -g... yes
checking how to run the C++ preprocessor... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-cpp-4.2
checking for i386-apple-darwin-g77... no
checking for i386-apple-darwin-f77... no
checking for i386-apple-darwin-xlf... no
checking for i386-apple-darwin-frt... no
checking for i386-apple-darwin-pgf77... no
checking for i386-apple-darwin-fort77... no
checking for i386-apple-darwin-fl32... no
checking for i386-apple-darwin-af77... no
checking for i386-apple-darwin-f90... no
checking for i386-apple-darwin-xlf90... no
checking for i386-apple-darwin-pgf90... no
checking for i386-apple-darwin-epcf90... no
checking for i386-apple-darwin-f95... no
checking for i386-apple-darwin-fort... no
checking for i386-apple-darwin-xlf95... no
checking for i386-apple-darwin-ifc... no
checking for i386-apple-darwin-efc... no
checking for i386-apple-darwin-pgf95... no
checking for i386-apple-darwin-lf95... no
checking for i386-apple-darwin-gfortran... no
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 196608
checking command to parse /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/nm output from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc object... ok
checking for objdir... .libs
checking for i386-apple-darwin-ar... no
checking for ar... ar
checking for i386-apple-darwin-ranlib... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ranlib
checking for i386-apple-darwin-strip... no
checking for strip... strip
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc supports -fno-rtti -fno-exceptions... no
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to produce PIC... -fno-common
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc PIC flag -fno-common works... yes
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc static flag -static works... no
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc supports -c -o file.o... yes
checking whether the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++... /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) is GNU ld... no
checking whether the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) supports shared libraries... yes
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ option to produce PIC... -fno-common
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ PIC flag -fno-common works... yes
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ static flag -static works... no
checking if /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ supports -c -o file.o... yes
checking whether the /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/g++ linker (/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin dyld
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for i386-apple-darwin-gcc... (cached) /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -g... (cached) yes
checking for /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc option to accept ANSI C... (cached) none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking whether /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc accepts -fexceptions... yes
checking for ANSI C header files... (cached) no
checking whether byte ordering is bigendian... no
checking for an ANSI C-conforming const... yes
checking for size_t... no
checking for memmove... no
checking for bcopy... no
checking fcntl.h usability... no
checking fcntl.h presence... yes
configure: WARNING: fcntl.h: present but cannot be compiled
configure: WARNING: fcntl.h: check for missing prerequisite headers?
configure: WARNING: fcntl.h: see the Autoconf documentation
configure: WARNING: fcntl.h: section "Present But Cannot Be Compiled"
configure: WARNING: fcntl.h: proceeding with the preprocessor's result
configure: WARNING: fcntl.h: in the future, the compiler will take precedence
configure: WARNING: ## -------------------------------------- ##
configure: WARNING: ## Report this to expat-bugs#libexpat.org ##
configure: WARNING: ## -------------------------------------- ##
checking for fcntl.h... yes
checking for unistd.h... (cached) no
checking for off_t... no
checking for stdlib.h... (cached) no
checking for unistd.h... (cached) no
checking for getpagesize... no
checking for working mmap... no
checking for an ANSI C99-conforming __func__... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating expat_config.h
config.status: expat_config.h is unchanged
/bin/sh ./libtool --silent --mode=compile /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc -I./lib -I. -arch i386 -pipe -no-cpp-precomp -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -I/Users/raj/Projects/test/include -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -DHAVE_EXPAT_CONFIG_H -o lib/xmlparse.lo -c lib/xmlparse.c
lib/xmlparse.c:6:65: error: string.h: No such file or directory
lib/xmlparse.c:7:20: error: assert.h: No such file or directory
In file included from lib/xmlparse.c:24:
lib/expat.h:17:20: error: stdlib.h: No such file or directory
lib/xmlparse.c:81:2: error: #error memmove does not exist on this platform, nor is a substitute available
lib/xmlparse.c: In function 'parserCreate':
lib/xmlparse.c:719: warning: implicit declaration of function 'malloc'
lib/xmlparse.c:719: warning: incompatible implicit declaration of built-in function 'malloc'
lib/xmlparse.c:722: warning: assignment from incompatible pointer type
lib/xmlparse.c:723: error: 'realloc' undeclared (first use in this function)
lib/xmlparse.c:723: error: (Each undeclared identifier is reported only once
lib/xmlparse.c:723: error: for each function it appears in.)
lib/xmlparse.c:724: error: 'free' undeclared (first use in this function)
lib/xmlparse.c: In function 'parserInit':
lib/xmlparse.c:848: warning: implicit declaration of function 'memset'
lib/xmlparse.c:848: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c: In function 'XML_Parse':
lib/xmlparse.c:1543: warning: implicit declaration of function 'memcpy'
lib/xmlparse.c:1543: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'XML_GetBuffer':
lib/xmlparse.c:1627: warning: implicit declaration of function 'memmove'
lib/xmlparse.c:1627: warning: incompatible implicit declaration of built-in function 'memmove'
lib/xmlparse.c:1656: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'XML_GetParsingStatus':
lib/xmlparse.c:1750: warning: implicit declaration of function 'assert'
lib/xmlparse.c: In function 'storeRawNames':
lib/xmlparse.c:2009: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'doContent':
lib/xmlparse.c:2424: warning: implicit declaration of function 'memcmp'
lib/xmlparse.c: In function 'storeAtts':
lib/xmlparse.c:2922: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c:2931: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'addBinding':
lib/xmlparse.c:3039: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c: In function 'lookup':
lib/xmlparse.c:5871: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c:5898: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c:5927: warning: incompatible implicit declaration of built-in function 'memset'
lib/xmlparse.c: In function 'poolGrow':
lib/xmlparse.c:6112: warning: incompatible implicit declaration of built-in function 'memcpy'
lib/xmlparse.c:6148: warning: incompatible implicit declaration of built-in function 'memcpy'
make: *** [lib/xmlparse.lo] Error 1
Two suggestions:
1) build the library for OSX, that is run ./configure and make. If that works, construct a Xcode library project, add all the library source files, and the created congig.h etc. get this project to compile, then add the project to your app. I have done this and it's often the easiest (in the end) solution.
2) if you cannot get that to work offer a 100 to 250 bounty and someone else will do it. That's a clear benefit of building up points here - you can use them for something when you really need to!

libtool failed with exit code 1 in Xcode 4.2

I compile my project, it shows this error:
Libtool /Users/trinstanchen/Library/Developer/Xcode/DerivedData/iOSSocial-dedmezxegpbuqnfkhmbfrvtphyas/Build/Products/Debug-iphonesimulator/libiOSSocial.a normal i386
cd "/Users/trinstanchen/Downloads/iOSSocial-develop copy/iOSSocial"
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only i386 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk -L/Users/trinstanchen/Library/Developer/Xcode/DerivedData/iOSSocial-dedmezxegpbuqnfkhmbfrvtphyas/Build/Products/Debug-iphonesimulator -filelist /Users/trinstanchen/Library/Developer/Xcode/DerivedData/iOSSocial-dedmezxegpbuqnfkhmbfrvtphyas/Build/Intermediates/iOSSocial.build/Debug-iphonesimulator/iOSSocial.build/Objects-normal/i386/iOSSocial.LinkFileList -ObjC -fno-objc-arc -framework CoreGraphics -framework SenTestingKit -framework UIKit -framework Foundation -o /Users/trinstanchen/Library/Developer/Xcode/DerivedData/iOSSocial-dedmezxegpbuqnfkhmbfrvtphyas/Build/Products/Debug-iphonesimulator/libiOSSocial.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: unknown option character `f' in: -fno-objc-arc
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-sacLT]
Usage: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -dynamic [-] file [...] [-filelist listfile[,dirname]] [-arch_only arch] [-o output] [-install_name name] [-compatibility_version #] [-current_version #] [-seg1addr 0x#] [-segs_read_only_addr 0x#] [-segs_read_write_addr 0x#] [-seg_addr_table ] [-seg_addr_table_filename ] [-all_load] [-noall_load]
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
can anyone give me help?

Resources