Discussion:
Regarding problem with the building aufs-util.
Atul Singh Mandla
2016-04-28 13:41:10 UTC
Permalink
Is it possible to compile the aufs-util without using "make headers
install"?
While I tried doing the same I got this error :
----------------------------------------------------------------------------------------------------
-DUMOUNT_CMD=\"/bin/umount\" ver.c -o ver
ver.c:19:29: fatal error: linux/aufs_type.h: No such file or directory
#include <linux/aufs_type.h>
^
compilation terminated.
<builtin>: recipe for target 'ver' failed
make[2]: *** [ver] Error 1
-----------------------------------------------------------------------------------------------------

To resolve the same I added "CFLAGS="-I$(AUFS_DIR)/include/uapi/"" to the
make.
In this case I got a different error and I am not able to get to the root
cause of the same.
--------------------------------------------------------------------------------------------------------
In file included from ver.c:19:0:
/home/rclinux/rclinux/rc-buildroot/output/build/aufs-aufs4.x-rcN/include/uapi/linux/aufs_type.h:289:27:
error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
struct au_rdu_ent __user *e;
^
<builtin>: recipe for target 'ver' failed
make[2]: *** [ver] Error 1
package/pkg-generic.mk:195: recipe for target
'/home/rclinux/rclinux/rc-buildroot/output/build/aufs-util-aufs4.x-rcN/.stamp_built'
failed
---------------------------------------------------------------------------------------------------------

Can anyone help with this issue ?


Thanks,
Atul Singh.
s***@users.sourceforge.net
2016-04-28 13:48:25 UTC
Permalink
Hello Atul Singh,
Post by Atul Singh Mandla
Is it possible to compile the aufs-util without using "make headers
install"?
I am afraid not.
Post by Atul Singh Mandla
In this case I got a different error and I am not able to get to the root
cause of the same.
error: expected =E2=80=98:=E2=80=99, =E2=80=98,=E2=80=99, =E2=80=98;=E2=80=
=99, =E2=80=98}=E2=80=99 or =E2=80=98__attribute__=E2=80=99 before =E2=80=
=98*=E2=80=99 token
struct au_rdu_ent __user *e;
By "make headers_install", the invalid keyworkd "__user" will be removed
and you will be able to succeed compiling.


J. R. Okajima

Loading...