LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 06-20-2009, 01:19 PM   #1
gauravholey
Member
 
Registered: May 2009
Posts: 35

Rep: Reputation: 15
WARNING: Symbol version dump /usr/src/linux-2.6.25/Module.symvers is missing


hi there


i am trying to compile the kernel module it is giving following error messages....

WARNING: Symbol version dump /usr/src/linux-2.6.25/Module.symvers
is missing; modules will have no dependencies and modversions.

Building modules, stage 2.
MODPOST 1 modules
CC /usr/src/hello1.mod.o
/usr/src/hello1.mod.c:8: error: variable ‘__this_module’ has initializer but incomplete type
/usr/src/hello1.mod.c:9: error: unknown field ‘name’ specified in initializer
/usr/src/hello1.mod.c:9: warning: excess elements in struct initializer
/usr/src/hello1.mod.c:9: warning: (near initialization for ‘__this_module’)
/usr/src/hello1.mod.c:10: error: unknown field ‘init’ specified in initializer
/usr/src/hello1.mod.c:10: warning: excess elements in struct initializer
/usr/src/hello1.mod.c:10: warning: (near initialization for ‘__this_module’)
/usr/src/hello1.mod.c:14: error: unknown field ‘arch’ specified in initializer
/usr/src/hello1.mod.c:14: error: ‘MODULE_ARCH_INIT’ undeclared here (not in a function)
/usr/src/hello1.mod.c:14: warning: excess elements in struct initializer
/usr/src/hello1.mod.c:14: warning: (near initialization for ‘__this_module’)
make[2]: *** [/usr/src/hello1.mod.o] Error 1
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.25'
make: *** [all] Error 2

************* the same module was working perfectly fine...but after i have done some acrobatics while installing the KDB...my doubt is on the 'mrproper' step in the course of KDB installation...where everything was cleaned up......please help...

Best Regards,
Gaurav Holey
 
Old 06-20-2009, 01:43 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 60
You can try doing
make oldconfig
in the kernel tree. Make sure the .config file in the top directory is what you want it to be. Alternatively, get one from
zcat /proc/config > .config
 
Old 06-21-2009, 12:28 AM   #3
gauravholey
Member
 
Registered: May 2009
Posts: 35

Original Poster
Rep: Reputation: 15
hi,

...On trying i get following results....

[root@localhost src]# make oldconfig
make: *** No rule to make target `oldconfig'. Stop.
[root@localhost src]# zcat /proc/config > .config
gzip: /proc/config.gz: No such file or directory

i am clueless now...please help


Best Regards
Gaurav Holey
 
  


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
Cannot find kernel version in /usr/src/linux-2.6.21.5, is it configured? evelasco Linux - Newbie 3 07-04-2010 03:52 PM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
/usr/src/linux/include/linux/version.h doesn't exsist itz2000 Linux - Newbie 1 10-26-2007 06:43 PM
warning : /usr/lib64/libavcodec.so: undefined symbol: awt586 Suse/Novell 2 07-19-2005 04:18 PM
/usr/src/linux missing sanjiv Mandriva 11 10-10-2003 12:03 PM


All times are GMT -5. The time now is 09:29 PM.

Main Menu
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