Anyone compiling kernels?

Jeff Mings jeffm at lava.net
Wed Oct 24 03:24:40 PDT 2001


Hi all,

    I've been trying to get the leanest kernel I can, using Mandrake 8.1 
and RH 7.1 with two different machines.  Unfortunately, the modules 
compilation has been bombing!  I've been trying to figure this one out 
for several days now - I can probably recite the kernel how-to from 
memory  ;) .
Warren said that Mandrake 8.1 compiles just fine for him, so it CAN be 
done.  Here's the routine I use:

-cd to /usr/src/linux (or /usr/src/linux-2.4.2  - I've tried the actual 
and symlink names)
-make menuconfig (or make xconfig)
-make dep
-make clean
-make bzImage (too big for make zImage - everything always works up to 
this point)
-make modules   - problems start here.
No matter which kernel options I select, I always get goofy errors like :

...[lengthy listing omitted]...

make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net' gcc -D__KERNEL__
-I/usr/src/linux-2.4.2/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
-fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2
-march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.2/include/linux/modversions.h
  -DEXPORT_SYMTAB -c ppp_async.c In file included from /usr/src/linux-2.4.2/include/linux/spinlock.h:35, 
                 from /usr/src/linux-2.4.2/include/linux/module.h:11,   
              from ppp_async.c:23: /usr/src/linux-2.4.2/include/asm/spinlock.h:8:
nondigits in number and not hexadecimal


...[repeat this kind of stuff many times - don't want to bore you]...

 /usr/src/linux-2.4.2/include/linux/module.h:176:
`inter_module_get_request_R_ver_str' declared as function returning a function 
/usr/src/linux-2.4.2/include/linux/module.h:176: warning: parameter names
(without types) in function declaration /usr/src/linux-2.4.2/include/linux/module.h:177:
nondigits in number and not hexadecimal /usr/src/linux-2.4.2/include/linux/module.h:177:
nondigits in number and not hexadecimal /usr/src/linux-2.4.2/include/linux/module.h:177:
nondigits in number and not hexadecimal /usr/src/linux-2.4.2/include/linux/module.h:177:
parse error before `6b99f7d8' /usr/src/linux-2.4.2/include/linux/module.h:177:
`inter_module_put_R_ver_str' declared as function returning a function /usr/src/linux-2.4.2/include/linux/module.h:177:
warning: function declaration isn't a prototype /usr/src/linux-2.4.2/include/linux/module.h:186:
`try_inc_mod_count_R_ver_str' declared as function returning a function /usr/src/linux-2.4.2/include/linux/module.h:186:
warning: parameter names (without types) in function declaration make[2]:
*** [ppp_async.o] Error 1 

make[2]: Leaving directory `/usr/src/linux-2.4.2/drivers/net' 

make[1]: *** [_modsubdir_net] Error 2 

make[1]: Leaving directory `/usr/src/linux-2.4.2/drivers' 

make: *** [_mod_drivers] Error 2 

[root at lapdell linux-2.4.2]#


    I MUST be missing something obvious.  I should also state that I 
tried one of the newer Mandrake cooker kernels that Warren suggested and 
received the same kind of error.  The .config file looks fine and I have 
all of the necessary kernel RPMs loaded.
    Has anyone else run into this?  I am really stumped on this one.

Thanks in advance,
-Jeff Mings



More information about the LUAU mailing list