[1594] in Kerberos-V5-bugs
Compile under Solaris 2.4
daemon@ATHENA.MIT.EDU (cjohn mace)
Thu Aug 10 18:43:10 1995
From: cjmace@amoco.com (cjohn mace)
To: krb5-bugs@MIT.EDU
Date: Thu, 10 Aug 1995 16:39:05 -0600 (MDT)
I am having a problem compiling krb5 under Solaris 2.4 (sparc) with Sun's
SUNWspro cc package.
I found this in the README:
--------------------------------------------------------------------------
Solaris 2.X:
You *must* compile Kerberos V5 *without* the UCB compatibility libraries.
This means that /usr/ucblib must *not* be in the LD_LIBRARY_PATH
environment variable when you compile it.
Alternatively you can place the -i option on the cc line. So you can
put --with-ccopts=-i on the configure line. (Thanks to Dan Nessett
for this suggestion.
--------------------------------------------------------------------------
and I have included the --with-ccopts in my configure. I have also made
sure that /usr/ucblib is not in my LD_LIBRARY_PATH, but I receive this
upon linking:
--------------------------------------------------------------------------
cc -i -DHAVE_LIBSOCKET=1 -DHAVE_LIB ... -DKPROGDIR=\"/krb5/bin\" -o login.krb5 login.o logutil.o setenv.o getdtablesize.o ../../lib/libkrb5.a ../../lib/libkrb4.a ../../lib/libdes425.a ../../lib/libcrypto.a ../../util/et/libcom_err.a ../../lib/libkrb5.a ../../lib/libkrb4.a ../../lib/libdes425.a ../../lib/libcrypto.a ../../util/et/libcom_err.a -lsocket -lnsl
Undefined first referenced
symbol in file
setreuid ../../lib/libkrb4.a(in_tkt.o)
ld: fatal: Symbol referencing errors. No output written to login.krb5
*** Error code 1
make: Fatal error: Command failed for target `login.krb5'
Current working directory /data2/src/kerberos/src/appl/bsd
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /data2/src/kerberos/src/appl
*** Error code 1
make: Fatal error: Command failed for target `all'
--------------------------------------------------------------------------
I have deleted some of the flags that were passed to the cc compiler,
because my editor would not handle the length of the line. I have made
sure to include the .a files that the compiler is linking in. I believe
the setreuid function still resides in the /usr/ucblib directory. My
question really boils down to: How do I tell configure to not compile in
the ...src/apps/bsd directory?
cjohn mace
cjmace@amoco.com