Building arla-0.4 on RedHat Linux 5.0/glibc 2.06

Brad Keryan keryan at andrew.cmu.edu
Mon Mar 30 22:47:34 CEST 1998


On 30 Mar 1998, Love wrote:

> Brad Keryan <keryan at andrew.cmu.edu> writes:
> 
> > At the very end of this message is a patch that gets the xfs kernel module
> > to build under RedHat 5.0 (glibc 2.0.6-9, kernel 2.0.33, i586-Linux). It
> > makes a new file, arla-0.4/xfs/linux/missing_types.h, which defines some
> > of the types that come from <sys/types.h> in libc5 and on other OSes.
> 
> Ok, I used you patch for autoconf and added caching, so now i looks like
> this, is this right ? I dont have access to glibc thingy.

Yes, that works correctly on glibc.

> I added the test not in the linux section because someone else may
> want to run glibc on a non-linux system (?)

Almost forgot about Hurd there :)
And older versions of glibc run on some other Unixes too.

> missing_types.h should be autoconf:ed instead, will it help if
> you include include/atypes.h ?

Yes, that would work, but we would need a configure macro to test for
kernel types, like an AC_GROK_KERNEL_TYPE. Then it could test for
u_int32_t etc, and __u32 etc, so bits.c could specify the correct one. 
The macro would need to know what kernel headers to include for the test,
though. Is this what KERNEL_HDRS is for?

> I don't know how to test for MAXPATHLEN, will ask local autoconf guru.

Same here as with the typedefs. AC_EGREP_CPP would work if the test knew
which kernel headers to include. 

	Brad






More information about the Arla-drinkers mailing list