• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problem excluding /usr/local/lib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem excluding /usr/local/lib


  • Subject: Problem excluding /usr/local/lib
  • From: David Hoerl <email@hidden>
  • Date: Tue, 26 Feb 2008 15:03:27 -0500

I build and install my own libtiff.a/dylib in /usr/local/lib, which causes a known conflict when including one (or more) of Apple's Frameworks (have a open bug on this, others have reported the same problem on this forum).

Right now, this is biting me as I am trying to build someone else's framework, and I am struggling to get around this.

My goal is to exclude /usr/local/lib from the load line. Since this is hardcoded into gcc's ld, I have to exclude the standard directories with "-Z" and then include the ones I want later.

"Link with Standard Libraries" is unchecked. In "Other Linker Flags", I put this:

-Z -L/usr/lib -F/Library/Frameworks -F/System/Library/Frameworks

Do a clean all first, then rebuild. Some library is not getting picked up, but I cannot see how this could possibly be in /usr/local/lib. There must be another standard search path I'm missing, but I don't know what it is.

David

PS: this the failing ld line, and a few of the messages:

cd /Volumes/Data/Users/dhoerl/Development/ObjC-appscript/objc-appscript/src/Appscript
/Developer/usr/bin/gcc-4.0 -o /Volumes/Data/Users/dhoerl/Development/ObjC-appscript/objc-appscript/src/Appscript/build/Appscript.build/Release/Appscript.build/Objects-normal/ppc/Appscript -L/Volumes/Data/Users/dhoerl/Development/ObjC-appscript/objc-appscript/src/Appscript/build/Release -L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib -F/Volumes/Data/Users/dhoerl/Development/ObjC-appscript/objc-appscript/src/Appscript/build/Release -filelist /Volumes/Data/Users/dhoerl/Development/ObjC-appscript/objc-appscript/src/Appscript/build/Appscript.build/Release/Appscript.build/Objects-normal/ppc/Appscript.LinkFileList -framework Carbon -framework CoreFoundation -framework Foundation -arch ppc -Wl,-single_module -compatibility_version 1 -current_version 1 -install_name /Volumes/Data/Users/dhoerl/Library/Frameworks/Appscript.framework/Versions/A/Appscript -dynamiclib -nostdlib -mmacosx-version-min=10.4 -Z -L/usr/lib -F/Library/Frameworks -F/System/Library/Frameworks -isysroot /Developer/SDKs/MacOSX10.4u.sdk



Undefined symbols: "_mach_port_allocate", referenced from: _AEMSendMessageThreadSafe in sendthreadsafe.o "_pthread_key_create", referenced from: _InitRoutine in sendthreadsafe.o "_pthread_mutex_unlock", referenced from: _______________________________________________ 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
  • Follow-Ups:
    • Re: Problem excluding /usr/local/lib
      • From: Rick Altherr <email@hidden>
  • Prev by Date: Re: determine CPU type at runtime
  • Next by Date: Re: determine CPU type at runtime
  • Previous by thread: Re: PackageMaker 3.0.1 question
  • Next by thread: Re: Problem excluding /usr/local/lib
  • Index(es):
    • Date
    • Thread