Linking to a custom heimdal version

Stefan (metze) Metzmacher metze at samba.org
Tue Jan 25 15:44:58 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Andrew,

I think I have found what your problem is with linking to a custom heimdal

heimdal's krb5-config returns this:

metze at COMPILIX:~> krb5-config --libs
- -L/usr/lib -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lresolv

or this for a custom version

metze at COMPILIX:~/samba4/samba4-heimdal/bin> ./krb5-config --libs
- -L/home/People/metze/samba4/samba4-heimdal/lib -lkrb5 -lasn1 -lcrypto -lroken -lcrypt -lresolv


and MIT krb5-config returns this

metze at routox:~> krb5-config --libs
- -L/usr/lib -Wl,-rpath -Wl,/usr/lib -lkrb5 -lk5crypto -lcom_err

so heimdal is missing the -Wl,-rpath -Wl,<LIBPATH>

that means samba links fine to the custom libs (-L is for that) but at runtime the loader uses the
system libs (-Wl,-rpath... is for this one)

I'll try to fix this later this week in our heimdal version,
as this have also some other build problems which I need to look at
(with --enable-shared the '.so' is missing in the library names...)


- --
metze

Stefan Metzmacher <metze at samba.org> www.samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3-nr1 (Windows XP)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFB9ml6m70gjA5TCD8RAgqvAJ99ghzO/ws/LUPkxg4BD4w9K5PyzQCfane4
WoKVMtVjo9fYh6gkk3qJdxE=
=M6ve
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list