[ale] Can't compile RedHat's kernel.

Mike Millson mgm at atsga.com
Mon Jan 6 13:08:39 EST 2003


Michael,

I do recompile my RH kernel. I'm using 2.4.18-18.7 right now. Here's what I
do:

1) make menuconfig
2) make dep
3) make clean
4) edit /usr/src/linux-2.4/Makefile and modify EXTRAVERSION
5) make bzImage
6) make modules
7) make modules_install
8) make install
9) modify /etc/lilo.conf or equivalent

If you use make oldconfig it is supposed to set up a config file to contain
default settings that shipped w/ the RH kernel, but I haven't used it.

I don't compile in anything for usb, so this may not be of much help.

Mike

-----Original Message-----
From: ale-admin at ale.org [mailto:ale-admin at ale.org]On Behalf Of Michael
To: ale at ale.org
D. Hirsch
Sent: Monday, January 06, 2003 12:31 PM
To: ale at ale.org
Subject: [ale] Can't compile RedHat's kernel.


Anyone compiled a RedHat kernel, lately.  I remember there was a time when
you needed a special compiler, but I thought those days were over.

I'm trying to add the usbdnet to my kernel, but when that didn't work I've
gone back to the RedHat sources and did make dep && make bzImage && make
modules.  In the middle of make bzImage I get crap like:


make[3]: Entering directory `/usr/src/linux-2.4.18-14/drivers/addon/cipe'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-14/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.18-14/include/linux/modversions.h  -nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include -DKBUILD_BASENAME=module
-c -o module.o module.c
In file included from /usr/src/linux-2.4.18-14/include/linux/if.h:23,
                 from cipe.h:21,
                 from module.c:15:
/usr/src/linux-2.4.18-14/include/linux/socket.h:249: invalid suffix on
integer constant
/usr/src/linux-2.4.18-14/include/linux/socket.h:249: parse error before
numeric constant
/usr/src/linux-2.4.18-14/include/linux/socket.h:249:
`memcpy_fromiovec_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/socket.h:249: warning: function
declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/socket.h:258: invalid suffix on
integer constant
/usr/src/linux-2.4.18-14/include/linux/socket.h:258: parse error before
numeric constant

So I can't compile RH's kernel with RH's config file.  WTF?  I must be
missing something easy.

Michael
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list