[2617] in Kerberos-V5-bugs

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

pending/328: --with-afs needs some help

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Jan 1 14:05:20 1997

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: gnats-admin@rt-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, Greg Hudson <ghudson@MIT.EDU>
Date: Wed, 1 Jan 1997 14:04:50 -0500
From: Greg Hudson <ghudson@MIT.EDU>
To: krb5-bugs@MIT.EDU


>Number:         328
>Category:       pending
>Synopsis:       --with-afs needs some help
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Jan 01 14:05:01 EST 1997
>Last-Modified:
>Originator:
>Organization:
>Release:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
>Audit-Trail:
>Unformatted:
With a new year comes new bugs.  Configuring with --with-afs (as I did
somewhat unwittingly by adding with_afs=/usr/afsws to my config.site)
creates several problems in Krb 5 beta 7:

	* Irix requires a final -lsys after the -llwp, due to a
	  circular dependency (-llwp uses afs_syscall).  Transarc uses
	  -lsys -lrx -llwp -lsys to build things, and so does everyone
	  else now.

	* On Solaris, the build fails to find bzero, bcopy, sigvec,
	  getwd, random, sigsetmask, and setreuid.  I use sigvec in
	  the test below because Solaris 2.5 added bzero, bcopy,
	  getwd, random, and setreuid back to libc, leaving sigvec and
	  sigsetmask back in libucb.

	  No, I don't believe there is any way to build krb5 without
	  -lucb on Solaris 2.4 or 2.5, short of defining the seven
	  symbols in login.c.

	* On BSD 4.4-derived systems, the build fails to find insque
	  and remque, so it needs -lcompat.

Index: configure.in
===================================================================
RCS file: /afs/dev.mit.edu/source/repository/third/krb5/src/appl/bsd/configure.in,v
retrieving revision 1.1
retrieving revision 1.3
diff -c -r1.1 -r1.3
*** configure.in	1996/09/12 04:42:06	1.1
--- configure.in	1997/01/01 18:49:24	1.3
***************
*** 7,13 ****
  ,with_afs=no)dnl
  if test $with_afs != no; then
  	AC_DEFINE(SETPAG)
! 	LOGINLIBS="$LOGINLIBS -L$with_afs/lib -L$with_afs/lib/afs -lauth -lsys -lrx -llwp"
  fi
  AC_PROG_INSTALL
  dnl dbm libs for use of an_to_ln
--- 7,19 ----
  ,with_afs=no)dnl
  if test $with_afs != no; then
  	AC_DEFINE(SETPAG)
! 	LOGINLIBS="$LOGINLIBS -L$with_afs/lib -L$with_afs/lib/afs -lauth -lsys -lrx -llwp -lsys"
! 	AC_CHECK_FUNC(sigvec, :,
! 		      [AC_CHECK_LIB(ucb, sigvec,
! 				    [LOGINLIBS="$LOGINLIBS -lucb"])])
! 	AC_CHECK_FUNC(insque, :,
! 		      [AC_CHECK_LIB(compat, insque,
! 				    [LOGINLIBS="$LOGINLIBS -lcompat"])])
  fi
  AC_PROG_INSTALL
  dnl dbm libs for use of an_to_ln

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