[OpenAFS] gssklog on osx

Chris McClimans openafs-info@mcclimans.net
Thu, 29 Apr 2004 14:58:18 -0500


osx 10.3, gssklog 0.10, OpenAFS 1.2.11 and the suggested configure  
line. I removed a few lines regarding invalid ld commands and copied a  
malloc.h into the path in order to get it past obvious errors. The  
current errors are beyond my expertise.Multiple definitions of symbols  
seems to be the root cause that I can reach. I've been googling for  
answers, but maybe someone here on the list has an idea.
-chris

cp064:/tmp/gssklog-0.10 chris$ uname -a
Darwin cp064.dhcp.ttu.edu 7.3.0 Darwin Kernel Version 7.3.0: Fri Mar  5  
14:22:55 PST 2004; root:xnu/xnu-517.3.15.obj~4/RELEASE_PPC  Power  
Macintosh powerpc

cp064:/tmp/gssklog-0.10 chris$ ./configure  
--with-afs=/Library/OpenAFS/Tools  --with-gss-lib-dir=/usr/lib  
--with-gss-lib-name=gssapi_krb5
#... CMM: omitting some configure lines....
checking for malloc.h... no
#... CMM: the above line might prove useful...
configure: creating ./config.status
config.status: creating Makefile

cp064:/tmp/gssklog-0.10 chris$ make
gcc -g -O2 -DHAVE_LIBRESOLV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1  
-DHAVE_SYSLOG_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_SYS_TYPES_H=1  
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1  
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1  
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1  
-DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1  
-DHAVE_GETHOSTNAME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1  
-DHAVE_STRTOL=1 -DHAVE_SETSID=1   -DNO_GSSAPI_CONFIG_H -I. -I.  
-I/Library/OpenAFS/Tools/include  -I. -I./gssapi -I./GSS   -c  
./gssklog.c
gssklog.c: In function `CommandProc':
gssklog.c:842: warning: passing arg 10 of `doit' from incompatible  
pointer type
gssklog.c:866: warning: passing arg 10 of `doit' from incompatible  
pointer type
gcc --same-parms-as-above -c ./gssklog_afs.c
gcc --same-parms-as-above   -c ./gssklog_gss.c
gcc -g -O2 -DHAVE_LIBRESOLV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1  
-DHAVE_SYSLOG_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_SYS_TYPES_H=1  
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1  
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1  
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1  
-DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1  
-DHAVE_GETHOSTNAME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1  
-DHAVE_STRTOL=1 -DHAVE_SETSID=1   -DNO_GSSAPI_CONFIG_H -I. -I.  
-I/Library/OpenAFS/Tools/include  -I. -I./gssapi -I./GSS  -o  
gssklog_comm.o -c ./gssklog_comm.c
gssklog_comm.c:37:20: malloc.h: No such file or directory
make: *** [gssklog_comm.o] Error 1

cp064:/tmp/gssklog-0.10 chris$ locate malloc.h
/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/sys/ 
malloc.h
/usr/include/malloc/malloc.h
/usr/include/objc/malloc.h
/usr/include/sys/malloc.h
cp064:/tmp/gssklog-0.10 chris$ cp /usr/include/sys/malloc.h .
cp064:/tmp/gssklog-0.10 chris$ make
gcc -g -O2 -DHAVE_LIBRESOLV=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1  
-DHAVE_SYSLOG_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_SYS_TYPES_H=1  
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1  
-DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1  
-DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DTIME_WITH_SYS_TIME=1  
-DRETSIGTYPE=void -DHAVE_STRFTIME=1 -DHAVE_VPRINTF=1  
-DHAVE_GETHOSTNAME=1 -DHAVE_SELECT=1 -DHAVE_SOCKET=1 -DHAVE_STRDUP=1  
-DHAVE_STRTOL=1 -DHAVE_SETSID=1   -DNO_GSSAPI_CONFIG_H -I. -I.  
-I/Library/OpenAFS/Tools/include  -I. -I./gssapi -I./GSS  -o  
gssklog_comm.o -c ./gssklog_comm.c
gcc  -o gssklog gssklog.o gssklog_afs.o \
gssklog_gss.o gssklog_comm.o \
-Wl,--noinhibit-exec,-rpath,/usr/lib:/usr/lib:/lib   
-L/Library/OpenAFS/Tools/lib -L/Library/OpenAFS/Tools/lib/afs -lprot  
-lubik -lauth -lcmd -lsys -lrxkad -lrx -llwp  
/Library/OpenAFS/Tools/lib/libdes.a  
/Library/OpenAFS/Tools/lib/afs/util.a  
/Library/OpenAFS/Tools/lib/afs/libcom_err.a \
  \
-L/usr/lib -lgssapi_krb5 -lresolv
ld: unknown flag: --noinhibit-exec
make: *** [gssklog] Error 1

cp064:/tmp/gssklog-0.10 chris$ gcc  -o gssklog gssklog.o gssklog_afs.o  
gssklog_gss.o gssklog_comm.o -Wl,-rpath,/usr/lib:/usr/lib:/lib   
-L/Library/OpenAFS/Tools/lib -L/Library/OpenAFS/Tools/lib/afs -lprot  
-lubik -lauth -lcmd -lsys -lrxkad -lrx -llwp  
/Library/OpenAFS/Tools/lib/libdes.a  
/Library/OpenAFS/Tools/lib/afs/util.a  
/Library/OpenAFS/Tools/lib/afs/libcom_err.a  -L/usr/lib -lgssapi_krb5  
-lresolv
ld: unknown flag: -rpath

cp064:/tmp/gssklog-0.10 chris$ gcc  -o gssklog gssklog.o gssklog_afs.o  
gssklog_gss.o gssklog_comm.o -Wl,/usr/lib:/usr/lib:/lib   
-L/Library/OpenAFS/Tools/lib -L/Library/OpenAFS/Tools/lib/afs -lprot  
-lubik -lauth -lcmd -lsys -lrxkad -lrx -llwp  
/Library/OpenAFS/Tools/lib/libdes.a  
/Library/OpenAFS/Tools/lib/afs/util.a  
/Library/OpenAFS/Tools/lib/afs/libcom_err.a  -L/usr/lib -lgssapi_krb5  
-lresolv
ld: can't open: /usr/lib:/usr/lib:/lib (No such file or directory,  
errno = 2)
ld: warning multiple definitions of symbol _set_com_err_hook
/Library/OpenAFS/Tools/lib/afs/libcom_err.a(com_err.o) definition of  
_set_com_err_hook in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_set_com_err_hook
ld: warning multiple definitions of symbol _reset_com_err_hook
/Library/OpenAFS/Tools/lib/afs/libcom_err.a(com_err.o) definition of  
_reset_com_err_hook in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_reset_com_err_hook
ld: warning multiple definitions of symbol _com_err_va
/Library/OpenAFS/Tools/lib/afs/libcom_err.a(com_err.o) definition of  
_com_err_va in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of _com_err_va
ld: warning multiple definitions of symbol _com_err
/Library/OpenAFS/Tools/lib/afs/libcom_err.a(com_err.o) definition of  
_com_err in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of _com_err
ld: warning multiple definitions of symbol _error_message
/Library/OpenAFS/Tools/lib/afs/libcom_err.a(error_msg.o) definition of  
_error_message in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_error_message
ld: warning multiple definitions of symbol _des_is_weak_key
/Library/OpenAFS/Tools/lib/libdes.a(weak_key.o) definition of  
_des_is_weak_key in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_is_weak_key
ld: warning multiple definitions of symbol _des_ecb_encrypt
/Library/OpenAFS/Tools/lib/libdes.a(des.o) definition of  
_des_ecb_encrypt in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_ecb_encrypt
ld: warning multiple definitions of symbol _des_cbc_encrypt
/Library/OpenAFS/Tools/lib/libdes.a(cbc_encrypt.o) definition of  
_des_cbc_encrypt in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_cbc_encrypt
ld: warning multiple definitions of symbol _des_fixup_key_parity
/Library/OpenAFS/Tools/lib/libdes.a(key_parity.o) definition of  
_des_fixup_key_parity in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_fixup_key_parity
ld: warning multiple definitions of symbol _des_check_key_parity
/Library/OpenAFS/Tools/lib/libdes.a(key_parity.o) definition of  
_des_check_key_parity in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_check_key_parity
ld: warning multiple definitions of symbol _des_key_sched
/Library/OpenAFS/Tools/lib/libdes.a(key_sched.o) definition of  
_des_key_sched in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_key_sched
ld: warning multiple definitions of symbol  
_des_init_random_number_generator
/Library/OpenAFS/Tools/lib/libdes.a(new_rnd_key.o) definition of  
_des_init_random_number_generator in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_init_random_number_generator
ld: warning multiple definitions of symbol _des_pcbc_encrypt
/Library/OpenAFS/Tools/lib/libdes.a(pcbc_encrypt.o) definition of  
_des_pcbc_encrypt in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_pcbc_encrypt
ld: warning multiple definitions of symbol _des_random_key
/Library/OpenAFS/Tools/lib/libdes.a(new_rnd_key.o) definition of  
_des_random_key in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_random_key
ld: warning multiple definitions of symbol  
_des_set_random_generator_seed
/Library/OpenAFS/Tools/lib/libdes.a(new_rnd_key.o) definition of  
_des_set_random_generator_seed in section (__TEXT,__text)
/usr/lib/libgssapi_krb5.dylib(single module) definition of  
_des_set_random_generator_seed
ld: warning multiple definitions of symbol _xdr_void
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_void in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_void
ld: warning multiple definitions of symbol _xdr_int
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_int in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_int
ld: warning multiple definitions of symbol _xdr_string
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_string in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_string
ld: warning multiple definitions of symbol _xdr_bytes
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_bytes in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_bytes
ld: warning multiple definitions of symbol _xdr_enum
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_enum in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_enum
ld: warning multiple definitions of symbol _xdr_wrapstring
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_wrapstring  
in section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_wrapstring
ld: warning multiple definitions of symbol _xdr_u_char
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_u_char in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_u_char
ld: warning multiple definitions of symbol _xdr_short
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_short in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_short
ld: warning multiple definitions of symbol _xdr_long
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_long in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_long
ld: warning multiple definitions of symbol _xdr_char
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_char in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_char
ld: warning multiple definitions of symbol _xdr_u_short
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_u_short in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_u_short
ld: warning multiple definitions of symbol _xdr_union
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_union in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_union
ld: warning multiple definitions of symbol _xdr_opaque
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_opaque in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_opaque
ld: warning multiple definitions of symbol _xdr_u_long
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_u_long in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_u_long
ld: warning multiple definitions of symbol _xdr_u_int
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_u_int in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_u_int
ld: warning multiple definitions of symbol _xdr_bool
/Library/OpenAFS/Tools/lib/librx.a(xdr.o) definition of _xdr_bool in  
section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr.o) definition of _xdr_bool
ld: warning multiple definitions of symbol _xdr_vector
/Library/OpenAFS/Tools/lib/librx.a(xdr_update.o) definition of  
_xdr_vector in section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr_array.o) definition of _xdr_vector
ld: warning multiple definitions of symbol _xdr_array
/Library/OpenAFS/Tools/lib/librx.a(xdr_array.o) definition of  
_xdr_array in section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr_array.o) definition of _xdr_array
ld: warning multiple definitions of symbol _xdr_pointer
/Library/OpenAFS/Tools/lib/librx.a(xdr_update.o) definition of  
_xdr_pointer in section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr_reference.o) definition of _xdr_pointer
ld: warning multiple definitions of symbol _xdr_reference
/Library/OpenAFS/Tools/lib/librx.a(xdr_refernce.o) definition of  
_xdr_reference in section (__TEXT,__text)
/usr/lib/libSystem.dylib(xdr_reference.o) definition of _xdr_reference
cp064:/tmp/gssklog-0.10 chris$