Arla and Linux with glibc

Artur Grabowski art at stacken.kth.se
Tue Mar 17 00:11:45 CET 1998


From: Brad Keryan <keryan at andrew.cmu.edu>
Subject: Arla and Linux with glibc
Date: Mon, 16 Mar 1998 16:56:40 -0500 (EST)

> Brad Keryan <keryan at andrew.cmu.edu>
> To: arla-drinkers at stacken.kth.se
> Date: Mon, 16 Mar 1998 16:56:40 -0500 (EST)
> MIME-Version: 1.0
> Content-Type: TEXT/PLAIN; charset=US-ASCII
> X-Sender: keryan at fatale.res.cmu.edu
> 
> I had some minor trouble building the userspace parts of Arla under
> Linux/x86 with glibc 2.0.6 and kernel 2.1.89.
> 
> On my system (RedHat 5.0) there is no <nlist.h>, instead, there is a
> <libelf/nlist.h>, which appears to be the same as <nlist.h> on Solaris.
> 
> Also, <errnos.h>, which is included by <errno.h>, has the following line:
> #   define errno (*__errno_location ())
> which causes arla compilation to fail because some data structures it uses
> have a field called errno. At the end of this message is a patch that got
> arla to compile, by checking for nlist.h and libelf/nlist.h, and by

These patches has been applied.

> #undef-ing errno in xfs_message.h. I'm not sure if #undef-ing errno is the
> right way to handle that problem (it seems that if you #define _LIBC
> before including errno.h the problem would go away) but it worked.

The errno patches should be checked by someone who does Linux stuff (map).
My xfs_message.h is hacked to pieces right now.
 
> Also, is anybody working on Linux 2.1.x support for Arla's xfs?

As far as I know, the only work on linux is done on 2.0.30. So you are really
welcome to give it a shot. But beware. There has been done some really big
changes to the Linux kernel-module recently. (3-4 hours ago) So you could:
1. wait for the next release. 2. push Magnus (the Linux guy) to make a
snapshot. 3. Push us so we make our source-tree more readable.

//art





More information about the Arla-drinkers mailing list