Skip to contentSkip to conversation

Build failure

DISCUSSION Steinar H. Gunderson 1 participant 2 messages Jun 8, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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