[788] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Can't get Krb5B4.1 to build on Solaris

daemon@ATHENA.MIT.EDU (Dan Nessett)
Wed Sep 28 20:21:20 1994

Date: Wed, 28 Sep 1994 17:20:58 -0700
From: Danny.Nessett@Eng.Sun.COM (Dan Nessett)
To: krb5-bugs@MIT.EDU

I am trying to build krb5-beta 4.1 on Solaris.

After untar'ing the krb5-beta4.1 tar file and following the build instructions,
I ran into two problems. The first occured when building getpassword.c in 

 KRB5ROOT/src/isode/compat

The make failed with the following error messages 

cc  -I. -I./../../isode/h/ -I./../../include/isode/     -c  getpassword.c
"getpassword.c", line 64: incomplete struct/union/enum sgttyb: sg
"getpassword.c", line 89: undefined struct/union member: sg_flags
"getpassword.c", line 90: warning: improper member use: sg_flags
"getpassword.c", line 90: undefined symbol: ECHO
"getpassword.c", line 128: warning: improper member use: sg_flags
cc: acomp failed for getpassword.c
*** Error code 1
make: Fatal error: Command failed for target `getpassword.o'
Current working directory /export/home/kerberosV5/krb5-beta4.1/src/isode/compat
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/kerberosV5/krb5-beta4.1/src/isode
*** Error code 1
make: Fatal error: Command failed for target `all'

I figured this out. On line 64 of getpassword.c the member sg is defined
as a "struct sgttyb" if SYS5 is not defined. For some reason it is not on my
system, so in the Makefile I set CCOPTS =  -DSYS5

This cleared up the first problem. The second one I couldn't get past. In the
directory KRB5ROOT/src/isode/psap the following error occured :

PSAP library built normally
cc -DSYS5 -I. -I./../../isode/h/ -I./../../include/isode/    -c ./psaptest.c
cc  -o psaptest psaptest.o libpsap.a ../compat/libcompat.a -lnsl -lsocket
Undefined			first referenced
 symbol  			    in file
getdtablesize                       ../compat/libcompat.a(logger.o)
ld: fatal: Symbol referencing errors. No output written to psaptest
*** Error code 1
make: Fatal error: Command failed for target `psaptest'
Current working directory /export/home/kerberosV5/krb5-beta4.1/src/isode/psap
*** Error code 1
make: Fatal error: Command failed for target `all'
Current working directory /export/home/kerberosV5/krb5-beta4.1/src/isode
*** Error code 1
make: Fatal error: Command failed for target `all'

When I looked at logger.c in KRB5ROOT/src/isode/compat I found the following
text at line 95 :

/* [eichin:19940412.1858EST] to supply getdtablesize for solaris... */
#if defined(hpux) || defined(__svr4__)
#include <sys/resource.h>
int getdtablesize() {
  struct rlimit rl;
  getrlimit(RLIMIT_NOFILE, &rl);
  return rl.rlim_cur;
}
#endif

This suggests that Beta 4.1 doesn't build correctly for Solaris. Has this
been fixed? If not, should I go back to a previous version of kerbV5?

Thanks for any help.

Regards,

Dan Nessett

home help back first fref pref prev next nref lref last post