LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-18-2001, 08:39 AM   #1
pibevalera
LQ Newbie
 
Registered: May 2001
Posts: 6

Rep: Reputation: 0
Unhappy


hi, i need some help, i recompiled the kernel and the modules didn't work, specially 3c59x. i tryed to put it into the kernel and it doesn't work too.
 
Old 05-18-2001, 12:33 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Question

Did you get errors during the compile? What commands did you use to rebuild the kernel? Did you do everything for the compile (including 'make modules' and 'make modules_install')?

If you did get errors what were they?

cheers.

Jamie...
 
Old 05-21-2001, 11:45 AM   #3
pibevalera
LQ Newbie
 
Registered: May 2001
Posts: 6

Original Poster
Rep: Reputation: 0
first, thanks for answer me.
to rebuid the kernel i used make dep...ok, make clean...ok and make modules...fail, and the error is:

make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wno-unused -pipe -mpreferred-stack-boundary=2 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4/include/linux/modversions.h -c -o 3c59x.o 3c59x.c
In file included from 3c59x.c:195:
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: parse error before `62dada05'
/usr/src/linux-2.4/include/linux/module.h:173: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:173: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:174: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:174: missing white space after number `7a9e845'
/usr/src/linux-2.4/include/linux/module.h:174: parse error before `7a9e845'
/usr/src/linux-2.4/include/linux/module.h:174: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:174: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:175: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:175: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:176: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:176: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: parse error before `6b99f7d8'
/usr/src/linux-2.4/include/linux/module.h:177: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:177: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:186: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:186: warning: parameter names (without types) in function declaration
make[2]: *** [3c59x.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

cheers.
Nicolas.
 
Old 07-26-2001, 02:35 PM   #4
tuarai
LQ Newbie
 
Registered: Jul 2001
Posts: 1

Rep: Reputation: 0
Angry

The same problem happened to me....
Any ideas?

......


make[2]: Entering directory `/usr/src/linux-2.4.2/drivers/net'
gcc -D__KERNEL__ -I/usr/src/linux-2.4/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/include/linux/modversions.h -c -o dummy.o dummy.c
In file included from /usr/src/linux-2.4/include/linux/spinlock.h:35,
from /usr/src/linux-2.4/include/linux/module.h:11,
from dummy.c:34:
/usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/asm/spinlock.h:8: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/asm/spinlock.h:8: parse error before `1b7d4074'
/usr/src/linux-2.4/include/asm/spinlock.h:9: `printk_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/asm/spinlock.h:9: warning: function declaration isn't a prototype
In file included from dummy.c:34:
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:173: parse error before `62dada05'
/usr/src/linux-2.4/include/linux/module.h:173: `inter_module_register_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:173: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:174: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:174: missing white space after number `7a9e845'
/usr/src/linux-2.4/include/linux/module.h:174: parse error before `7a9e845'
/usr/src/linux-2.4/include/linux/module.h:174: `inter_module_unregister_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:174: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:175: `inter_module_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:175: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:176: `inter_module_get_request_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:176: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: nondigits in number and not hexadecimal
/usr/src/linux-2.4/include/linux/module.h:177: parse error before `6b99f7d8'
/usr/src/linux-2.4/include/linux/module.h:177: `inter_module_put_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:177: warning: function declaration isn't a prototype
/usr/src/linux-2.4/include/linux/module.h:186: `try_inc_mod_count_R_ver_str' declared as function returning a function
/usr/src/linux-2.4/include/linux/module.h:186: warning: parameter names (without types) in function declaration
make[2]: *** [dummy.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
 
Old 07-28-2001, 10:02 AM   #5
dilberim82
Member
 
Registered: Apr 2001
Location: NY
Distribution: used to be Redhat, now Debian Sarge
Posts: 291

Rep: Reputation: 30
Unhappy

what distro are you guys using and what kernel are you trying to compile? I am going to recompile my kernel too and you guys are scaring me
 
Old 07-29-2001, 01:49 PM   #6
dstrozzi
LQ Newbie
 
Registered: Jul 2001
Location: Cambridge, MA
Distribution: RedHat 7.1
Posts: 4

Rep: Reputation: 0
Unhappy

I just had exactly the same problem too! I thought maybe the files could be damaged, but I can edit them in emacs and eveything looks fine. But, the numbers mentioned in the errors (like `62dada05' , the exact same number I get) don't appear anywhere in module.h...

This is mysterious. I'll see if I can figure anything out, but I'm a linux novice so don't hold your breath.
 
Old 07-29-2001, 05:40 PM   #7
drjimstuckinwin
Member
 
Registered: Mar 2001
Location: Manchester UK
Distribution: Mainly Fedora
Posts: 496

Rep: Reputation: 30
Hi
RH7.0 had a non functional gcc included. I don't know for sure, but given the number of compile problems posted by 7.1 users , I guess the gcc update never got sorted. That would explain everything. Get the latest gcc (or just go to redhat for theirs) and see if it works.
Jim
 
Old 09-23-2001, 10:52 PM   #8
mindsurfer
LQ Newbie
 
Registered: Sep 2001
Location: Canada
Posts: 8

Rep: Reputation: 0
Hi guys,

The linux out of the box kernel source has something strange in it . I fixed the problem like this:
safe your .config file somewhere else
'mv /usr/src/linux-2.4.x/.config ~'
then 'cd /usr/src/linux-2.4.x; make mrproper'
now copy the .config file back where it belongs
'mv ~/.config /usr/src/linux-2.4.x/'
and try to recompile the whole thing and it should work.

Good luck.

Last edited by mindsurfer; 11-28-2001 at 09:13 PM.
 
Old 11-28-2001, 07:28 PM   #9
eodell
LQ Newbie
 
Registered: Nov 2001
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by mindsurfer
Hi guys,

The linux out of the box kernel source has something strange in it . I fixed the problem like this:
safe your .config file somewhere else
'mv /usr/src/linux-2.4.x/.config ~'
then 'cd /usr/src/liux-2.4.x; make mrproper'
now copy the .config file back where it belongs
'mv ~/.config /usr/src/linux-2.4.x/'
and try to recompile the whole thing and it should work.

Good luck.
This didn't work for me until I ran 'make menuconfig' again and resaved the configuration file without making any changes. Even 'make dep' didn't work until I did this, but afterwards it worked fine.
 
Old 11-28-2001, 09:08 PM   #10
mindsurfer
LQ Newbie
 
Registered: Sep 2001
Location: Canada
Posts: 8

Rep: Reputation: 0
Sorry, forgot to add
'make oldconfig' in the end that would save you the trouble.

Last edited by mindsurfer; 11-28-2001 at 09:09 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
eth0 and eth1 fail c0c0deuz Linux - Networking 3 06-18-2008 12:35 PM
lo and eth0 fail on boot dsiguy Linux - General 19 03-15-2003 11:07 AM
lo and eth0 fail on boot dsiguy Linux - Hardware 2 03-14-2003 12:46 PM
lo and eth0 fail on boot dsiguy Linux - Networking 1 03-14-2003 12:35 PM
eth0 initiallisation fail again c0c0deuz Linux - Newbie 1 08-25-2001 12:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:55 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
Open Source Consulting | Domain Registration