KRB5 1.5 or 1.6 compiled on AIX 5.2/5.3

Matthew Andrews matt at slackers.net
Sat Aug 11 13:39:35 EDT 2007


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

Hi,

	I too am trying to build MIT kerberos 1.6.2 for AIX 5.3.(yes I know.
I'm sorry too.) I've gotten it to build by building as described below,
but a bit of looking into this led me to discover the real reason the
link step is failing without -brtl.

it seems that the AIX linker search mechanism only treats files with the
.so extension as libraries if -brtl (run time linking) is used.

I believe that libtool deals with this by generating both a .a version
of the library(using ar) and a .so version of the library(using xlc with
the -brtl switch).

I'm not sure exactly what the right answer would be, but simply creating
links to the libraries with the .a extension should allow the compile to
complete.

That said, I have another problem.

after compiling with the -brtl flag, the "kdb5_util load <file>" command
  fails with the following error:

queen% /usr/local/sbin/kdb5_util load /home/ma3d/secret/k5db.dump
load: Unable to load requested database module 'db2': plugin symbol
'kdb_function_table' not found

I think my next step will be to re-build without optimization, and try
and see what's going on in the debugger, but I also figured that I'd see
if anyone else had any helpful suggestions.

- -Matt Andrews





Lamar.Saxon at americredit.com wrote:
> Phil,
> 	Tested on AIX 5.3 TL05 SP4 with XLC++/XLC 8.0 and worked great !
> 
> 	I will be testing on AIX 5.2 TL09 SP3 and AIX 4.3 ML11 here
> shortly...
> 
> 	Thanks for getting this figured out !  Also, appreciate the help
> from Sam and Martin who were working on it too...
> 
> Lamar
> 
> -----Original Message-----
> From: Phil Pishioneri [mailto:pgp at psu.edu]
> Sent: Wednesday, February 07, 2007 6:35 PM
> To: Saxon, Lamar
> Cc: kerberos at mit.edu
> Subject: Re: KRB5 1.5 or 1.6 compiled on AIX 5.2/5.3
> 
> I've gotten 1.5.x and 1.6 to build and run on AIX 5.2 (domain referral
> in 1.6 works nicely). So far I have only tested the client commands:
> klist, kvno, kinit, kdestroy.  No 3rd party software tested yet, either.
> 
> This was done with the IBM VisualAge C++ Professional / C for AIX
> Compiler, Version 6.
> 
> The one major change: add LDFLAGS="-brtl" to configure.  My configure
> line was (prefix edited):
> 
>     ./configure --without-krb4 --prefix=...  CC=cc LDFLAGS=-brtl
> 
> There was one problem during the 1.{5,6} builds (1.5 has a bug that's
> been documented already), it failed in
> 
>     making all in plugins/kdb/db2/libdb2/test...
> 
> with
> 
>     ld: 0706-006 Cannot find or open library file: -l db
>             ld:open(): A file or directory in the path name does not
> exist.
> 
> my quick&dirty fix for that was (starting in .../krb5-1.6/src/):
> 
>     cd lib
>     ln -s ../plugins/kdb/db2/libdb2/libdb.so.1.1 libdb.so.1.1
>     ln -s libdb.so.1.1 libdb.so
> 
> -Phil
> 
> 
> 
> Privileged and Confidential.  This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information.  If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail.  You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.
> 
> ________________________________________________
> Kerberos mailing list           Kerberos at mit.edu
> https://mailman.mit.edu/mailman/listinfo/kerberos
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGvfRXpLF3UzlwZVgRAifKAJ9pXcTX5cHR4QRL5K+3ZOutXl+6HQCfRVJX
QafFrEiweUxrGQ0r47mVc2E=
=Fnz9
-----END PGP SIGNATURE-----



More information about the Kerberos mailing list