LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-23-2003, 12:19 PM   #1
liguorir
Member
 
Registered: May 2003
Posts: 256

Rep: Reputation: 30
'make modules' error


I get the following error after 'make modules'

make[2]: *** [dummy.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers'
make: *** [_mod_drivers] Error 2


Why?

Thanks,

Robert
 
Old 06-23-2003, 03:14 PM   #2
0x4B
Member
 
Registered: May 2003
Location: Nashville TN, USA
Distribution: Debian (I'm unstable)
Posts: 117

Rep: Reputation: 15
the error is probably higher up, there should be a more descriptive error message about dummy.o (the others may be failing because of the dummy.o failure).
 
Old 06-24-2003, 02:03 PM   #3
liguorir
Member
 
Registered: May 2003
Posts: 256

Original Poster
Rep: Reputation: 30
'make modules' error

Here is the entire output I get when I do 'make modules'. Can anyone help?

make -r -f tmp_include_depends all
make[1]: Entering directory `/usr/src/linux-2.4.20-18.9'
make[1]: Circular /usr/src/linux-2.4.20-18.9/include/asm/smplock.h <- /usr/src/linux-2.4.20-18.9/include/linux/interrupt.h dependency dropped.
make[1]: Circular /usr/src/linux-2.4.20-18.9/include/linux/netfilter_ipv4/ip_conntrack_helper.h <- /usr/src/linux-2.4.20-18.9/include/linux/netfilter_ipv4/ip_conntrack.h dependency dropped.
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-18.9'
make -C kernel CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/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.20-18.9/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-18.9/kernel'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-18.9/kernel'
make -C drivers CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/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.20-18.9/include/linux/modversions.h" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers'
make -C addon modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/addon'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/addon'
make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/block'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/block'
make -C cdrom modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/cdrom'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/cdrom'
make -C char modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/char'
make -C drm modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/char/drm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/char/drm'
make -C pcmcia modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/char/pcmcia'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/char/pcmcia'
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/char'
make -C hotplug modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/hotplug'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/hotplug'
make -C ide modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/ide'
make -C arm modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/ide/arm'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/ide/arm'
make -C legacy modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/ide/legacy'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/ide/legacy'
make -C pci modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/ide/pci'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/ide/pci'
make -C ppc modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/ide/ppc'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/ide/ppc'
make -C raid modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/ide/raid'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/ide/raid'
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/ide'
make -C media modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/media'
make -C radio modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/media/radio'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/media/radio'
make -C video modules
make[3]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/media/video'
make[3]: Nothing to be done for `modules'.
make[3]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/media/video'
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/media'
make -C misc modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/misc'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/misc'
make -C net modules
make[2]: Entering directory `/usr/src/linux-2.4.20-18.9/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/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.20-18.9/include/linux/modversions.h -nostdinc -iwithprefix include -DKBUILD_BASENAME=dummy -c -o dummy.o dummy.c
In file included from /usr/src/linux-2.4.20-18.9/include/linux/spinlock.h:56,
from /usr/src/linux-2.4.20-18.9/include/linux/module.h:11,
from dummy.c:34:
/usr/src/linux-2.4.20-18.9/include/asm/spinlock.h:9: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/asm/spinlock.h:9: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/asm/spinlock.h:10: `printk_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/asm/spinlock.h:10: warning: function declaration isn't a prototype
In file included from /usr/src/linux-2.4.20-18.9/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20-18.9/include/linux/list.h:6,
from /usr/src/linux-2.4.20-18.9/include/linux/module.h:12,
from dummy.c:34:
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:60: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:60: field `loops_per_jiffy_R_ver_str' declared as a function
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:83: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:83: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:83: warning: function declaration isn't a prototype
In file included from /usr/src/linux-2.4.20-18.9/include/linux/prefetch.h:13,
from /usr/src/linux-2.4.20-18.9/include/linux/list.h:6,
from /usr/src/linux-2.4.20-18.9/include/linux/module.h:12,
from dummy.c:34:
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:268:1: warning: "EISA_bus" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/modversions.h:133,
from <command line>:1:
/usr/src/linux-2.4.20-18.9/include/linux/modules/i386_ksyms.ver:101:1: warning: this is the location of the previous definition
/usr/src/linux-2.4.20-18.9/include/asm/processor.h:270: warning: parameter names (without types) in function declaration
In file included from dummy.c:34:
/usr/src/linux-2.4.20-18.9/include/linux/module.h:183: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/module.h:183: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/module.h:183: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/module.h:183: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-18.9/include/linux/module.h:184: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/module.h:184: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/module.h:184: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/module.h:184: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-18.9/include/linux/module.h:185: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/module.h:185: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-18.9/include/linux/module.h:186: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/module.h:186: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.20-18.9/include/linux/module.h:187: invalid suffix on integer constant
/usr/src/linux-2.4.20-18.9/include/linux/module.h:187: parse error before numeric constant
/usr/src/linux-2.4.20-18.9/include/linux/module.h:187: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/module.h:187: warning: function declaration isn't a prototype
/usr/src/linux-2.4.20-18.9/include/linux/module.h:196: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.20-18.9/include/linux/module.h:196: warning: parameter names (without types) in function declaration
make[2]: *** [dummy.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-18.9/drivers'
make: *** [_mod_drivers] Error 2


Thanks,

Robert Liguori
 
Old 06-26-2003, 12:35 AM   #4
liguorir
Member
 
Registered: May 2003
Posts: 256

Original Poster
Rep: Reputation: 30
'make modules' error.

Could someone please help with the above error.

Thanks,

Robert Liguori
 
Old 06-26-2003, 01:18 AM   #5
Half_Elf
Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 45
are you using Slackware and a Slackware Kernel? There's always something buggy in Slackware's kernel about make modules /make modules_install.
If not, your kernel tree is probably corrupt.

Just get another proper one on www.kernel.org
uncompress it somewhere then move it to /usr/src/ and make sure it will not replace your dfect kernel. If you want to save your actual kernel config, just copy .config that is in the first directory of your kernel tree (/usr/src/linux if you did the simlink you should).

Oh and I just looked closer to that error msg. You don't have a link between /usr/src/linux and /usr/src/linux-2.4.20-18.9, don't you? Just be sure to create a symlink called linux in /usr/src leading to your kernel tree.
Something like ln -s /usr/src/linux-2.4.20-18.9 /usr/src/linux. I saw some bugs about this missing links, this is not suppose to cause problem, but...

Last edited by Half_Elf; 06-26-2003 at 01:21 AM.
 
Old 06-26-2003, 05:36 PM   #6
liguorir
Member
 
Registered: May 2003
Posts: 256

Original Poster
Rep: Reputation: 30
Still no dice.

I'm using redhat, and there was a link, but with linux-2.4. I did the following:

ln -sf linux-2.4 linux

and rebuilt.

I received the same error above.

Any ideas?

Does redhat use the kernels from www.kernel.org, or do they maintain there own kernels?

Thanks,

Robert Liguori
 
Old 06-26-2003, 06:34 PM   #7
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 55
Every distor uses kernel for kernel.org, they just add or strip some spice. The problem is we have no idea what system you are running (hardware wise), and the kernel compilation issues are based on case from case scenario. One of the modules you are trying to compile either isn't designed for your system or it depends on one or more kernel configuration optiions to be present but they aren't present in your case. I'd suggest go over the configuration, and make sure that you pick the stuff that is needed for your system to run in its full potential.

Last edited by neo77777; 06-26-2003 at 06:35 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
make modules complie error..... hkl8324 Debian 1 06-14-2005 06:13 PM
Kernel 2.6 make modules error on RH9 t0mmy Linux - Newbie 3 04-08-2005 11:26 PM
Error while 'make modules' -- Error in processor.h thomasmathew Linux - General 3 04-29-2004 03:38 AM
error with make modules - pls help-output attached Dineth Linux - Software 7 12-29-2003 03:09 AM
updating to kernel 2.4.22 error 'make modules' concerning aic7 Mestax Linux - Newbie 1 09-23-2003 03:51 PM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration