Linux libc4

bpreece@unity.ncsu.edu bpreece at unity.ncsu.edu
Tue Sep 8 15:32:52 CEST 1998


Magnus Ahltorp <map at 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;









More information about the Arla-drinkers mailing list