2007-06-08 10:25:03

by Steinar H. Gunderson

[permalink] [raw]
Subject: Build failure

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 */
--
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


2007-06-08 10:47:49

by Steinar H. Gunderson

[permalink] [raw]
Subject: Re: Build failure

On Fri, Jun 08, 2007 at 12:24:57PM +0200, Steinar H. Gunderson wrote:
> 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 */
--
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