Hello Guan, Guan Xin: > Because "make headers_install" actually installs the kernel headers > under the kernel build tree and not "/usr", would it be better to apply > this patch to the Makefile of aufs-util?
Thank you for your suggestion. But I am afraid it is not so helpful since the build environment often differs from the running environment. Do you think this description in the README file is insufficient? ---------------------------------------------------------------------- - 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 by default. + if you build aufs3 as module from aufs3-standalone.git, then $AufsStdalone/usr/include is created and header files are installed there. + and specify CPPFLAGS="-I $LinuxSrc/usr/include -I $AufsStdalone/usr/include" Note that your distribution may contain an obsoleted version of aufs_type.h in /usr/include/linux or something. When you build aufs utilities, make sure that your compiler refers the correct aufs header file which is built by "make headers_install." ---------------------------------------------------------------------- J. R. Okajima ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/