[446] in arla-drinkers

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

12-28 snapshot on netbsd1.3H - much better luck this time

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Tue Dec 29 11:53:04 1998

From owner-arla-drinkers@stacken.kth.se Tue Dec 29 16:53:03 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 1236 invoked from network); 29 Dec 1998 16:53:02 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 29 Dec 1998 16:53:02 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id RAA08418
	for arla-drinkers-list; Tue, 29 Dec 1998 17:47:12 +0100 (MET)
Received: from tweedledumb.cygnus.com (tweedledumb.cygnus.com [192.80.44.1])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id RAA08414
	for <arla-drinkers@stacken.kth.se>; Tue, 29 Dec 1998 17:47:08 +0100 (MET)
Received: from kr-pc.cygnus.com (kr-pc.cygnus.com [192.80.44.193])
	by tweedledumb.cygnus.com (8.8.5/8.8.5) with ESMTP id LAA21728
	for <arla-drinkers@stacken.kth.se>; Tue, 29 Dec 1998 11:46:59 -0500 (EST)
Received: (from raeburn@localhost) by kr-pc.cygnus.com (8.8.8/8.6.9) id LAA07921; Tue, 29 Dec 1998 11:46:31 -0500 (EST)
Date: Tue, 29 Dec 1998 11:46:31 -0500 (EST)
Message-Id: <199812291646.LAA07921@kr-pc.cygnus.com>
X-Authentication-Warning: kr-pc.cygnus.com: raeburn set sender to raeburn@raeburn.org using -f
From: Ken Raeburn <raeburn@raeburn.org>
To: arla-drinkers@stacken.kth.se
Subject: 12-28 snapshot on netbsd1.3H - much better luck this time
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

Using the snapshot, and *not* pointing it to the CNS version of
Kerberos this time, I get:

../../arlad/arla.c:874: Undefined symbol `_krb_get_err_text' referenced from text segment

trying to link arlad.  Looks like the NetBSD version I've got (with
"domestic" components, including an old MIT krb4) doesn't provide it.

    % nm -o /usr/lib/libkrb.a | grep err_t
    /usr/lib/libkrb.a:krb_err_txt.o:00000be4 D _krb_err_txt
    %

When krb_get_err_text isn't defined, you can look up messages in this
table:

    char *krb_err_txt[256] = {
    ...

It may be safe to assume the above definition is in use, if the
function isn't found, because then you're probably using the old MIT
code.  (Unless an old distributed version of the kth code had neither
the function nor the array-of-pointers?)  Something like:

    #ifndef HAVE_KRB_GET_ERR_TEXT
    #define krb_get_err_text(N) (((N) >= 0 && (N) < 256) ? krb_err_txt[N] : "bad error code")
    #endif

should do, with appropriate autoconf tests.  At least in NetBSD, the
header file krb.h has the declaration for the array already.



When I switch back to CNS (plus NetBSD's libkafs), everything builds.

The kernel module loads without complaint (just some status messages
and "xfs_channel" info), and the rest of the startup seems to go okay,
though just after arlad has started, I got this behavior:

    % cd /afs/athena/user/
    /afs/athena/user/: Not a directory.
    [short pause]
    % cd /afs/athena
    % cd user
    % 

Is a delay needed after arlad forks off before accessing /afs?

Even after I get into AFS and can start listing directories and
reading files, I'm having problems with fs:

    # /usr/arla/bin/fs help
    Error detecting AFS
    #

Apparently the NetBSD libkafs k_hasafs() simply doesn't think I have
AFS.  It wasn't compiled to know about any AFS syscalls.  I suppose
I'll fetch the CMU version, or kth-krb.  (A third version of krb4 for
my system?! *sigh*)

Aside from these problems, unauthenticated AFS client access seems to
be working just fine.  So I guess the free authentication software is
next to download....

Excellent work!

Ken

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