Martin wrote:
Date: Fri, 20 Aug 2004 11:27:18 +0200
From: Martin Hamant mh@accelance.fr
To: centos@caosity.org Organization: Accelance MSP. Subject: [Centos] [kernel-2.4.21-15] rebuild problem
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 ?
Before you build packages on CentOS 3.1, make sure you have installed all the relevant packages from the addons directory.
ftp://ftp.pasteur.fr/pub/computing/linux/cAos/centos-3/3.1/addons/i386/RPMS
Kevin Wood.
Thanks for help !
-- Martin