help with afs

Sameer Ahmad Afsar safsar at
Thu Aug 3 21:23:54 GMT 2000

I have been trying to compile samba with afs.  I did as the book suggested the first time and ran samba without afs.  Now i am trying to compile it with afs.  It has not been successful.  I have added all the afs libraries to the makefile.  These are the errors i am still getting, can you please help me find away around this.

Linking bin/smbd
/afs/anl/i386_linux22/usr/afsws/lib/libafsrpc.a(error_msg.o): In function `error_message':
/afs/ multiple definition of `error_message'
/krb5/lib/libcom_err.a(error_message.o)(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `error_message' changed from 248 to 516 in
/afs/anl/i386_linux22/usr/afsws/lib/libafsauthent.a(rmtsysc.o): In function `pioctl':
/afs/ the `getwd' function is dangerous and should not be used.
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1                 

This is how the make file looks like:
LIBS=-lreadline -ldl  -lcrypt -ldes425 -lkrb5 -lk5crypto -lcom_err -lpam -lafsauthent -lafsrpc -ldes -llwp -lrx -lrxkad -lrxstat -lubik -lacl -lafsadminutil -lafsint -laudit -lauth -lauth.krb -lbos -lbosadmin -lbubasics -lbudb -lbutm -lbxdb -lcfgadmin -lclientadmin -lcmd -ldir -lfsprobe -lgtx -lkasadmin -lkauth -lkauth.krb -lnull -lprocmgmt -lprot -lptsadmin -lsys -ltermlib -lusd -lvldb -lvolser -lvosadmin -lxstat_cm -lxstat_fs -lpthread
CFLAGS=-O -I/krb5/include -I/usr/afsws/include -I/usr/afsws/lib/afs -I/usr/lib
LDFLAGS= -L/krb5/lib -L/usr/afsws/lib  -L/usr/afsws/lib/afs -L/usr/afsws/lib/afs/util.a -L/usr/afsws/lib/afs/vlib.a

thank you for your time

More information about the samba mailing list