davfs2 failes to compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.3-r1/work/davfs2-0.2.3 -I./lib -I./src -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -c src/davfsd.c -o src/davfsd.o x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I/var/tmp/portage/davfs2-0.2.3-r1/work/davfs2-0.2.3 -I./lib -I./src -O2 -I/usr/include/neon -DNEON_ZLIB -DNEON_SSL -c src/mount.c -o src/mount.o In file included from src/davfsd.c:41: /usr/include/linux/coda.h:762: error: variable or field `__user' declared void /usr/include/linux/coda.h:762: error: parse error before '*' token /usr/include/linux/coda.h:763: error: parse error before '*' token /usr/include/linux/coda.h:766: error: parse error before '}' token /usr/include/linux/coda.h:769: error: parse error before '*' token /usr/include/linux/coda.h:772: error: parse error before '}' token /usr/include/linux/coda.h:771: error: storage size of `vi' isn't known make: *** [src/davfsd.o] Error 1 make: *** Waiting for unfinished jobs.... In file included from src/mount.c:38: /usr/include/linux/coda.h:762: error: variable or field `__user' declared void /usr/include/linux/coda.h:762: error: parse error before '*' token /usr/include/linux/coda.h:763: error: parse error before '*' token /usr/include/linux/coda.h:766: error: parse error before '}' token /usr/include/linux/coda.h:769: error: parse error before '*' token /usr/include/linux/coda.h:772: error: parse error before '}' token /usr/include/linux/coda.h:771: error: storage size of `vi' isn't known make: *** [src/mount.o] Error 1 Source of this Problem is different sigcontext.h for x86 and other architectures. On x86 it includes linux/compiler.h as side effect of including <asm/sigcontext.h>.
Created attachment 50921 [details, diff] patch to inlude <linux/compiler.h>
Created attachment 50922 [details] ebuild for amd64
The corrected ebuild works fine for me! Please add to portage.
the patch should not be needed!? asm/sigcontext.h is a wrapper for either asm-x86_64/sigcontext.h or asm-i386/sigcontext.h, depending on the ABI, but both inlcude <linux/compiler.h> nevertheless, i'm able to reproduce the error, and this patch seems to fix it.. included patch and marked ~amd64