Jeff Abrahamson on 7 Mar 2006 19:13:07 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] glibc problem?


On Tue, Mar 07, 2006 at 03:32:14PM +0000, Stephen Gran wrote:
> glibc uses something called 'versioned symbols' - basically this
> means that when you want to use a c library function in one of your
> applications, the compiler and linker find it in the c library and
> link to it, and also link in the version of the function used.  So
> you'll be linking to printf@glibc.2.3.2 instead of just linking to
> printf.  Very nice, and I wish more libraries did it.

Very neat.

I see a bunch of discussion about versioned symbols, mostly on Debian
lists.  But I don't see discussion on how to implement it in
libraries.  Can you offer a pointer (e.g., a URL) on how to convert
libraries to use versioned symbols for those of us who sometimes write
libraries?  It looks like very little actually does it this way
currently, but it would be nice to learn how.

-- 
 Jeff

 Jeff Abrahamson  <http://www.purple.com/jeff/>    +1 215/837-2287
 GPG fingerprint: 1A1A BA95 D082 A558 A276  63C6 16BF 8C4C 0D1D AE4B

Attachment: signature.asc
Description: Digital signature

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug