Nekochan Net

Official Chat Channel: #nekochan // irc.nekochan.net
It is currently Thu Aug 21, 2014 2:10 am

All times are UTC - 8 hours


Forum rules


Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: library versions
Unread postPosted: Sun May 23, 2004 5:40 am 
Offline
User avatar

Joined: Tue Apr 29, 2003 1:02 pm
Posts: 967
Location: Rijswijk, The Netherlands. Reigate, England.
Can somebody explain to me a few things about library versioning? I know libraries have version numbers/string somewhere, but what are they, how are they determined, and how do you use them?

For example, I was poking at audiofile and esound. While compiling audiofile I see this:
Code:
/usr/bin/ld -n32 -IPA -shared openclose.o setup.o (.... lots of object files and libs ....) -lm -lc -soname libaudiofile.so.1 `test -n "sgi1.1:sgi1.0:sgi.2" && echo -set_version sgi1.1:sgi1.0:sgi.2` -update registry .libs/so_locations -o .libs/libaudiofile.so.1.2
As you can see there is a part that deals with the soname and some weird version string. (sgi1.1:sgi1.0:sgi.2)

What is it that it does there?
What does this version string mean?
How is this string determined?
How important is it?

But then when I configure esound I get:
Code:
checkoung for Audio File Library - version >= 0.1.5... 19971:./conftest: rld: Warning: Version Search Suppressed in ./conftest Because version (sgi.2) of object libaudiofile.so.1 in liblist is not an sgi interface version.

Now it only shows the last part of the version string (sgi.2) and it sais it's not an sgi interface version (a what??).

I clearly need some more info here before I'll be able to debug such weird errors.

Actualy I get this error both with my own build os audiofile and with the nekoware one.

_________________
Shall I describe it to you? Or do you want me to get you a box?


Top
 Profile  
 
 Post subject: Re: library versions
Unread postPosted: Mon May 24, 2004 4:16 am 
Offline
Moderator
Moderator
User avatar

Joined: Thu Feb 20, 2003 6:57 am
Posts: 2062
Location: Voorburg, The Netherlands
whiter wrote:
What is it that it does there?

Apparently it sets the version string in the DSO to a specific value.
whiter wrote:
What does this version string mean?

The linker will check for this IVERSION string partly to determine which SO needs this library, next to SONAME. It differs from linux, because that will determine files solely by the name, whereas SGI has some nifty string for that. Go figure :)
whiter wrote:
How is this string determined?

Hopefully, the author has a specific number in mind with which it will set the version string accordingly. :)
whiter wrote:
How important is it?

quite, because if you screw up this one, the version dependancies could change. IVERSION botchups i haven't seen yet in Nekoware beta to be honest, but we had similar problems with f.i. the SONAME string and zlib version in nekoware and the openssl library. Neko fixed openssl and i fixed zlib and bzip2, but there could be more lurking in the grass.

You can interrogate this version string with 'elfdump -L yourlib.so' and look for IVERSION

whiter wrote:
But then when I configure esound I get:
Code:
checkoung for Audio File Library - version >= 0.1.5... 19971:./conftest: rld: Warning: Version Search Suppressed in ./conftest Because version (sgi.2) of object libaudiofile.so.1 in liblist is not an sgi interface version.

Now it only shows the last part of the version string (sgi.2) and it sais it's not an sgi interface version (a what??).

Are you trying to recompile the stuff from nekoware? I am the one responsible for libaudiofile and esound, so PM me or phone me and i can have a look at it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group