• 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
Re: gcov cannot find $UNIX2003 symbols in Xcode 3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gcov cannot find $UNIX2003 symbols in Xcode 3


  • Subject: Re: gcov cannot find $UNIX2003 symbols in Xcode 3
  • From: Alastair Houghton <email@hidden>
  • Date: Mon, 29 Oct 2007 16:50:46 +0000

On 29 Oct 2007, at 16:20, Peter O'Gorman wrote:

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.

Well that explains why it was picking up the wrong libgcov.a I suppose. I just took a look myself, and:


  Indirect symbols for (__IMPORT,__jump_table) 17 entries
  address    index name
  0x000047ab    26 _fdopen
  0x000047b0    32 _fwrite$UNIX2003  <-----
  0x000047b5    23 _close$UNIX2003   <-----
  0x000047ba    34 _memcmp
  0x000047bf    25 _fcntl$UNIX2003   <-----
  0x000047c4    28 _fread
  0x000047c9    30 _fstat
  0x000047ce    22 _atexit
  0x000047d3    19 ___error
  0x000047d8    27 _fprintf
  0x000047dd    31 _ftell
  0x000047e2    33 _getpid
  0x000047e7    35 _memset
  0x000047ec    37 _setbuf
  0x000047f1    36 _open$UNIX2003    <-----
  0x000047f6    24 _fclose
  0x000047fb    29 _fseek

Incidentally, copying the libgcov.a from 10.4 might not be the best way to work around this. I don't know (because I haven't looked), but it's *possible* that if you do that, then running gcov from the command line on Leopard might malfunction somehow. However, you should be able to run Tiger's gcov, I suppose, *on Tiger*, if you do this.

An alternative might be to create a file containing the following:

#
# Aliases to fix the gcov problem for programs built against the 10.4u SDK
#
_fwrite _fwrite$UNIX2003
_close _close$UNIX2003
_fcntl _fcntl$UNIX2003
_open _open$UNIX2003


then pass it as the argument of an -alias_list linker argument. I should say that I don't know for certain this will work as I haven't tried it, but if you have problems with gcov after replacing that library, you could put the original library back and give it a whirl.

Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________ 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: gcov cannot find $UNIX2003 symbols in Xcode 3
      • From: Alexander von Below <email@hidden>
References: 
 >gcov cannot find $UNIX2003 symbols in Xcode 3 (From: Aaron Montgomery <email@hidden>)
 >Re: gcov cannot find $UNIX2003 symbols in Xcode 3 (From: Peter O'Gorman <email@hidden>)

  • Prev by Date: Re: Using isysroot
  • Next by Date: Re: Xcode 3.0 change font size in project list pane
  • Previous by thread: Re: gcov cannot find $UNIX2003 symbols in Xcode 3
  • Next by thread: Re: gcov cannot find $UNIX2003 symbols in Xcode 3
  • Index(es):
    • Date
    • Thread