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

Michael H. Warfield mhw at wittsend.com
Mon Jan 6 15:52:52 EST 2003


On Mon, Jan 06, 2003 at 12:30:31PM -0500, Michael D. Hirsch wrote:
> 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:

	I just recently ran into this and got it resolved in a discussion
up on the RedHat list.  Basically, I could not compile ANY RedHat custom
kernels after 2.4.18-5.  Turns out the problem has been a rather bad
$#@!-up at RedHat and the sources were not "mrproper" (AKA dist-clean)
before packaging in the source rpm.

	The solution was to run "make mrproper" immediately after installing
the source rpm and prior to doing ANYTHING else with those sources (before
copying the config file or before running menuconfig, etc, etc...)  There
seems to be an additional gotcha that they managed to bust "make xconfig"
so, after running "make mrproper", you'll need to either manually copy
the correct configuration file in place or run "make menuconfig" and
avoid "make xconfig".

> 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

	This is exactly the problem that's created by them not having
run "make mrproper" before packaging the source.  Known problem.

> 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

	Mike
-- 
 Michael H. Warfield    |  (770) 985-6132   |  mhw at WittsEnd.com
  /\/\|=mhw=|\/\/       |  (678) 463-0932   |  http://www.wittsend.com/mhw/
  NIC whois:  MHW9      |  An optimist believes we live in the best of all
 PGP Key: 0xDF1DD471    |  possible worlds.  A pessimist is sure of it!

 PGP signature




More information about the Ale mailing list