Bug 1166012
| Summary: | libkadmclnt SONAME change (8 to 9) in krb5 1.12 update | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Dominic Cleal <dcleal> |
| Component: | krb5 | Assignee: | Roland Mainz <rmainz> |
| Status: | CLOSED ERRATA | QA Contact: | Patrik Kis <pkis> |
| Severity: | urgent | Docs Contact: | |
| Priority: | high | ||
| Version: | 7.1 | CC: | dpal, jpazdziora, katello-bugs, katello-qa-list, lmiksik, nalin, omaciel, pkis, rharwood, rmainz, sbose, ssorce |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | krb5-1.12.2-9.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1165748 | Environment: | |
| Last Closed: | 2015-03-05 10:01:28 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1165748 | ||
|
Comment 17
Roland Mainz
2014-12-02 18:51:21 UTC
There is another option, ship both version 8 and 9 of the library, but it will require some work on the build side. If it is too much I suggest we roll back the SONAME change with a downstream patch. I think there really is no chance other than providing a version 8 library because the version information is added: objdump -T /usr/lib64/gems/ruby/rkerberos-0.1.3/lib/rkerberos.so|grep kadm 0000000000000000 DF *UND* 0000000000000000 kadm5clnt_mit_8_MIT kadm5_get_principals 0000000000000000 DF *UND* 0000000000000000 kadm5clnt_mit_8_MIT kadm5_init_with_skey 0000000000000000 DF *UND* 0000000000000000 kadm5clnt_mit_8_MIT kadm5_modify_policy ... To fix this you might want to try to cp -a src/lib/kadm5/clnt src/lib/kadm5/clnt8 sed -i -e 's/LIBMAJOR=9/LIBMAJOR=8/' src/lib/kadm5/clnt8/Makefile.in sed -i -e 's/SUBDIRS = clnt srv unit-test/SUBDIRS = clnt8 clnt srv unit-test/' lib/kadm5/Makefile.in (I have not tested it, but I hope the idea is obvious) before calling configure in the spec file. HTH bye, Sumit (In reply to Sumit Bose from comment #19) > I think there really is no chance other than providing a version 8 library > because the version information is added: > > objdump -T /usr/lib64/gems/ruby/rkerberos-0.1.3/lib/rkerberos.so|grep kadm > 0000000000000000 DF *UND* 0000000000000000 kadm5clnt_mit_8_MIT > kadm5_get_principals > 0000000000000000 DF *UND* 0000000000000000 kadm5clnt_mit_8_MIT > kadm5_init_with_skey > 0000000000000000 DF *UND* 0000000000000000 kadm5clnt_mit_8_MIT > kadm5_modify_policy > ... Yes... I figured that out earlier today... ... I'm currently testing the following change: -- snip -- --- a/src/lib/kadm5/clnt/Makefile.in +++ b/src/lib/kadm5/clnt/Makefile.in @@ -4,7 +4,7 @@ LOCALINCLUDES = -I$(BUILDTOP)/include/kadm5 DEFS= LIBBASE=kadm5clnt_mit -LIBMAJOR=9 +LIBMAJOR=8 LIBMINOR=0 STOBJLISTS=../OBJS.ST OBJS.ST SHLIB_EXPDEPS=\ -- snip -- (and curse the situation). > To fix this you might want to try to> > cp -a src/lib/kadm5/clnt src/lib/kadm5/clnt8 > sed -i -e 's/LIBMAJOR=9/LIBMAJOR=8/' src/lib/kadm5/clnt8/Makefile.in > sed -i -e 's/SUBDIRS = clnt srv unit-test/SUBDIRS = clnt8 clnt srv > unit-test/' lib/kadm5/Makefile.in > (I have not tested it, but I hope the idea is obvious) > > before calling configure in the spec file. Thanks... but for now I just roll back the library version change... I'm already 80% done with testing... BTW: A 3rd option would be symbol filters/redirection, e.g. see http://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libcmd/mapfile-vers#104 ... in our case we would have a library libkadm5clnt_mit.so.8 which redirects all symbol accesses to libkadm5clnt_mit.so.9 (this would prevent any code/symbol duplication) ... but I am not sure whether the GNU linker supports this feature. I see that the new version of krb5-libs provides libkadm5clnt_mit.so.8 (!version 8) and libkadm5srv_mit.so.9 (!version 9). # rpm -qp --provides krb5-libs-1.12.2-13.el7.x86_64.rpm |grep libkadm5 libkadm5clnt_mit.so.8()(64bit) libkadm5clnt_mit.so.8(HIDDEN)(64bit) libkadm5clnt_mit.so.8(kadm5clnt_mit_8_MIT)(64bit) libkadm5srv_mit.so.9()(64bit) libkadm5srv_mit.so.9(HIDDEN)(64bit) libkadm5srv_mit.so.9(kadm5srv_mit_9_MIT)(64bit) Is this intentional, e.g. not decreasing the version for srv too? I know that this is basically only playing with numbers, nothing really changed, but I'd like to double check that this is really what we want. (In reply to Patrik Kis from comment #22) [snip] > Is this intentional, e.g. not decreasing the version for srv too? Per krb5 upstream the srv libraries were not touched by the specific commit which caused our trouble... Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0439.html |