 |
 |
 |
 |
| Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum. |

27th March 2004, 12:47 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 9

|
|
|
Lots of errors compiling modules!!
I have a Toshiba TE2100 laptop, I installed Fedora and updated the kernel to linux-2.4.22-1.2174.nptl
I attempted to make a custom kernel compliing etc...
However when I issue make modules, I get errors in nearly ALL the modules it attempts to compile.
I get errors in ACPI, Filesystems, Network devices, Sound, IrDA, Serial, Parrallel Port, CPU specific modules, and more I cant remember. Basically a lot of things are complied into the kernel.
Each time it errors on compiling a module I have to add it into the kernel config instead of as a module.
Any idea what could be wrong? I even got this when I had RedHat 9 installed and attempted to compile a kernel.
cheers,
jabz
Last edited by jabz; 27th March 2004 at 12:50 PM.
|

28th March 2004, 05:30 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909

|
|
Silly question: you do have the corresponding kernel source installed?
Code:
rpm -q kernel-source
What kind of errors? Maybe post a sample.
|

28th March 2004, 07:32 PM
|
 |
Registered User
|
|
Join Date: Mar 2004
Location: Kalamazoo, Michigan
Age: 30
Posts: 410

|
|
|
does everything go well when you "make menuconfig"? what about make install?
a sample would help, so we could see what the errors say.
__________________
Things do not change; we change.
HDT
"Do I understand your question, man, is it hopeless and forlorn?" Bob Dylan
I disapprove of what you say, but I will defend to the death your right to say it.
-- The Friends of Voltaire, 1906
My NcpMount script for Netware servers
http://forums.fedoraforum.org/forum/showpost.php?p=544473&postcount=8
Thanks to: Brunson & Ibbo
|

29th March 2004, 01:28 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 9

|
|
|
I have since reloaded Fedora from scratch, as I found a lot of thing broke in my upgrade maybe due to the custom stuff, i.e. samba 3 and active directory auth, evolution 1.4.6 and connector etc..
I will grab the latest kernel and source tree, and try again... just after i figure out how to get evolution 1.4.6 and connector working.
cheers,
Jabz
|

6th April 2004, 03:44 PM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 9

|
|
|
Ok I've installed the latest kernel and kernel source via Yum. kernel-source-2.4.22-1.2174.nptl
i have run "make menuconfig" which worked fine and selected my configuration etc..
When i try and run "make module" the following is the errors I get....
[root@darkstar linux-2.4]# make modules
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.22-1.2174.nptl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl'
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h" MAKING_MODULES=1 modules
<SNIP>
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:206: (Each undeclared identifier is reported only once
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:206: for each function it appears in.)
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:206: invalid lvalue in assignment
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h: In function `clear_in_cr4':
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:216: `dad5638d' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:216: invalid lvalue in assignment
In file included from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/list.h:6,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:12,
from ac.c:27:
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:257:1: warning: "EISA_bus" redefined
In file included from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h:141,
from <command line>:1:
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/modules/i386_ksyms.ver:221:1: warning: this is the location of the previous definition
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h: At top level:
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:259: warning: parameter names (without types) in function declaration
In file included from ac.c:27:
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:190: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:190: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:190: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:190: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:191: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:191: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:191: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:191: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:192: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:192: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:193: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:193: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:194: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:194: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:194: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:194: warning: function declaration isn't a prototype
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:203: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:203: warning: parameter names (without types) in function declaration
In file included from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/fs.h:19,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/capability.h:17,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/binfmts.h:4,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/sched.h:10,
from /usr/src/linux-2.4.22-1.2174.nptl/include/asm/uaccess.h:8,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/compatmac.h:137,
from ac.c:30:
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/dcache.h: In function `dget':
/usr/src/linux-2.4.22-1.2174.nptl/include/linux/dcache.h:254: warning: implicit declaration of function `__out_of_line_bug_R8b0fd3c5'
ac.c: In function `acpi_ac_read_state':
ac.c:117: warning: implicit declaration of function `sprintf_R1d26aa98'
ac.c: In function `acpi_ac_add':
ac.c:268: warning: implicit declaration of function `printk_R1b7d4074'
make[2]: *** [ac.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers/acpi'
make[1]: *** [_modsubdir_acpi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers'
make: *** [_mod_drivers] Error 2
[root@darkstar linux-2.4]#
Now if I deselect the ACPI module, save config and rerun "make modules"
I get
[root@darkstar linux-2.4]# make modules
scripts/split-include include/linux/autoconf.h include/config
make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.22-1.2174.nptl'
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl'
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.22-1.2174.nptl/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers'
make -C addon modules
make[2]: Entering directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers/addon'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers/addon'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers/block'
gcc32 -D__KERNEL__ -I/usr/src/linux-2.4.22-1.2174.nptl/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=pentium4 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.22-1.2174.nptl/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=floppy -c -o floppy.o floppy.c
In file included from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/list.h:6,
from /usr/src/linux-2.4.22-1.2174.nptl/include/linux/module.h:12,
from floppy.c:148:
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:83: invalid suffix on integer constant
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:83: syntax error before numeric constant
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/processor.h:83: warning: function declaration isn't a prototype
<SNIP>
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/pgalloc.h:123: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux-2.4.22-1.2174.nptl/include/asm/pgalloc.h:133: `boot_cpu_data_R4a8db2ac' undeclared (first use in this function)
make[2]: *** [floppy.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers/block'
make[1]: *** [_modsubdir_block] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2174.nptl/drivers'
make: *** [_mod_drivers] Error 2
[root@darkstar linux-2.4]#
Basically this happens for every module I try and compile.
I have no idea whats wrong...
Any help much appreciated.
cheers,
Jaidev
|

11th April 2004, 01:11 AM
|
|
Registered User
|
|
Join Date: Mar 2004
Posts: 9

|
|
|
I want to compile hibernation support into the kernel but can't cause I wont be able to compile the modules.
|

18th April 2004, 05:31 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 2

|
|
|
me too
I am trying with kernel-2.4.22-1.2179.nptl, and
all the module, and bzImage compilation is broken. Just trying to use a config loaded from
/boot/config-2.4.22-1.2179.nptl, before I start trying custom stuff. Does anyone know if fedora has changed the steps required to compile a kernel?
My steps are:
make xconfig :
1. Load previous config from /boot/....
2. save and exit
make dep
make bzImage (fails)
make modules (fails)
|

19th April 2004, 08:42 PM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 2

|
|
|
follow up
I think in my steps, before make xconfig, I need to do a "make clean". That seems to solve my problem.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 07:02 (Sunday, 26-05-2013)
|
|
 |
 |
 |
 |
|
|