Build failure
Subsystems (2)
Hi,
Today nfs-utils stopped building for me, probably due to a libc update or something. The failed part was, from support/include/nfs/nfs.h:
#include <linux/version.h> #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,70) # define __nfsd_dev_t __kernel_old_dev_t #else # define __nfsd_dev_t __kernel_dev_t #endif
The failure from gcc was:
gcc -DHAVE_CONFIG_H -I. -I../../support/include -I../../support/include -D_GNU_SOURCE -Wall -pipe -g -O2 -Wall -MT client.o -MD -MP -MF .deps/client.Tpo -c -o client.o client.c In file included from ../../support/include/nfslib.h:22,
from client.c:22:
../../support/include/nfs/nfs.h:73:24: error: operator '>' has no left operand
In file included from ../../support/include/nfslib.h:22,
from client.c:22: ../../support/include/nfs/nfs.h:83: error: expected specifier-qualifier-list before '__kernel_dev_t' ../../support/include/nfs/nfs.h:104: error: expected specifier-qualifier-list before '__kernel_dev_t'
Is userspace allowed to assume that a symbol such as LINUX_VERSION_CODE exists at all?
/* Steinar */
Signature · 10 lines
Homepage: http://www.sesse.net/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 2 lines · Steinar H. Gunderson
Today nfs-utils stopped building for me, probably due to a libc update or something. The failed part was, from
support/include/nfs/nfs.h:
Nevermind; I upgraded my build environment, and the problem went away. I guess something was broken on my side.
/* Steinar */
Signature · 10 lines
Homepage: http://www.sesse.net/ ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs