LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-16-2003, 03:39 AM   #1
dzt
Member
 
Registered: Oct 2003
Distribution: slackware
Posts: 57

Rep: Reputation: 15
Question warnings during compiling modules


using gcc while compiling modules i am getting

errors such as;

concentration of string literals with _FUNCTION_ is depreciated

setup_string is defined but no used

warning : implicit declaration of ...

warning : duplicate const...

what are these messages related to?
what might be causing them?

thanks
 
Old 10-16-2003, 11:50 AM   #2
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
setup_string is defined but no used
A variable was declared, but used nowhere, so it can be removed from the code.
Quote:
warning : implicit declaration of ...
Some header file was not #included for the function mentioned.
Quote:
warning : duplicate const...
A constant was defined again.

Some code clean-up may be desireable, but as they are warnings, they are not harmful if the coder was aware of what he/she is doing.
 
Old 10-16-2003, 12:34 PM   #3
dzt
Member
 
Registered: Oct 2003
Distribution: slackware
Posts: 57

Original Poster
Rep: Reputation: 15
explains quite well.. any idea about the 1st one ?
 
Old 10-16-2003, 05:49 PM   #4
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
No idea...
Have you looked up the line in the code the message probably mentions?
 
Old 10-17-2003, 06:01 PM   #5
dzt
Member
 
Registered: Oct 2003
Distribution: slackware
Posts: 57

Original Poster
Rep: Reputation: 15
well well...

for the past 4 days i have been spending my hours for a slick configuration of the 2.4.22 kernel and compiled a couple kernels vith various configs...

but as far as the modules I am getting some errors with depmod

I am just excluding the unnecesssary support modules and am not installing them at all...

but still getting unresolved errors..
should I just include all kinds of support for the hell of it and various stuff as modules ? or what should I do ?
 
Old 10-18-2003, 04:34 AM   #6
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Quote:
I am just excluding the unnecesssary support modules and am not installing them at all...
Sounds like there are some options/modules that are included and need other options/modules that are not included. I would go through all the selected options, read help about them, try to understand what they are for, and what other options they might need.

2.4.22 compile fine on my system, but there is a bug in the sg.o module (SCSI generic, needed for IDE CD writers), that is fixed somewhere in the 2.4.23-pre.. series. So if you have a IDE CD-writer, I would not use 2.4.22.
 
Old 10-18-2003, 06:12 AM   #7
dzt
Member
 
Registered: Oct 2003
Distribution: slackware
Posts: 57

Original Poster
Rep: Reputation: 15
hmm can that be the reason causing the kmod scsi_hostadapter load fail by any chance?
 
Old 10-18-2003, 06:33 AM   #8
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Don't know, maybe. I don't have scsi_hostadapter in my /etc/modules.conf, so I didn't have that problem with 2.4.22. It compiled fine; no unresolved symbols. But cdrecord -scanbus failed.

On my (Debian testing/sarge with 2.4.23-pre7:

$ fgrep scsi /etc/modules.conf
pre-install ide-scsi modprobe ide-cd
pre-install sg modprobe ide-scsi
pre-install sr_mod modprobe ide-scsi
 
Old 10-18-2003, 02:12 PM   #9
dzt
Member
 
Registered: Oct 2003
Distribution: slackware
Posts: 57

Original Poster
Rep: Reputation: 15
i dont have an entry about scsi_hostadapter in my modules.conf file... that prolly doesnt mean that it is compiled in the kernel right? how Can i get rid of that then?
 
Old 10-19-2003, 08:24 AM   #10
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
I don't have scsi_hostadapter in /etc/modules.conf either.
According to /usr/src/linux-2.4.23-pre7/Documentation/modules.txt it can be used to specify an alias in /etc/modules.conf for what driver/module you want kmod to load, when the kernel needs SCSI. Say if you have a SCSI-card type "aha1542", you would specify this in /etc/modules.conf:

alias scsi_hostadapter aha1542

But, I think, it is not needed for IDE CD-writers. At least mine works without it.
 
  


Reply



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
Compiling as modules: useful always? itzfritz Linux - General 2 11-17-2004 07:57 PM
after compiling 2.6.3 modules... c0rderr0y Linux - Newbie 1 02-23-2004 02:48 AM
modules don't seem to be compiling thrice Slackware 3 11-20-2003 10:37 PM
grip compiling warnings cpv204 Slackware 0 04-27-2003 03:51 PM
warnings when compiling kernel dontest Linux - General 1 01-24-2003 04:49 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:04 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