Re: libpam and symbol versioning
Thorsten Kukuk <[email protected]>
| Newsgroups | gmane.linux.lsb.test-suite |
|---|---|
| Organization | SuSE Linux Products GmbH, Nuernberg, Germany |
| Message-ID | <[email protected]> |
On Tue, Aug 23, Wichmann, Mats D wrote: > > >the next release of Linux-PAM will have symbol versioning enabled. > >While this is not a problem at runtime for old binaries, lsblibchk > >does complain that it cannot find the functions without symbol > >versioning. > > > >What can we do here? > > That's going to take some redesign, and I don't really see > how we can figure this out. lsblibchk thinks a symbol is > either versioned, or unversioned, and doesn't know how to > mix them. It wouldn't be too hard to say "found versioned > symbol when expecting unversioned - okay", but that seems to > open the door to not catching real changes. For example, > this would make both foo@VER_1.0 and foo@ver_1.1 acceptable, > which is pretty clearly the wrong thing. > > Open to clever suggestions, of course. So only one I would have: Check the number of different versions for a symbol for runtime libraries if we expect a unversioned symbol, but find only versioned ones. If we expect foo() without version and found foo@VER_1.0 and only this, it is ok. If we find foo@VER_1.0 and foo@VER_1.1, it is no longer ok. Thorsten -- Thorsten Kukuk http://www.suse.de/~kukuk/ [email protected] SUSE LINUX Products GmbH Maxfeldstr. 5 D-90409 Nuernberg -------------------------------------------------------------------- Key fingerprint = A368 676B 5E1B 3E46 CFCE 2D97 F8FD 4E23 56C6 FB4B