Compile problems on Debian (Sarge) / Linux 2.6.8

Alexander Boström abo at stacken.kth.se
Tue Dec 7 22:20:11 CET 2004


tis 2004-12-07 klockan 00:57 -0500 skrev Brandon Kuczenski:

> In the arla source directory, INSTALL file, there is mention that the
> kernel source tree must be writable "in places" so that symlinks can be
> created -- is this related?  The INSTALL file does not specify where the
> links are needed.

Hello,

Hmm... I'm not sure that's true anymore. Basically, we copy parts of the
kernel source tree to the arla build tree, to work around the problem
with non-writable source tree. What happens here is that we don't copy
enough (Makefile.my), sincle Makefile is a symlink in this case.

However, I recall successfully compiling arla with a non-writable kernel
source tree without copying it to the arla tree. You could try that.
(See attached patch.)

Also, arla-0.37 is out now, so try that instead.

And if you can mount AFS, but can't authenticate, try heimdal-0.6.3.

/abo



Index: nnpfs/linux/Makefile.in
===================================================================
RCS file: /afs/stacken.kth.se/src/SourceRepository/arla/nnpfs/linux/Makefile.in,v
retrieving revision 1.54
diff -u -w -u -r1.54 Makefile.in
--- nnpfs/linux/Makefile.in	21 Jul 2004 17:17:44 -0000	1.54
+++ nnpfs/linux/Makefile.in	18 Oct 2004 13:58:22 -0000
@@ -98,6 +98,7 @@
 	echo >>kbuild-work/Makefile 'obj-m:=		$(MODULE)'
 	echo >>kbuild-work/Makefile 'nnpfs-objs:=	$(MODULE_OBJS)'
 
+ifdef COPY_KERNEL_SOURCE
 kernel-source-tree:
 	$(MKDIR) -p kernel-source-tree.tmp
 	cd @SYS@ && \
@@ -109,7 +110,11 @@
 	mv kernel-source-tree.tmp kernel-source-tree
 
 kbuild: kbuild-work kernel-source-tree
-	$(MAKE) -C kernel-source-tree SUBDIRS=$(CURDIR)/kbuild-work modules
+	$(MAKE) -C kernel-source-tree M=$(CURDIR)/kbuild-work modules
+else
+kbuild: kbuild-work
+	$(MAKE) -C @SYS@ M=$(CURDIR)/kbuild-work modules
+endif
 
 $(MODULE):	$(MODULE_OBJS)
 	$(LD) $(KERNEL_LD_FLAGS) -r -o $(MODULE) $(MODULE_OBJS)





More information about the Arla-drinkers mailing list