On 05/03/2012 08:17, [email protected] wrote:
> Hi Ed,
>
> Ed W:
>> I'm struggling to compile aufs-util for aufs3. I need to build it on a
>> machine running a much older kernel, so basically the new kernel source
>> (3.2.10) is in /usr/src/linux and I'm trying to build against that (the
>> new kernel src includes aufs patches in non modular form - kernel boots ok)
> :::
>> # make
>> cc -I./libau -I/usr/src/linux/include -O -Wall -DMOUNT_CMD_PATH=\"\"
>> ver.c -o ver
>> In file included from ver.c:19:0:
>> /usr/src/linux/include/linux/aufs_type.h:179:27: error: expected ':',
> I guess you (or your distribution) forgot to run "make headers_install"
> which modifies aufs_type.h and install it to the dir you spcified.
>
>
Thanks - I was scared to run the make headers_install, had assumed it
tampered with /usr/include. Realised my mistake
Everything working perfectly now, apologies for the noise (again)..
Note, could I suggest for the docs to be updated to be clearer on:
- aufs3.0 for kernel-3.0 and newer - it implies that 3.x is best (I
remember this confusion surrounding the main aufs module also?
- Example of the make command line in the form (rather than the
suggestion to edit the Makefile
CPPFLAGS="-I /usr/src/linux/usr/include" make
- Urge people that make headers_install doesn't actually change the
distro headers, only the ones in the kernel source tree
Thanks for the wonderful aufs!
Ed W
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2