[244] in arla-drinkers

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

Linux libc4

daemon@ATHENA.MIT.EDU (bpreece@unity.ncsu.edu)
Tue Sep 8 09:53:58 1998

From owner-arla-drinkers@stacken.kth.se Tue Sep 08 13:53:57 1998
Return-Path: <owner-arla-drinkers@stacken.kth.se>
Delivered-To: arla-drinkers-mtg@bloom-picayune.mit.edu
Received: (qmail 21334 invoked from network); 8 Sep 1998 13:53:56 -0000
Received: from unknown (HELO sundance.stacken.kth.se) (130.237.234.41)
  by bloom-picayune.mit.edu with SMTP; 8 Sep 1998 13:53:56 -0000
Received: (from majordom@localhost)
	by sundance.stacken.kth.se (8.8.8/8.8.8) id PAA13852
	for arla-drinkers-list; Tue, 8 Sep 1998 15:32:52 +0200 (MET DST)
Received: from cc02du.unity.ncsu.edu (cc02du.unity.ncsu.edu [152.1.1.174])
	by sundance.stacken.kth.se (8.8.8/8.8.8) with ESMTP id PAA13848
	for <arla-drinkers@stacken.kth.se>; Tue, 8 Sep 1998 15:32:45 +0200 (MET DST)
From: bpreece@unity.ncsu.edu
Received: (from bpreece@localhost)
          by cc02du.unity.ncsu.edu (8.8.4/UC02Jan97)
	  id JAA13020; Tue, 8 Sep 1998 09:32:40 -0400 (EDT)
Date: Tue, 8 Sep 1998 09:32:40 -0400 (EDT)
Message-Id: <199809081332.JAA13020@cc02du.unity.ncsu.edu>
To: arla-drinkers@stacken.kth.se
Subject: Linux libc4
Sender: owner-arla-drinkers@stacken.kth.se
Precedence: bulk

Magnus Ahltorp <map@stacken.kth.se> writes:

> > On a linux box with antique libc, arla-0.9 compiles but fails. 
...
> 
> What exactly is "antique" libc? 4.*? On libc4 machines, I haven't been
> able to compile arla at all, so I gave up.
> 

libc4.6.27.

I left out two changes that weren't related to that problem but
were necessary to get arlad to compile and both caused fairly obvious
compile-time problems.  The arla.c change should probably be replaced
by an implementation of krb_get_err_text and shouldn't be necessary
for a modern kerberos, but it's there for completeness.

Everything that didn't compile with these patches needed libkafs,
which I don't have yet.
 
diff -u --recur orig/arla-0.9/arlad/arla.c arla-0.9/arlad/arla.c
--- orig/arla-0.9/arlad/arla.c  Thu Jul 30 20:06:14 1998
+++ arla-0.9/arlad/arla.c       Mon Sep  7 23:05:53 1998
@@ -826,7 +826,7 @@
                arla_warnx (ADEBWARN,
                            "getting ticket for %s: %s",
                            this_cell,
-                           krb_get_err_text (ret));
+                           krb_err_txt [ret]);
            } else if (cred_add_krb4(getuid(), &krbdata.c) == NULL) {
                arla_warnx (ADEBWARN, "Could not insert tokens to arla");
            }
diff -u --recur orig/arla-0.9/lib/roken/recvmsg.c arla-0.9/lib/roken/recvmsg.c
--- orig/arla-0.9/lib/roken/recvmsg.c   Thu Jul 30 20:06:37 1998
+++ arla-0.9/lib/roken/recvmsg.c        Mon Sep  7 23:07:46 1998
@@ -67,6 +67,7 @@
        memcpy (iov->iov_base, p, cnt);
        p += cnt;
        nb -= cnt;
+       iov++;
     }
     free(buf);
     return ret;
diff -u --recur orig/arla-0.9/xfs/linux/xfs_dirent.h arla-0.9/xfs/linux/xfs_dirent.h
--- orig/arla-0.9/xfs/linux/xfs_dirent.h        Thu Jul 30 20:07:27 1998
+++ arla-0.9/xfs/linux/xfs_dirent.h     Tue Sep  8 08:52:46 1998
@@ -43,6 +43,8 @@
 #define MAXNAMLEN 255
 #endif
 
+#undef d_namlen
+
 struct xfs_dirent {
     u_int32_t d_fileno;
     u_int16_t d_reclen;





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