Building Kerberos on AIX

Mohit Aggrawal mohit500 at gmail.com
Tue May 7 10:01:14 EDT 2013


Hello Greg,

The correct symbol is krb5int_setpw_result_code_string . I am able to  get
pass the symbol error.
Now i am facing  issue in building the db2 library i.e.
krb5-1.9.5/src/plugins/kdb/db2 .
The linker is trying to locate the "db"  library but it is not present in
the path -L../../../lib.
Do i need separately build the library ???or i am missing something ?
I am building it on AIX platform

bash-2.05b$
bash-2.05b$ uname -a
AIX xblade-a 2 5 0001AFD9D000
bash-2.05b$


the out put  is given as

building dynamic db2 object
        set -x; objlist=`set -x && perl -p -e 'BEGIN { $SIG{__WARN__} = sub
{die @_} }; $e=$ARGV; $e =~ s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g;'
OBJS.SH libdb2/hash/OBJS.SH libdb2/btree/OBJS.SH libdb2/db/OBJS.SH
libdb2/mpool/OBJS.SH libdb2/recno/OBJS.SH` && wl=; i=1; initfini=; for f in
. ; do if test $f != .; then initfini="$initfini ${wl}-binitfini::$f:$i";
else :; fi; i=`expr $i + 1`; done && /bin/ld -o db2.so $objlist -H512 -T512
-bnoentry -bgcbypass:1 -bnodelcsect -bfilelist -bM:SRE -bE:./db2.exports
-bernotok -brtl -L../../../lib -lgssrpc -lgssapi_krb5 -lkrb5 -lcom_err
-lk5crypto  -lkadm5srv_mit  -lkdb5  -lgssrpc -lgssapi_krb5 -lgssrpc
-lgssapi_krb5 -lkrb5support -lpthreads -ldb  -lc $initfini
+ + set -x
+ perl -p -e BEGIN { $SIG{__WARN__} = sub {die @_} }; $e=$ARGV; $e =~
s/OBJS\...$//; s/^/ /; s/ $//; s/ / $e/g; OBJS.SH libdb2/hash/OBJS.SH
libdb2/btree/OBJS.SH libdb2/db/OBJS.SH libdb2/mpool/OBJS.SH
libdb2/recno/OBJS.SH
objlist= kdb_xdr.o adb_openclose.o adb_policy.o kdb_db2.o pol_xdr.o
db2_exp.o lockout.o
 libdb2/hash/hash.o libdb2/hash/hash_bigkey.o libdb2/hash/hash_debug.o
libdb2/hash/hash_func.o libdb2/hash/hash_log2.o libdb2/hash/hash_page.o
libdb2/hash/hsearch.o libdb2/hash/dbm.o
 libdb2/btree/bt_close.o libdb2/btree/bt_conv.o libdb2/btree/bt_debug.o
libdb2/btree/bt_delete.o libdb2/btree/bt_get.o libdb2/btree/bt_open.o
libdb2/btree/bt_overflow.o libdb2/btree/bt_page.o libdb2/btree/bt_put.o
libdb2/btree/bt_search.o libdb2/btree/bt_seq.o libdb2/btree/bt_split.o
libdb2/btree/bt_utils.o
 libdb2/db/db.o
 libdb2/mpool/mpool.o
 libdb2/recno/rec_close.o libdb2/recno/rec_delete.o libdb2/recno/rec_get.o
libdb2/recno/rec_open.o libdb2/recno/rec_put.o libdb2/recno/rec_search.o
libdb2/recno/rec_seq.o libdb2/recno/rec_utils.o
+ wl=
+ i=1
+ initfini=
+ test . != .
+ :
+ + expr 1 + 1
i=2
+ /bin/ld -o db2.so kdb_xdr.o adb_openclose.o adb_policy.o kdb_db2.o
pol_xdr.o db2_exp.o lockout.o libdb2/hash/hash.o libdb2/hash/hash_bigkey.o
libdb2/hash/hash_debug.o libdb2/hash/hash_func.o libdb2/hash/hash_log2.o
libdb2/hash/hash_page.o libdb2/hash/hsearch.o libdb2/hash/dbm.o
libdb2/btree/bt_close.o libdb2/btree/bt_conv.o libdb2/btree/bt_debug.o
libdb2/btree/bt_delete.o libdb2/btree/bt_get.o libdb2/btree/bt_open.o
libdb2/btree/bt_overflow.o libdb2/btree/bt_page.o libdb2/btree/bt_put.o
libdb2/btree/bt_search.o libdb2/btree/bt_seq.o libdb2/btree/bt_split.o
libdb2/btree/bt_utils.o libdb2/db/db.o libdb2/mpool/mpool.o
libdb2/recno/rec_close.o libdb2/recno/rec_delete.o libdb2/recno/rec_get.o
libdb2/recno/rec_open.o libdb2/recno/rec_put.o libdb2/recno/rec_search.o
libdb2/recno/rec_seq.o libdb2/recno/rec_utils.o -H512 -T512 -bnoentry
-bgcbypass:1 -bnodelcsect -bfilelist -bM:SRE -bE:./db2.exports -bernotok
-brtl -L../../../lib -lgssrpc -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto
-lkadm5srv_mit -lkdb5 -lgssrpc -lgssapi_krb5 -lgssrpc -lgssapi_krb5
-lkrb5support -lpthreads -ldb -lc
ld: 0706-026 The -b filelist option is ignored.
ld: 0706-006 Cannot find or open library file: -l db
        ld:open(): A file or directory in the path name does not exist.
make: 1254-004 The error code from the last command is 255.

Please share your opinion.

-Regards
 Mohit






On Mon, May 6, 2013 at 9:55 PM, Greg Hudson <ghudson at mit.edu> wrote:

> On 05/06/2013 07:42 AM, Mohit Aggrawal wrote:
> > In the file changepw.c there is a function
> > krb5int_setpw_result_codestring at line 344 ,which the linker is not
> > able to resolve.
>
> In my copy of the krb5 1.9.5 sources, there is a call to
> krb5int_setpw_result_code_string at line 340 (not 344) of
> src/lib/krb5/os/changepw.c.  This symbol is provided by
> src/lib/krb5/krb/chpw.c at line 507.
>
> The symbol you mention is slightly different (no underscore between
> "code" and "string").  Have your sources been modified?
>
>


More information about the krbdev mailing list