Hello Thomas,

Thomas Sachau:
> -the build should never leave the builddir for adding/changing/removing f=
> iles, this includes places
> like /usr/src/linux. The attached build.log shows the prevented access by=
>  sandbox.

Unfortunately I totally don't understand what it means.
Do you maen
- there was no compile error
- but something is left under fs/aufs/, and it is harmful
?


> -aufs2-util gives me a compile time error, also in the attached log (firs=
> t it compiles
> aufs2-standalone for kernel 2.6.36, afterwards aufs2-util)

I am afraid you might forget "make headers_install".
Also you need to checkout "aufs2.1" branch in aufs2-util.

----------------------------------------------------------------------
commit f683de2f539182b72a3dff968e4adeca9ae9419a
Author: J. R. Okajima <[email protected]>
Date:   Wed Aug 25 22:45:55 2010 +0900

    "make headers_install" will make KDIR useless
    
    Stop referencing the header files under $LinuxSrc/include. Instead use
    the files processed by "make headers_install".
    
    Signed-off-by: J. R. Okajima <[email protected]>

diff --git a/Makefile b/Makefile
index dc1ba7a..239a21b 100644
--- a/Makefile
+++ b/Makefile
@@ -15,21 +15,7 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301        
 USA
 
-ifndef KDIR
-KDIR = /lib/modules/$(shell uname -r)/build
-endif
-ifneq "t" "$(shell test -e ${KDIR}/include/linux/stddef.h && echo t)"
-$(error incorrect KDIR)
-endif
-
-ifndef ARCH
-ARCH := $(shell uname -m)
-endif
-ARCH := $(shell echo ${ARCH} | sed -e 's/_64$$//')
-ArchDir = ${KDIR}/arch/${ARCH}/include
-
-CFLAGS += -I${KDIR}/include -I./libau
-CFLAGS += $(shell test -d ${ArchDir} && echo -I${ArchDir})
+CFLAGS += -I./libau
 CFLAGS += -O -Wall
 
 Cmd = umount.aufs auchk aubrsync
diff --git a/README b/README
index f1240e5..a95196d 100644
--- a/README
+++ b/README
@@ -9,17 +9,21 @@ And these are not for aufs1 essentially, except aubrsync. See 
below in
 detail.
 
 Makefile in this tree has some customizable make-variables.
-- KDIR
-  specify your kernel source path if necessary.
-  Note: this path should point kernel _source_ path, instead of kernel
-  _build_ path. Don't confuse with the path in "make O=<kdir>" when you
-  build a kernel in a different dir.
-- CPPFLAGS or ARCH
-  specify the include path to your aufs2-standalone tree, if necessary.
-  the makefile finds the correct ${KDIR}/arch/${ARCH}/include dir and
-  sets the include path to CPPFLAGS="-I...". if the logic in Makefile is
-  poor and doesn't support your build environment, then set the
-  variables directly.
+- CPPFLAGS
+  specify the include path if necessary.
+  Some of linux kernel header files are necessary including
+  linux/aufs_type.h. If you have installed kernel header files to
+  /usr/include, then you may not need to specify CPPFLAGS.
+  Otherwise you need to do something like this sample.
+  + run "make headers_install" in your kernel source tree, and
+    $LinuxSrc/usr/include is created and header files are installed
+    there.
+  + if you build aufs2 as module from aufs2-standalone.git, then
+    $Aufs2Stdalone/usr/include is created and header files are
+    installed there.
+  + and specify
+       CPPFLAGS="-I $LinuxSrc/usr/include -I $Aufs2Stdalone/usr/include"
+
 - DESTDIR
   specify your install path if necessary.
   some commands have to be installed under /sbin.
----------------------------------------------------------------------


J. R. Okajima


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev

Reply via email to