LinuxQuestions.org
Visit Jeremy's Blog.
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 08-11-2005, 08:03 PM   #1
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Rep: Reputation: 15
Can't 'make' modem driver...


I cant 'make' my SmartLink driver... I am running 2.6.11-1.1369_FC4 kernel and I keep getting errors when I try to 'make' the driver.

This is all I get:

make -C modem all
make [1]: Entering directory '/usr/src/slmodem-2.9.10/modem'
rebuild profile...
gcc -Wall -g -O-I -DCONFIG_DEBUG_MODEM -o modem_main.o-c modem_main.c
gcc -Wall -g -O-I -DCONFIG_DEBUG_MODEM -o modem_cmdline.o -c modem_cmdline.cgcc
-Wall -g -O-I -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
modem.c: In function 'modem_reset':
modem.c:1701: error: invalid storage class for function 'sregs_init'
modem.c:1713: warning: implicit declaration of function 'sregs_init'
modem.c: At top level:
modem.c:1727: error: static declaration of 'sregs_init' follows non-static declaration
modem.c:1713: error: pervious implicit declaration of 'sregs_init' was here
make [1] *** [modem.o] Error 1
make [1]: leaving directory '/usr/src/slmodem-2.9.10/modem'
make: *** [modem] Error 2

Any Suggestions?

Last edited by markw8500; 08-11-2005 at 08:07 PM.
 
Old 08-11-2005, 08:24 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
This version seeems to be incompatible with your kernel. Try using a different version.
 
Old 08-25-2005, 05:54 AM   #3
raspness
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
The problem is not with linux, but with gcc 4.0.0.
Look at "Forward Declaration of Static Functions" at
http://developer.apple.com/releaseno...tingToGCC.html

See attached patch for modem.c - it compiles okay after applying this patch.

--- modem.c~ 2004-08-08 15:29:19.000000000 +0200
+++ modem.c 2005-08-25 12:35:28.000000000 +0200
@@ -1696,9 +1696,9 @@
}


+static int sregs_init(unsigned char sregs[]);
int modem_reset(struct modem *m)
{
- static int sregs_init(unsigned char sregs[]);
MODEM_DBG("modem reset...\n");
if(m->state != STATE_MODEM_IDLE)
modem_hup(m,1);
 
Old 08-26-2005, 05:55 PM   #4
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Thanks... I will give it a shot...
 
Old 08-27-2005, 06:02 PM   #5
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
In case you haven't solved your problem yet, you must use the slmodem-2.9.9e-pre1.tar.gz package. It compiles cleanly with gcc-4. You'll also need the ungrab-winmodem module to make the driver work with your kernel (new kernels don't accept proprietary drivers, so you will need this module to make the driver work). You can find both the driver and the ungrab-winmodem module here . Note that you must load the wingrab-winmodem module before loading the slamr module.

Last edited by Hungry ghost; 08-27-2005 at 06:05 PM.
 
Old 08-27-2005, 06:43 PM   #6
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
I took a look at the gcc 4.0.0... and well it seems to be over my head... Is there any way you could make it a little easier? I would appreciate it...

I will try to install the ungrab winmodem and let you know... Thanks...

Last edited by markw8500; 08-27-2005 at 06:45 PM.
 
Old 08-27-2005, 07:58 PM   #7
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Well... I tried the wingrab-winmodem... But it didnt help... Thanks anyway...
 
Old 08-27-2005, 08:39 PM   #8
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
The ungrab-winmodem module is not to compile the driver it's just to prevent problems with new 2.6.x kernels. Use the slmodem-2.9.9e-pre1 , it compiles without problems with gcc-4, but you will need the ungrab-winmodem module to make it compatible with your kernel. If you don't have luck with this option, you can try the alsa-driver which doesn't need the ungrab-winmodem module but I'm not sure how it works (I didn't have luck with it). Anyway, in the link I provided in my previous post are all the slmodem drivers released by linmodems; you can try with them, but try the newer ones to avoid problems with gcc-4. I hope this helps you.

Last edited by Hungry ghost; 08-27-2005 at 08:43 PM.
 
Old 08-27-2005, 09:45 PM   #9
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
I got an e-mail back from Sasha, the author of the smartlink driver, and she said that my issues have to do with my 64 bit processor... Something about how her driver is incompatible with my processor... I donno.... What do you think?
 
Old 08-27-2005, 10:05 PM   #10
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
Hmm, sorry if I can't help you there, I know nothing about 64 bit processors. Didn't Sasha tell you how to make it work??
 
Old 08-27-2005, 10:10 PM   #11
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Unfortunately... No... She is also unfamiliar with 64 bit processors... She did say that it could be done though...
 
Old 08-27-2005, 10:13 PM   #12
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
I found something that perhaps works; take a look at this .

Last edited by Hungry ghost; 08-27-2005 at 10:15 PM.
 
Old 08-27-2005, 10:18 PM   #13
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
If this works you will be my hero... LOL...
 
Old 08-27-2005, 10:21 PM   #14
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
lol. Read it carefully, seems complicated.
 
Old 08-27-2005, 10:24 PM   #15
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Your not kidding...
 
  


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
modem driver for Internal 56Kbps V.92 Data/Fax/Voice Modem sumathi Linux - Hardware 1 08-05-2005 04:12 AM
modem driver for RS232 external modem? nnaemekadavid Linux - Hardware 5 05-03-2004 11:58 AM
how can i make my driver working?:):) jcbetterman Programming 1 11-13-2003 10:13 PM
how can i make my driver working jcbetterman Linux - Newbie 1 11-13-2003 09:09 PM
modem driver make install error msg Daveb3 Linux - Hardware 0 12-24-2002 12:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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