Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard




On Oct 30, 2007, at 11:26 PM, Terry Simons wrote:

I'm trying to do a Universal Binary build based on the instructions located at:


http://developer.apple.com/technotes/tn2005/tn2137.html


All of the binaries in my project (auto-tools, not xcode) are building fine except for the main binary.


I'm seeing the following error happen during the link stage:


gcc -I../src/cardif  -Wall -fno-strict-aliasing -g -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc  -arch i386 -arch ppc -o xsupplicant xsupplicant-xsup_driver.o xsupplicant-xsup_debug.o xsupplicant-context.o xsupplicant-config_ssid.o xsupplicant-getopts.o xsupplicant-eapol.o xsupplicant-statemachine.o xsupplicant-eap_sm.o xsupplicant-snmp.o xsupplicant-wpa.o xsupplicant-wireless_sm.o xsupplicant-event_core.o xsupplicant-xsup_common.o xsupplicant-key_statemachine.o xsupplicant-eapol_key_type1.o xsupplicant-wpa_common.o xsupplicant-eapol_key_type254.o xsupplicant-mic.o xsupplicant-psk.o xsupplicant-backend_sm.o xsupplicant-eapol_key_type2.o xsupplicant-wpa2.o xsupplicant-timer.o xsupplicant-interfaces.o xsupplicant-ipc_events.o xsupplicant-error_prequeue.o xsupplicant-plugins.o xsupplicant-xsup_ipc.o xsupplicant-ipc_callout.o xsupplicant-eapmd5.o xsupplicant-md5.o xsupplicant-eapmschapv2.o xsupplicant-mschapv2.o xsupplicant-eaptls.o xsupplicant-gnu_tls_funcs.o xsupplicant-ossl_tls_funcs.o xsupplicant-certificates.o xsupplicant-eapttls.o xsupplicant-ttlsphase2.o xsupplicant-phase2_common.o xsupplicant-ttls_eap.o xsupplicant-osc_ttls_tnc.o xsupplicant-pap.o xsupplicant-chap.o xsupplicant-mschap.o xsupplicant-p2mschapv2.o xsupplicant-eapotp.o xsupplicant-eaptnc.o xsupplicant-eappeap.o xsupplicant-peap_phase2.o xsupplicant-eapleap.o xsupplicant-leapmd4.o xsupplicant-eapsim.o xsupplicant-fips.o xsupplicant-sha1.o xsupplicant-sim.o xsupplicant-simd11.o xsupplicant-simd5.o xsupplicant-sm_handler.o xsupplicant-eapaka.o xsupplicant-aka.o xsupplicant-eap_type_common.o xsupplicant-eapfast.o xsupplicant-eapfast_xml.o xsupplicant-eapfast_phase2.o xsupplicant-tnc_compliance_funcs.o xsupplicant-tnc_compliance_callbacks.o  -L../lib/libxsupconfig -lxsupconfig -L../lib/libxsupconfwrite -lxsupconfwrite -L../lib/liblist -llist -L../lib/libsupdetect -lsupdetect -L../lib/libxsupconfcheck -lxsupconfcheck  -framework CoreFoundation -lresolv cardif/libplatform.a -lssl -lcrypto -L/usr/lib -lxml2

ld: library not found for -lcrt1.10.5.o

collect2: ld returned 1 exit status

ld: library not found for -lcrt1.10.5.o

collect2: ld returned 1 exit status

lipo: can't open input file: /var/folders/ge/geeXF9K9Ev0cuLU4foscFU+++TI/-Tmp-//ccK09yqV.out (No such file or directory)

make[2]: *** [xsupplicant] Error 1

make[1]: *** [all-recursive] Error 1

make: *** [all-recursive] Error 1



Any idea why this is happening?  Why is -lcrt1.10.5.o attempting to be linked when I've explicitly passed -isysroot /Developer/SDKs/MacOSX10.4u.sdk?


Is this somehow due to a library I've linked into the main binary?  -lresolv comes to mind... Since the other binaries are building fine, something must be different here... any ideas?


Here are the bits of my Makefile that might be relevant:


DARWINLIBS =  -framework CoreFoundation -lresolv

CFLAGS =  -Wall -fno-strict-aliasing -g -O2 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc

LDFLAGS =  -arch i386 -arch ppc


You also need to pass -mmacosx-version-min=10.4 in order to build a binary that will link against the 10.4u SDK and run on the 10.4 system.

http://lists.apple.com/archives/darwin-dev/2007/Feb/msg00030.html

This wasn't mentioned in the tech note from 2005 because, well, 10.4 was the default in 2005.

Chris
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard (From: Terry Simons <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.