[Centos] [kernel-2.4.21-15] rebuild problem

Martin Hamant

mh at accelance.fr
Fri Aug 20 09:27:18 UTC 2004


Hello,

Sorry if this mail would have to be post in the development ML, but my
problem is just at using centOS..

 I'm trying to recompile the centOS-3.1 kernel.
I done this:

# cd /usr/src/linux-2.4
# make menuconfig
< i select my CPU type >
< Exit and save >
# make dep
# make modules
(...no errors ...)
gcc -D__KERNEL__ -I/usr/src/linux-2.4.21-15.0.4.EL/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-Wno-unused -fomit-frame-poi nter -pipe -freorder-blocks
-mpreferred-stack-boundary=2 -march=pentium4 -DMODULE -DMODVERSIONS
-include /usr/src/linux-2.4.21-15.0.4.EL/include/linux/modversions.h 
-nostdinc -iwithprefix include -DKBUILD_BASENAME=module  -c -o module.o
module.c In file included from
/usr/src/linux-2.4.21-15.0.4.EL/include/linux/if.h:23,                
from cipe.h:21,                 from module.c:15:
/usr/src/linux-2.4.21-15.0.4.EL/include/linux/socket.h:264: invalid
suffix on integer
constant/usr/src/linux-2.4.21-15.0.4.EL/include/linux/socket.h:264:
syntax error before numeric
constant/usr/src/linux-2.4.21-15.0.4.EL/include/linux/socket.h:264:
`memcpy_fromiovec_R_ver_str' declared as function returning a
function/usr/src/linux-2.4.21-15.0.4.EL/include/linux/socket.h:264:
warning: function declaration isn't a
prototype/usr/src/linux-2.4.21-15.0.4.EL/include/linux/socket.h:273:
invalid suffix on integer
constant/usr/src/linux-2.4.21-15.0.4.EL/include/linux/socket.h:273:
syntax error before numeric constant

(...)

/usr/src/linux-2.4.21-15.0.4.EL/include/linux/skbuff.h: In function
`kunmap_skb_frag':/usr/src/linux-2.4.21-15.0.4.EL/include/linux/skbuff.
h:1152: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1 make[3]: Leaving directory
`/usr/src/linux-2.4.21-15.0.4.EL/drivers/addon/cipe' make[2]: ***
[_modsubdir_cipe] Error 2 make[2]: Leaving directory
`/usr/src/linux-2.4.21-15.0.4.EL/drivers/addon' make[1]: ***
[_modsubdir_addon] Error 2 make[1]: Leaving directory
`/usr/src/linux-2.4.21-15.0.4.EL/drivers' make: *** [_mod_drivers] Error
2


Is anyone ever tried that ?

Thanks for help !

-- 
Martin



More information about the CentOS mailing list