Skip to contentSkip to conversation

Can't compile without NFS

2.5.5 ERROR Jean Tourrilhes 1 participant 2 messages Feb 26, 2002

lore
Share & tools
lore
#0 lore raw

system :
-------------------
PPro 150 SMP
Kernel 2.5.5
Debian 2.2
-------------------

.config :
---------------
# CONFIG_NFS_FS is not set
# CONFIG_NFS_V3 is not set
# CONFIG_ROOT_NFS is not set
# CONFIG_NFSD is not set
# CONFIG_NFSD_V3 is not set
# CONFIG_SUNRPC is not set
# CONFIG_LOCKD is not set
---------------

make install :
----------------
make[2]: Entering directory `/usr/src/kernel-source-2.5/fs'
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=filesystems -DEXPORT_SYMTAB -c filesystems.c
filesystems.c: In function `sys_nfsservctl':
filesystems.c:30: dereferencing pointer to incomplete type filesystems.c:30: dereferencing pointer to incomplete type filesystems.c:30: warning: value computed is not used filesystems.c:32: dereferencing pointer to incomplete type filesystems.c:33: dereferencing pointer to incomplete type filesystems.c:33: dereferencing pointer to incomplete type filesystems.c:33: warning: value computed is not used make[2]: *** [filesystems.o] Error 1
make[2]: Leaving directory `/usr/src/kernel-source-2.5/fs' make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/kernel-source-2.5/fs'
make: *** [_dir_fs] Error 2
----------------

Of course, enabling NFSD fix this problem...

Jean

#1 lore raw
Quoted 7 lines · Neil Brown
Quoted 6 lines · On Tuesday February 26, [email protected] wrote:

make[2]: Entering directory `/usr/src/kernel-source-2.5/fs'
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=filesystems -DEXPORT_SYMTAB -c filesystems.c
filesystems.c: In function `sys_nfsservctl':
filesystems.c:30: dereferencing pointer to incomplete type filesystems.c:30: dereferencing pointer to incomplete type filesystems.c:30: warning: value computed is not used

Quoted 5 lines

....

Yeh... sorry 'bout that.

Patch sent to Linus, but didn't make it into 2.5.6-pre1.

That's ok, it was trivial to workaround.

Jean