Re: gcov cannot find $UNIX2003 symbols in Xcode 3
Re: gcov cannot find $UNIX2003 symbols in Xcode 3
- Subject: Re: gcov cannot find $UNIX2003 symbols in Xcode 3
- From: Peter O'Gorman <email@hidden>
- Date: Mon, 29 Oct 2007 11:20:28 -0500
Aaron Montgomery wrote:
> Hopefully this isn't sitting in some FAQ somewhere. Just upgraded to
> Xcode 3.0 with a small Carbon project that uses Unit Tests (CPTest) and
> gcov. I am now getting a linker error. Looks like the gcov library is
> failing to find some functions (link line and errors below).
>
> I don't remember if I've tried compiling this since moving to an Intel
> processor, so perhaps the Xcode 3 is a red herring and this is really an
> i386 issue.
>
> Any suggestions?
> Aaron
>
>> Ld
>> /Users/eeyore/Developer/SuperAdd/build/Debug/SuperAdd.app/Contents/MacOS/SuperAdd
>> normal i386
>> cd /Users/eeyore/Developer/SuperAdd
>> /Developer/usr/bin/g++-4.0 -o
>> /Users/eeyore/Developer/SuperAdd/build/Debug/SuperAdd.app/Contents/MacOS/SuperAdd
>> -L/Users/eeyore/Developer/SuperAdd/build/Debug
>> -F/Users/eeyore/Developer/SuperAdd/build/Debug -filelist
>> /Users/eeyore/Developer/SuperAdd/build/SuperAdd.build/Debug/SuperAdd.build/Objects-normal/i386/SuperAdd.LinkFileList
>> -framework Carbon -arch i386 -mmacosx-version-min=10.4 -lgcov
>> -isysroot /Developer/SDKs/MacOSX10.4u.sdk
>> Undefined symbols:
>> "_fcntl$UNIX2003", referenced from:
>> ___gcov_open in libgcov.a(_gcov.o)
>> "_close$UNIX2003", referenced from:
>> ___gcov_open in libgcov.a(_gcov.o)
>> "_open$UNIX2003", referenced from:
>> ___gcov_open in libgcov.a(_gcov.o)
>> ld: symbol(s) not found
>> collect2: ld returned 1 exit status
File a bug. libgcov.a in the 10.4u SDK uses symbols from libc that are
only available on 10.5. If you have a 10.4 machine handy copy the
libgcov.a from there into your 10.4u SDK.
Peter
_______________________________________________
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