Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
Compiling p3nfs on my current system fails with following error: config.status: creating doc/p3nfsd.1 config.status: creating nfsd/config.h cd nfsd; make all make[1]: Entering directory `/var/tmp/portage/p3nfs-5.18/work/p3nfs-5.18/nfsd' i686-pc-linux-gnu-gcc -O2 -Wall -I. -c -o mp_main.o mp_main.c i686-pc-linux-gnu-gcc -O2 -Wall -I. -c -o mp_mount.o mp_mount.c In file included from /usr/include/linux/nfs.h:11, from nfs_prot.h:7, from mp_mount.c:64: /usr/include/linux/string.h:16: error: parse error before "__extension__" /usr/include/linux/string.h:16: error: parse error before '&&' token /usr/include/linux/string.h:17: error: parse error before "__extension__" /usr/include/linux/string.h:17: error: parse error before '&&' token /usr/include/linux/string.h:18: error: parse error before "__extension__" /usr/include/linux/string.h:18: error: parse error before '&&' token /usr/include/linux/string.h:19: error: parse error before "__extension__" /usr/include/linux/string.h:19: error: parse error before '&&' token In file included from /usr/include/linux/string.h:24, from /usr/include/linux/nfs.h:11, from nfs_prot.h:7, from mp_mount.c:64: /usr/include/asm/string.h:103: error: parse error before "__extension__" /usr/include/asm/string.h:103: error: parse error before '&&' token /usr/include/asm/string.h:103: error: parse error before "cs" /usr/include/asm/string.h:103: error: `__s2' undeclared here (not in a function) /usr/include/asm/string.h:103: error: parse error before "if" /usr/include/asm/string.h:103: error: non-static declaration of '__result' follows static declaration /usr/include/asm/string.h:103: error: previous definition of '__result' was here /usr/include/asm/string.h:103: error: parse error before '}' token /usr/include/asm/string.h:103: error: static declaration of '__result' follows non-static declaration /usr/include/asm/string.h:103: error: previous declaration of '__result' was here /usr/include/asm/string.h:103: error: static declaration of '__result' follows non-static declaration /usr/include/asm/string.h:103: error: previous declaration of '__result' was here /usr/include/asm/string.h:103: error: `__s1' undeclared here (not in a function) /usr/include/asm/string.h:103: error: parse error before "ct" /usr/include/asm/string.h:103: error: parse error before "if" /usr/include/asm/string.h:103: error: non-static declaration of '__result' follows static declaration /usr/include/asm/string.h:103: error: previous definition of '__result' was here /usr/include/asm/string.h:103: error: parse error before '}' token /usr/include/asm/string.h:107: error: parse error before "volatile" /usr/include/asm/string.h:124: error: parse error before "__extension__" /usr/include/asm/string.h:124: error: parse error before '&&' token /usr/include/asm/string.h:124: error: static declaration of '__result' follows non-static declaration /usr/include/asm/string.h:103: error: previous declaration of '__result' was here /usr/include/asm/string.h:124: error: static declaration of '__result' follows non-static declaration /usr/include/asm/string.h:103: error: previous declaration of '__result' was here /usr/include/asm/string.h:124: error: parse error before "cs" /usr/include/asm/string.h:124: error: parse error before "if" /usr/include/asm/string.h:124: error: non-static declaration of '__result' follows static declaration /usr/include/asm/string.h:124: error: previous definition of '__result' was here /usr/include/asm/string.h:124: error: parse error before '}' token /usr/include/asm/string.h:124: error: static declaration of '__result' follows non-static declaration /usr/include/asm/string.h:124: error: previous declaration of '__result' was here /usr/include/asm/string.h:124: error: static declaration of '__result' follows non-static declaration /usr/include/asm/string.h:124: error: previous declaration of '__result' was here /usr/include/asm/string.h:124: error: parse error before "ct" /usr/include/asm/string.h:124: error: parse error before "if" /usr/include/asm/string.h:124: error: non-static declaration of '__result' follows static declaration /usr/include/asm/string.h:124: error: previous definition of '__result' was here /usr/include/asm/string.h:124: error: parse error before '}' token /usr/include/asm/string.h:128: error: parse error before "volatile" /usr/include/asm/string.h:147: error: parse error before "__extension__" /usr/include/asm/string.h:150: error: conflicting types for '__res' /usr/include/asm/string.h:106: error: previous declaration of '__res' was here /usr/include/asm/string.h:151: error: parse error before "volatile" mp_mount.c: In function `mount_and_run': mp_mount.c:601: warning: dereferencing type-punned pointer will break strict-aliasing rules mp_mount.c:602: warning: dereferencing type-punned pointer will break strict-aliasing rules mp_mount.c:609: warning: dereferencing type-punned pointer will break strict-aliasing rules mp_mount.c:629: warning: dereferencing type-punned pointer will break strict-aliasing rules mp_mount.c: At top level: /usr/include/asm/string.h:106: error: register name not specified for '__res' /usr/include/asm/string.h:150: error: register name not specified for '__res' make[1]: *** [mp_mount.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: Leaving directory `/var/tmp/portage/p3nfs-5.18/work/p3nfs-5.18/nfsd' make: *** [all] Error 2 !!! ERROR: app-pda/p3nfs-5.18 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! emake failed !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. Compile p3nfs 2. 3. You can fix the bug by apply this patch: --- mp_mount.c.old 2005-07-08 18:30:12.000000000 +0200 +++ mp_mount.c 2005-07-08 18:30:21.000000000 +0200 @@ -60,7 +60,6 @@ #include <rpc/rpc.h> #ifdef linux #define _LINUX_SUNRPC_MSGPROT_H_ -#define __KERNEL__ /* define nfs_fh for nfs_mount_data */ #include "nfs_prot.h" #undef __KERNEL__ #else
*** This bug has been marked as a duplicate of 89537 ***