![](https://seccdn.libravatar.org/avatar/7946a5581e1e0b25e548f2b41c69d273.jpg?s=120&d=mm&r=g)
On Fri, 2008-11-21 at 10:07 +0100, Philipp Thomas wrote:
On Tue, 18 Nov 2008 14:46:43 +0100, you wrote:
This will, of course, effect the lib any programs that are built will want at runtime:
No, it won't! The soname, i.e. the internal name of a library is recorded in the binary (the NEEDED entries when running 'objdump -p' on it) that needs it and the dynamic linker will look for this name. That's the reason why ldconfig will create that symlink (full version -> soname) if it doesn't exist.
BTW, 'objdump -p' will show the soname.
Despite appearances, I think we are saying sort of the same thing. I see the issue as Shared_Library_Packaging_Policy not being explicit on this point: the name of the file that you link with is not necessarily the name of the file you will need at runtime. The soname in the library is the name that gets put in the application. I mentioned that the SVR4 lib tools allowed one to set this explicitly. I am not sure how it gets set with the gcc tools. The question is not what one or the other tool allows. It is how they are used. The various Makefiles for libs do it differently. Some make a libX.so and make links to it for the libX.so.MAJ.min files. Some make a libX.so.MAJ and link to get the libX.so and libX.so.MAJ.min. All will have different soname in their libraries. Of course Shared_Library_Packaging_Policy is about packaging and not building. You must supply all the variant names of a file to cover all bases. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- "On two occasions I have been asked (by members of Parliament!), 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. - Charles Babbage 1791-1871) English computer pioneer, philosopher And remember: It is RSofT and there is always something under construction. It is like talking about large city with all constructions finished. Not impossible, but very unlikely. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org