Re: Building against 10.5 SDK, link error on "open"
Re: Building against 10.5 SDK, link error on "open"
- Subject: Re: Building against 10.5 SDK, link error on "open"
- From: Kevin Grant <email@hidden>
- Date: Tue, 10 Jun 2008 10:33:05 -0500
You do have "-L/Developer/SDKs/MacOSX10.4u.sdk/usr/lib" in there.
Check the list of environment variables (or add a script build phase
that runs "env" first, if you don't see one) and try to fix the most
generic variable that will affect all the others.
Another thing to look at is the precompiled header (.pch). If that
wasn't regenerated, it could contain references to older stuff.
Kevin G.
You may have to examine the list of environment variables
printed at build time, and the GCC command lines, to see the
problem. For example, the -isysroot option may not be set
correctly.
I've attached the command lines at the end of this. It looks okay
to me, but I'm not very familiar with what options should be set.
Another test would be to disable the SDK temporarily and
build against Leopard itself, just to see if the results are
the same.
Nope, same result.
Here's the build strings:
CompileC "build/ebrowser.build/Debug/Elements SBM Debug.build/
Objects-normal/i386/editorBridge.o" /Users/dalej/Documents/ebrowser/
editorBridge.m normal i386 objective-c com.apple.compilers.gcc.4_0
cd /Users/dalej/Documents/ebrowser
/Developer/usr/bin/gcc-4.0 -x objective-c -arch i386 -pipe -Wno-
trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-
variable -fmessage-length=0 -mfix-and-continue -gdwarf-2 "-I/Users/
dalej/Documents/ebrowser/build/ebrowser.build/Debug/Elements SBM
Debug.build/Elements SBM Debug.hmap" -F/Users/dalej/Documents/
ebrowser/build/Debug -F/Users/dalej/Documents/ebrowser -F/Users/
dalej/Documents/ebrowser -F/Users/dalej/Documents/ebrowser -I/Users/
dalej/Documents/ebrowser/build/Debug/include "-I/Users/dalej/
Documents/ebrowser/build/ebrowser.build/Debug/Elements SBM
Debug.build/DerivedSources" -include /Users/dalej/Documents/ebrowser/
ebrowser_debug_Prefix.pch -c /Users/dalej/Documents/ebrowser/
editorBridge.m -o "/Users/dalej/Documents/ebrowser/build/
ebrowser.build/Debug/Elements SBM Debug.build/Objects-normal/i386/
editorBridge.o"
Ld "/Users/dalej/Documents/ebrowser/build/Debug/Elements SBM
Debug.app/Contents/MacOS/Elements SBM Debug" normal i386
cd /Users/dalej/Documents/ebrowser
/Developer/usr/bin/gcc-4.0 -o "/Users/dalej/Documents/ebrowser/
build/Debug/Elements SBM Debug.app/Contents/MacOS/Elements SBM
Debug" -L/Users/dalej/Documents/ebrowser/build/Debug -L/Developer/
SDKs/MacOSX10.4u.sdk/usr/lib -F/Users/dalej/Documents/ebrowser/build/
Debug -F/Users/dalej/Documents/ebrowser -F/Users/dalej/Documents/
ebrowser -F/Users/dalej/Documents/ebrowser -filelist "/Users/dalej/
Documents/ebrowser/build/ebrowser.build/Debug/Elements SBM
Debug.build/Objects-normal/i386/Elements SBM Debug.LinkFileList" -
framework Cocoa -framework WebKit -framework Security -framework
SecurityFoundation -framework SecurityInterface -framework
InstantMessage -framework AddressBook -framework SyncServices -
framework CoreServices -lcrypto -framework DotMacKit -framework
Quartz -framework Carbon -framework CalendarStore -arch i386 -
prebind -lz
Undefined symbols:
"_open$UNIX2003", referenced from:
_CreateEventForPath in editorBridge.o
"_read$UNIX2003", referenced from:
_CreateEventForPath in editorBridge.o
"_close$UNIX2003", referenced from:
_SimplePing in SimplePing.o
_CreateSocketForCommunicationWithHost in SimplePing.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Kevin G.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden