[OpenAFS] Compiling 1.5.33 on AIX 5.3
Frank Bagehorn
FBA@zurich.ibm.com
Thu, 13 Mar 2008 17:54:22 +0100
Hi all,
I'm trying to compile 1.5.33 on AIX 5.3 with the built-in krb5.
I used the following settings for configure:
CC=xlc
KRB5CFLAGS="-I/usr/include"
KRB5LIBS="-L/usr/krb5/lib -lkrb5"
./configure --with-afs-sysname=rs_aix53 --enable-transarc-paths
--with-krb5
While compiling aklog I get errors about unresolved symbols:
cc -o klog -I/usr/include -DALLOW_REGISTER
-I/u/fba1/Public/openafs-1.5.33/src/config -I. -I.
-I/u/fba1/Public/openafs-1.5.33/include
-I/u/fba1/Public/openafs-1.5.33/include/afs
-I/u/fba1/Public/openafs-1.5.33/include/rx -I/u/fba1/Public/openafs-1.5.33
-I/u/fba1/Public/openafs-1.5.33/src -I/u/fba1/Public/openafs-1.5.33/src -K
-D_NONSTD_TYPES -D_MBI=void skipwrap.o klog.o -L/usr/krb5/lib -lkrb5
/u/fba1/Public/openafs-1.5.33/lib/libprot.a
/u/fba1/Public/openafs-1.5.33/lib/libubik.a
/u/fba1/Public/openafs-1.5.33/lib/libauth.a
/u/fba1/Public/openafs-1.5.33/lib/librxkad.a
/u/fba1/Public/openafs-1.5.33/lib/librx.a
/u/fba1/Public/openafs-1.5.33/lib/liblwp.a
/u/fba1/Public/openafs-1.5.33/lib/libsys.a
/u/fba1/Public/openafs-1.5.33/lib/libdes.a
/u/fba1/Public/openafs-1.5.33/lib/libcom_err.a
/u/fba1/Public/openafs-1.5.33/lib/libafsutil.a
/u/fba1/Public/openafs-1.5.33/lib/libcmd.a
/u/fba1/Public/openafs-1.5.33/lib/librx.a -ldl
ld: 0711-317 ERROR: Undefined symbol: .krb5_get_prompt_types
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.
Adding -bonquiet as a linker option I get
+ cd aklog
+ make all
cc -bnoquiet -o aklog -I/usr/include -DALLOW_REGISTER
-I/u/fba1/Public/openafs-1.5.33/src/config -I. -I.
-I/u/fba1/Public/openafs-1.5.33/include
-I/u/fba1/Public/openafs-1.5.33/include/afs
-I/u/fba1/Public/openafs-1.5.33/include/rx -I/u/fba1/Public/openafs-1.5.33
-I/u/fba1/Public/openafs-1.5.33/src -I/u/fba1/Public/openafs-1.5.33/src -K
-D_NONSTD_TYPES -D_MBI=void aklog.o aklog_main.o krb_util.o linked_list.o
-L/usr/krb5/lib -lkrb5 /u/fba1/Public/openafs-1.5.33/lib/libprot.a
/u/fba1/Public/openafs-1.5.33/lib/libubik.a
/u/fba1/Public/openafs-1.5.33/lib/libauth.a
/u/fba1/Public/openafs-1.5.33/lib/librxkad.a
/u/fba1/Public/openafs-1.5.33/lib/librx.a
/u/fba1/Public/openafs-1.5.33/lib/liblwp.a
/u/fba1/Public/openafs-1.5.33/lib/libsys.a
/u/fba1/Public/openafs-1.5.33/lib/libdes.a
/u/fba1/Public/openafs-1.5.33/lib/libcom_err.a
/u/fba1/Public/openafs-1.5.33/lib/libafsutil.a -ldl
(ld): halt 4
(ld): setfflag 4
(ld): savename aklog
(ld): filelist 20 1
(ld): i /lib/crt0.o
(ld): i aklog.o
(ld): i aklog_main.o
(ld): i krb_util.o
(ld): i linked_list.o
(ld): lib /usr/krb5/lib/libkrb5.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libprot.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libubik.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libauth.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/librxkad.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/librx.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/liblwp.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libsys.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libdes.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libcom_err.a
(ld): i /u/fba1/Public/openafs-1.5.33/lib/libafsutil.a
(ld): lib /usr/lib/libdl.a
(ld): lib /usr/vac/lib/libxlopt.a
(ld): lib /usr/vac/lib/libxl.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libkrb5.a[libkrb5.a.so]: 320 symbols imported.
LIBRARY: Symbols imported from import file
/u/fba1/Public/openafs-1.5.33/lib/libsys.a[afsl.exp]: 8
LIBRARY: Shared object libdl.a[shr.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2870 symbols imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols imported.
LIBRARY: Shared object libc.a[aio.o]: 18 symbols imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols imported.
FILELIST: Number of previously inserted files processed: 20
(ld): resolve
RESOLVE: 1053 of 10765 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 95 symbols.
(ld): er full
ER: There are no unresolved symbols.
(ld): mismatch
MISMATCH: No type mismatches exist.
(ld): comprld
COMPRLD: Kept 4690 of 4690 relocation entries.
(ld): origin page 0x10000000 0x20000000
(ld): pad 4096 4096 4096
PAD: The object file pad values are .text: 4096 .data: 4096 .loader:
4096
(ld): libpath /usr/krb5/lib:/usr/vac/lib:/usr/lib:/lib
LIBPATH: Library path set to /usr/krb5/lib:/usr/vac/lib:/usr/lib:/lib
(ld): save 1L .
SAVE: Section sizes = 318260+89476+69284 (0x4DB34+0x15D84+0x10EA4 hex)
SAVE: Size of TOC: 1476 (0x5C4 hex)
(ld): rc
RC: Highest return code was 0.
cc -o klog -I/usr/include -DALLOW_REGISTER
-I/u/fba1/Public/openafs-1.5.33/src/config -I. -I.
-I/u/fba1/Public/openafs-1.5.33/include
-I/u/fba1/Public/openafs-1.5.33/include/afs
-I/u/fba1/Public/openafs-1.5.33/include/rx -I/u/fba1/Public/openafs-1.5.33
-I/u/fba1/Public/openafs-1.5.33/src -I/u/fba1/Public/openafs-1.5.33/src -K
-D_NONSTD_TYPES -D_MBI=void skipwrap.o klog.o -L/usr/krb5/lib -lkrb5
/u/fba1/Public/openafs-1.5.33/lib/libprot.a
/u/fba1/Public/openafs-1.5.33/lib/libubik.a
/u/fba1/Public/openafs-1.5.33/lib/libauth.a
/u/fba1/Public/openafs-1.5.33/lib/librxkad.a
/u/fba1/Public/openafs-1.5.33/lib/librx.a
/u/fba1/Public/openafs-1.5.33/lib/liblwp.a
/u/fba1/Public/openafs-1.5.33/lib/libsys.a
/u/fba1/Public/openafs-1.5.33/lib/libdes.a
/u/fba1/Public/openafs-1.5.33/lib/libcom_err.a
/u/fba1/Public/openafs-1.5.33/lib/libafsutil.a
/u/fba1/Public/openafs-1.5.33/lib/libcmd.a
/u/fba1/Public/openafs-1.5.33/lib/librx.a -ldl
ld: 0711-317 ERROR: Undefined symbol: .krb5_get_prompt_types
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: 1254-004 The error code from the last command is 8.
It shows that libkrb5.a is loaded. This lib should contain the missing
symbol:
# dump -c /usr/krb5/libkrb5.a | grep krb5_get_prompt_types
28411 .krb5_get_prompt_types
Any ideas ?
Thanks
Frank
----------------------------------------------------------------------------
Dr. Frank Bagehorn
Manager Infrastructure Services ZRL IS
Sr. IT Architect / ITIL Foundation certified
IBM Zurich Research Lab.
Saeumerstr. 4
CH-8803 Rueschlikon
Switzerland
----------------------------------------------------------------------------
SMTP: fba@zurich.ibm.com
Notes: Frank Bagehorn/Zurich/IBM@IBMCH
phone: ++41 (044) 724 83 23 fax: ++41 (044) 724 89 59