Re: ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard
Re: ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard
- Subject: Re: ld: library not found for -lcrt1.10.5.o when trying to build against MacOSX10.4u.sdk in Leopard
- From: "E. Wing" <email@hidden>
- Date: Tue, 30 Oct 2007 23:48:47 -0700
Just a shot in the dark, but I've seen something like this before...
I noticed there is a -L/usr/lib -lxml2 at the end of that build
command. I believe -L/usr/lib will allow a reference to the installed
library in /usr/lib which is presumably all 10.5 stuff.
Instead, the -L should go to
-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib. (Try using
$(SDKROOT)/usr/lib)
-Eric
On 10/30/07, Terry Simons <email@hidden> wrote:
> Hi,
>
> 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
>
> - Terry
> _______________________________________________
> 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
>
_______________________________________________
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