[krbdev.mit.edu #3176]

Marc Aurele La France via RT rt-comment at krbdev.mit.edu
Fri Sep 16 12:20:22 EDT 2005


On Tue, 13 Sep 2005, Marc Aurele La France wrote:
> On Tue, 13 Sep 2005, Sam Hartman via RT wrote:
>>>>>>> "Marc" == Marc Aurele La France <tsi at ualberta.ca> writes:
>>    Marc> On Tue, 13 Sep 2005, Sam Hartman via RT wrote:
>>    >> Note that the patch to shlib.conf breaks our ABI on AIX.

>>    Marc> How so?  How can wrapping, or not, a shared object into an
>>    Marc> archive affect a programming interface?  And why is this
>>    Marc> wrapping preferable to producing dlopen'able objects?

>> Because it changes the name that appears in the liblist section of the
>> xcoff object.

> ... of the _referencing_ xcoff objects, yes.  That's a good point WRT 
> compatibility with previous releases of mit-krb5 and/or AIX.  But, at least 
> on AIX 5.3, the run-time loader doesn't seem to care whether a referenced .a 
> contains shared or static objects.  So old binaries should be OK.

This assertion of mine turns out to be completely out-to-lunch.

Anyway, after spending more time on this, I'd like to propose the following.

--enable-shared builds a dlopen'able lib.so as I have it;  --disable-shared 
doesn't build a lib.so at all.  --enable-static builds a lib.a as an archive 
of static objects;  --disable-static builds a lib.a as a wrapped shared 
object as you have it.  This for all AIXen.

One issue I already have with this is that more intrusive changes than I 
would like are needed for the --enable-shared --disable-static case.  Also, 
this might limit, or least affect, your options in dealing with the 
--enable-static issue in src/lib/kdb/kdb5.c.

But, on the whole, this strikes me as a viable compromise.

Marc.

+----------------------------------+-----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310           |
|  Academic Information and        |  fax:    1-780-492-1729           |
|    Communications Technologies   |  email:  tsi at ualberta.ca          |
|  352 General Services Building   +-----------------------------------+
|  University of Alberta           |                                   |
|  Edmonton, Alberta               |     Standard disclaimers apply    |
|  T6G 2H1                         |                                   |
|  CANADA                          |                                   |
+----------------------------------+-----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.



More information about the krb5-bugs mailing list