[DRBD-user] DRBD make errors

Lars Ellenberg Lars.Ellenberg at linbit.com
Tue Jun 15 17:23:58 CEST 2004


/ 2004-06-15 12:16:31 -0700
\ Ernest Byaruhanga:
> Hello DRBD users,
> 
> I am trying to Install DRBD 0.6.12 on RedHat Enterprise AS 3.0 
> (kernel2.4.21-4.ELsmp) I get the following errors while doing a 
> "make clean all"
> 
> <snip>
> 
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:972: invalid suffix on integer 
> constant
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:972: syntax error before numeric 
> constant
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:972: warning: function 
> declaration isn't a prototype
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:972: field `unlockfs_R_ver_str' 
> declared as a function
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1132: invalid suffix on integer 
> constant
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1132: syntax error before 
> numeric constant
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1132: `sys_close_R_ver_str' 
> declared as function returning a function
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1132: warning: function 
> declaration isn't a prototype
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1138: invalid suffix on integer 
> constant
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1138: syntax error before 
> numeric constant
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1138: `getname_R_ver_str' 
> declared as function returning a function
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1138: warning: function 
> declaration isn't a prototype
> /usr/src/linux-2.4.21-4.EL/include/linux/fs.h:1148: 
> `unregister_blkdev_R_ver_str' declared as function returning a function
> 
> <snip>
> 
> make[2]: *** [drbd_fs.o] Error 1
> make[2]: Leaving directory `/usr/src/drbd-0.6.12/drbd'
> make[1]: *** [_mod_/usr/src/drbd-0.6.12/drbd] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.4.21-4.EL'
> make: *** [kbuild] Error 2
> 
> what am i doing wrong? At first i got the error about loadabe modules not 
> being enabled in th ekernel, but i checked and they are enabled. I then 
> instead enabled the "Network Block Device" in th ekernel.

you are sure that you _did_ read INSTALL ??

this is a (educated) guess only.
include/linux/fs.h is a standard kernel header.
it is very unlikely that such a file is corrupt...
you won't have a working kernel :)

maybe for some reason RH thinks it is cool to have the standard compiler
different from the one you need to use for kernel compiles.  use the
right compiler.

	lge



More information about the drbd-user mailing list