[1015] in arla-drinkers

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

Re: random problems, mostly relating to dependencies on kth-krb?

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Sat Jul 24 16:10:36 1999

From owner-arla-drinkers@stacken.kth.se Sat Jul 24 20:10:35 1999
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 9146 invoked from network); 24 Jul 1999 20:10:33 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 24 Jul 1999 20:10:33 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id WAA18088
	for arla-drinkers-list; Sat, 24 Jul 1999 22:05:47 +0200 (MET DST)
Received: from raeburn.org (r93aag001418.sbo-smr.ma.cable.rcn.com [209.6.183.211])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id WAA18084;
	Sat, 24 Jul 1999 22:05:13 +0200 (MET DST)
Received: (from raeburn@localhost) by raeburn.org (8.8.8/8.6.9) id QAA00320; Sat, 24 Jul 1999 16:05:11 -0400 (EDT)
To: Assar Westerlund <assar@stacken.kth.se>
Cc: arla-drinkers@stacken.kth.se
Subject: Re: random problems, mostly relating to dependencies on kth-krb?
References: <199907131505.LAA11819@raeburn.org> <5l908jug0h.fsf@assaris.sics.se> <5lyagi96v5.fsf@assaris.sics.se>
Mime-Version: 1.0
From: Ken Raeburn <raeburn@raeburn.org>
Date: 24 Jul 1999 16:05:10 -0400
In-Reply-To: Assar Westerlund's message of "15 Jul 1999 00:58:06 +0200"
Message-ID: <tx13dydak5l.fsf@raeburn.org>
Lines: 131
User-Agent: Gnus/5.070063 (Pterodactyl Gnus v0.63) Emacs/20.3
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

Assar Westerlund <assar@stacken.kth.se> writes:

> > > 	krb_parse_name
> > > 	krb_unparse_name_r
> > > 	krb_unparse_name_long_r
> > 
> > Ok, I've added implementations (in the first case in terms of
> > kname_parse, and the second copying the code from krb4).  Patches at
> > the end.
> 
> Chris pointed out that I missed one instance of krb_parse_name, patch
> to that included below.

I just updated to the current CVS sources (well, within the last few
hours), and tried a new build.

I had to delete the definition of krb_principal from acl_files.c,
because it was already defined via header files.

The xfs code doesn't build on NetBSD-1.3H:

The sys_setgroups_args test needs sys/time.h included before
sys/proc.h.

Compiling xfs_message.c, I get a zillion type redefinition messages.
The syscallargs.h header file buried in the kernel sources is not
protected against multiple inclusion in this version.  (It's been
fixed in more recent kernel sources, but of course you're claiming
support for versions as far back as 1.2.)  I changed xfs_locl.h to
include xfs_syscalls.h instead of sys/syscallargs.h directly.

The header file parse_time.h in the roken directory wasn't being
linked to from the include directory.

> > > Also missing were
> > > 
> > > 	krb_life_to_time
> > 
> > This is rather hard, or it's some amount of code to copy (~200
> > lines).  Against what kerberos library are you linking that doesn't
> > have that?
> 
> Derrick told me that it's included in krbafs.  Assuming I didn't miss
> any, I have made sure that all places that link with rxkad also link
> with kafs/krbafs.

The Cygnus Kerberos code (CNS) doesn't include it.  The NetBSD 1.3H
libkafs doesn't include it either.  In fact, the NetBSD-current
libkafs sources haven't changed from the old libkafs that didn't
define the syscall number on this OS.  So I've installed krbafs-0.9.8
from CMU.  It wasn't immediately obvious to me that the --with-krbafs
option wants the directory containing the library itself, not the
--prefix option passed when configuring krbafs.

Still missing, in the build for klog:
	krb_get_pw_in_tkt2
	krb_get_default_principal

Everything else built okay.

Except for the acl_files.c change I mentioned, the patches I'm using
are below.

"make -k install" stopped when it couldn't rebuild klog.  I had to
create a dummy file for it to continue past that point.

Now, to try actually running it....

-- Ken


Index: configure.in
===================================================================
RCS file: /kr/projects/arla/repos-copy/arla/configure.in,v
retrieving revision 1.294
diff -p -u -r1.294 configure.in
--- configure.in	1999/07/24 13:10:43	1.294
+++ configure.in	1999/07/24 18:16:09
@@ -1208,6 +1208,9 @@ AC_HAVE_DEF([
 #ifdef HAVE_SYS_MOUNT_H
 #include <sys/mount.h>
 #endif
+#ifdef HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
 #ifdef HAVE_SYS_PROC_H
 #include <sys/proc.h>
 #endif
Index: include/Makefile.in
===================================================================
RCS file: /kr/projects/arla/repos-copy/arla/include/Makefile.in,v
retrieving revision 1.39
diff -p -u -r1.39 Makefile.in
--- Makefile.in	1999/07/12 08:40:01	1.39
+++ Makefile.in	1999/07/24 18:22:48
@@ -29,7 +29,7 @@ LOCL_HEADERS	= roken.h ko.h sl.h part.h 
 		  minmax.h timeval.h \
 		  lwp.h lock.h getarg.h err.h parse_units.h \
 		  resolve.h rxkad.h service.h mmaptime.h ports.h \
-		  heap.h fbuf.h fdir.h afs_dir.h
+		  heap.h fbuf.h fdir.h afs_dir.h parse_time.h
 
 BUILDHEADERS	= atypes.h fs_errors.h 
 
@@ -118,6 +118,8 @@ err.h:
 	$(LN_S) $(srcdir)/../lib/roken/err.h .
 resolve.h:
 	$(LN_S) $(srcdir)/../lib/roken/resolve.h .
+parse_time.h:
+	$(LN_S) $(srcdir)/../lib/roken/parse_time.h .
 rxkad.h:
 	$(LN_S) $(srcdir)/../rxkad/rxkad.h .
 service.h:
Index: xfs/bsd/xfs/xfs_locl.h
===================================================================
RCS file: /kr/projects/arla/repos-copy/arla/xfs/bsd/xfs/xfs_locl.h,v
retrieving revision 1.25
diff -p -u -r1.25 xfs_locl.h
--- xfs_locl.h	1999/07/20 14:40:57	1.25
+++ xfs_locl.h	1999/07/24 18:13:19
@@ -154,9 +154,7 @@ typedef struct componentname xfs_compone
 #include <sys/poll.h>
 #endif
 #include <sys/syscall.h>
-#ifdef HAVE_SYS_SYSCALLARGS_H
-#include <sys/syscallargs.h>
-#endif
+#include "xfs/xfs_syscalls.h"
 #include <sys/queue.h>
 #include <sys/malloc.h>
 #ifdef HAVE_MISCFS_GENFS_GENFS_H

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