NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/45266: krb5-config causes namespace pollution (NetBSD 5, NetBSD 4, and probably HEAD)



The following reply was made to PR lib/45266; it has been noted by GNATS.

From: "Roland C. Dowdeswell" <elric%imrryr.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/45266: krb5-config causes namespace pollution (NetBSD 5,
 NetBSD 4, and probably HEAD)
Date: Wed, 24 Aug 2011 16:49:33 +0100

 On Thu, Aug 18, 2011 at 10:15:01AM +0000, kre%munnari.OZ.AU@localhost wrote:
 >
 
 I agree with the intent of this bug but third party code doesn't
 generally include <krb5/foo.h> because this has been a standard
 mistake in Kerberos distributions for over a decade.  We decided
 to put a number of ancilliary files from Heimdal into /usr/include/krb5
 but by default Heimdal doesn't, it just installs them into the
 include directory directly.
 
 Now, that said, this is unlikely to be a problem because we do have
 /usr/include/krb5.h and we have modified it and all of the other
 includes to include <krb5/foo.h> and so little would end up breaking
 if we made this change.
 
 This raises another issue that has bothered me about krb5-config
 which is:
 
        $ krb5-config --libs
        -L/usr/lib -lkrb5 -lhx509 -lcom_err -lcrypto -lasn1 -lwind -lroken <
        -lcrypt -lpthread
 
 that it asks applications to directly link against all of the
 Kerberos libraries rather than just -lkrb5.  In a dynamic world,
 libkrb5.so will pull in all of the other libs---asking applications
 to directly link against them unnecessarily makes the names of all
 of the support libraries part of the ABI.
 
 --
     Roland Dowdeswell                      http://Imrryr.ORG/~elric/
 


Home | Main Index | Thread Index | Old Index