arla 0.9 : cannot compile on linux
Love
lha at elixir.e.kth.se
Tue Sep 15 17:09:05 CEST 1998
mc8644.com at mclink.it writes:
> Hello. I have downoaded arla 0.9 willing to try it on some linux boxes,
> but I cannot compile it. I have tried the usual ./configure ; make , and have
> also changed several times the various configure parameters (directory, etc.)
> to no avail.
> The compilation dies on two different machines that work normally,
> therefore I would conclude that there is some problem wit arla itself.
>
> ....
> make[2]: Entering directory `/incoming/arla-0.9/xfs/linux'
> gcc -c -DHAVE_CONFIG_H -DMODULE -DMODVERSIONS -D__KERNEL__ -DDEBUG -I.
> -I. -g -Wall -g -I. -I./../include -I../../include -I./../../include -Wall
> -Wstrict-prototypes -O2 -fomit-frame-pointer xfs_load.c
> In file included from xfs_load.c:39:
> xfs_locl.h:47: linux/modversions.h: No such file or directory
Try this patch:
Index: configure.in
===================================================================
RCS file: /usr/local/cvsroot/arla/configure.in,v
retrieving revision 1.158
retrieving revision 1.159
diff -u -w -r1.158 -r1.159
--- configure.in 1998/09/15 00:52:46 1.158
+++ configure.in 1998/09/15 14:56:55 1.159
@@ -448,7 +448,7 @@
AC_CHECK_HEADERS(nlist.h libelf/nlist.h resolv.h kvm.h)
dnl Linux specific __kernel_* types
-AC_CHECK_HEADERS(linux/types.h)
+AC_CHECK_HEADERS(linux/types.h linux/modversions.h)
dnl Make sure we get config.h
if test "$KRB_INC_DIR"; then
RCS file: /usr/local/cvsroot/arla/xfs/linux/xfs_locl.h,v
retrieving revision 1.15
diff -u -w -r1.15 xfs_locl.h
--- xfs_locl.h 1998/07/19 01:24:38 1.15
+++ xfs_locl.h 1998/09/15 14:54:20
@@ -44,7 +44,9 @@
#endif
#include <linux/version.h>
+#ifdef HAVE_LINUX_MODVERSIONS_H
#include <linux/modversions.h>
+#endif
#include <linux/errno.h>
#include <linux/fs.h>
#include <linux/malloc.h>
You have to run autoreconf i the source top directory and rerun configure
to get the configure.in patch to accully do thing.
> gcc -c -DHAVE_CONFIG_H -DSYSCONFDIR=\"/usr/arla/etc\" -DARLACACHEDIR=\"/usr/arl
> a/cache\" -DARLACONFFILE=\"/usr/arla/etc/arla.conf\" -I. -I. -I./.. -I/home/nico
> la/arla-0.9/xfs/linux -I../include -I./../include -I../rxdef -I./../rxkad -DDEB
> UG -g -Wall messages.c
> messages.c: In function `xfs_message_getroot':
> messages.c:552: `RXKADEXPIRED' undeclared (first use this function)
> messages.c:552: (Each undeclared identifier is reported only once
Do you have kerberos (like http://www.pdc.kth.se/kthkrb/) installed,
it doesn't seem that way on the includes. (rxkad depend on it, and
the error codes are in rxkad/rxkad.h, I guess they could be broken out).
The simple solution (for us) is that you install kerberos ;)
Love
More information about the Arla-drinkers
mailing list