Click to See Complete Forum and Search --> : Module compilation


Kerey
08-02-2001, 03:40 PM
After I recompile a kernel and try to build the modules, I get the following errors:

make xconfig
...
make dep
...
make clean
...
make bzImage
... (All the above work correctly)
make modules
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.3/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.3/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.3/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.3/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.3/drivers'
make -C atm modules
make[2]: Entering directory `/usr/src/linux-2.4.3/drivers/atm'
/usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.3/include/linux/modversions.h -g -c -o eni.o eni.c
In file included from /usr/src/linux-2.4.3/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.3/include/linux/list.h:6,
from /usr/src/linux-2.4.3/include/linux/module.h:12,
from eni.c:6:
/usr/src/linux-2.4.3/include/asm/processor.h:51: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/asm/processor.h:51: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.3/include/asm/processor.h:72: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:72: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:72: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:72: parse error before `65dda927'
/usr/src/linux-2.4.3/include/asm/processor.h:72: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/asm/processor.h:247: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:247: parse error before `7413793a' /usr/src/linux-2.4.3/include/asm/processor.h:247: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/asm/processor.h:251: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/asm/processor.h:430: missing white space after number `7e9'
/usr/src/linux-2.4.3/include/asm/processor.h:430: parse error before `7e9'
/usr/src/linux-2.4.3/include/asm/processor.h:430: `kernel_thread_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/asm/processor.h:430: warning: function declaration isn't a prototype
In file included from eni.c:6:
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: parse error before `62dada05'
/usr/src/linux-2.4.3/include/linux/module.h:173: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:173: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/linux/module.h:174: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:174: missing white space after number `7a9e845'
/usr/src/linux-2.4.3/include/linux/module.h:174: parse error before `7a9e845'
/usr/src/linux-2.4.3/include/linux/module.h:174: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:174: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/linux/module.h:175: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:175: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/linux/module.h:176: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:176: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:177: parse error before `6b99f7d8'
/usr/src/linux-2.4.3/include/linux/module.h:177: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:177: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/linux/module.h:186: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `get_pgd_fast':
In file included from /usr/src/linux-2.4.3/include/linux/highmem.h:5,
from /usr/src/linux-2.4.3/include/linux/vmalloc.h:7,
from /usr/src/linux-2.4.3/include/asm/io.h:110,
from /usr/src/linux-2.4.3/include/asm/pci.h:26,
from /usr/src/linux-2.4.3/include/linux/pci.h:560,
from eni.c:10:
/usr/src/linux-2.4.3/include/asm/pgalloc.h:74: `boot_cpu_data_R65dda927' undeclared (first use in this function)
/usr/src/linux-2.4.3/include/asm/pgalloc.h:74: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.3/include/asm/pgalloc.h:74: for each function it appears in.)/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux-2.4.3/include/asm/pgalloc.h:85: `boot_cpu_data_R65dda927' undeclared (first use in this function)
/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux-2.4.3/include/asm/pgalloc.h:117: `boot_cpu_data_R65dda927' undeclared (first use in this function)
/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux-2.4.3/include/asm/pgalloc.h:127: `boot_cpu_data_R65dda927' undeclared (first use in this function)
make[2]: *** [eni.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.3/drivers/atm'
make[1]: *** [_modsubdir_atm] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.3/drivers'
make: *** [_mod_drivers] Error 2

The kernel is fine, but the modules don't load. I am running Mandrake 8.0

pbharris
08-02-2001, 10:42 PM
hello,
did you run depmod -a?

and before that did you run make modules_install ?

Kerey
08-03-2001, 01:19 PM
That is not my problem. The modules don't compile, so make modules_install wouldn't work.

bdg1983
08-03-2001, 01:56 PM
All I can see is there was the errors in the ATM directory. Do you have ATM devices? If not, then say no to them and try again.

Kerey
08-04-2001, 10:30 PM
You were right that that ATM stuff shouldn't have been there, but I still get errors. Now I get this instead:

# make modules
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.3/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.3/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.3/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.3/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.3/drivers'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.3/drivers/block'
/usr/bin/kgcc -D__KERNEL__ -I/usr/src/linux-2.4.3/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -malign-functions=4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.3/include/linux/modversions.h -c -o floppy.o floppy.c
In file included from /usr/src/linux-2.4.3/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.3/include/linux/list.h:6,
from /usr/src/linux-2.4.3/include/linux/module.h:12,
from floppy.c:137:
/usr/src/linux-2.4.3/include/asm/processor.h:51: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/asm/processor.h:51: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.3/include/asm/processor.h:72: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:72: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:72: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:72: parse error before `65dda927'
/usr/src/linux-2.4.3/include/asm/processor.h:72: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/asm/processor.h:247: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/asm/processor.h:247: parse error before `7413793a' /usr/src/linux-2.4.3/include/asm/processor.h:247: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/asm/processor.h:251: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/asm/processor.h:430: missing white space after number `7e9'
/usr/src/linux-2.4.3/include/asm/processor.h:430: parse error before `7e9'
/usr/src/linux-2.4.3/include/asm/processor.h:430: `kernel_thread_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/asm/processor.h:430: warning: function declaration isn't a prototype
In file included from floppy.c:137:
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:173: parse error before `62dada05'
/usr/src/linux-2.4.3/include/linux/module.h:173: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:173: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/linux/module.h:174: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:174: missing white space after number `7a9e845'
/usr/src/linux-2.4.3/include/linux/module.h:174: parse error before `7a9e845'
/usr/src/linux-2.4.3/include/linux/module.h:174: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:174: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/linux/module.h:175: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:175: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/linux/module.h:176: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:176: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4.3/include/linux/module.h:177: parse error before `6b99f7d8'
/usr/src/linux-2.4.3/include/linux/module.h:177: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:177: warning: function declaration isn't a prototype
/usr/src/linux-2.4.3/include/linux/module.h:186: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.3/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `get_pgd_fast':
In file included from /usr/src/linux-2.4.3/include/linux/highmem.h:5,
from /usr/src/linux-2.4.3/include/linux/vmalloc.h:7,
from /usr/src/linux-2.4.3/include/asm/io.h:110,
from /usr/src/linux-2.4.3/include/linux/mc146818rtc.h:14,
from floppy.c:160:
/usr/src/linux-2.4.3/include/asm/pgalloc.h:74: `boot_cpu_data_R65dda927' undeclared (first use in this function)
/usr/src/linux-2.4.3/include/asm/pgalloc.h:74: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.3/include/asm/pgalloc.h:74: for each function it appears in.)/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux-2.4.3/include/asm/pgalloc.h:85: `boot_cpu_data_R65dda927' undeclared (first use in this function)
/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux-2.4.3/include/asm/pgalloc.h:117: `boot_cpu_data_R65dda927' undeclared (first use in this function)
/usr/src/linux-2.4.3/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux-2.4.3/include/asm/pgalloc.h:127: `boot_cpu_data_R65dda927' undeclared (first use in this function)
make[2]: *** [floppy.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.3/drivers/block'
make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.3/drivers'
make: *** [_mod_drivers] Error 2

Kerey
08-10-2001, 03:46 PM
I also recently tried to compile the drivers for my nVIDIA graphics card, but I had compiler errors for the kernel modules similar to the ones above. I had previously compiled the drivers without any problems. I am currently using the RPM version, so this is not a problem. I am just wondering why I am suddenly unable to compile kernel modules.

jlany
08-10-2001, 07:40 PM
I suspect that your system is lacking the minimum levels of software necessary to run the 2.4 kernels. You can check this by reading the 'Changes' text file in the kernel source tree - /usr/src/linux/Documentation/Changes. Your current version of 'modutils' is probably the culprit. :(

Kerey
08-10-2001, 10:18 PM
I already have a 2.4 kernel. I was able to compile modules before, but for some reason it stopped working and I get errors in the header files. I have tried reinstalling the source and the headers, but I still can't compile.

bdg1983
08-11-2001, 08:18 AM
Have you tried the latest modutils?

The last time I checked, the latest version was modutils-2.4.6-1. You may want to try upgrading to the latest and see if that fixes the compile problems.

jlany
08-11-2001, 10:00 AM
If you are certain you have at least the minimun software requirements to compile the kernel, make sure you do a ' make mrproper' before attempting to do so. This will clear the tree of any stale prior builds. Also, I note you use ' xconfig' to build. Have you made sure to turn off X security with 'xhost +localhost' first?