LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-29-2006, 10:04 AM   #1
Reth
LQ Newbie
 
Registered: Mar 2005
Location: Australia
Distribution: Slackware, Debian, Gentoo, FreeBSD.
Posts: 8

Rep: Reputation: 0
RESOLVED: ltmodem-2.6-alk-8 errors when compiling.


Greets.

I recently dug up an old Lucent Winmodem (supported) and decided to see if I could get it functioning with Linux.

So far, I have discovered that the modem IS compatible with Linux. Getting the drivers to compile is another story.

Code:
diablos:/home/reth/lucent/ltmodem-2.6-alk-8# make
make -C /lib/modules/`uname -r`/build SUBDIRS=/home/reth/lucent/ltmodem-2.6-alk-
8 modules
make[1]: Entering directory `/usr/src/linux-2.6.18'
  CC [M]  /home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.o
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:123: error: syntax error before string constant
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:123: warning: type defaults to `i
nt' in declaration of `MODULE_PARM' /home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:123: warning: function declaration isn't a prototype
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:123: warning: data definition has no type or storage class
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:125: error: syntax error before string constant
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:125: warning: type defaults to `int' in declaration of `MODULE_PARM'
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:125: warning: function declaration isn't a prototype
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:125: warning: data definition has no type or storage class
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:130: error: syntax error before string constant
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:130: warning: type defaults to `int' in declaration of `MODULE_PARM'
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:130: warning: function declaration isn't a prototype
/home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.c:130: warning: data definition has no type or storage class
make[2]: *** /home/reth/lucent/ltmodem-2.6-alk-8/lt_modem.o] Error 1
make[1]: *** [_module_/home/reth/lucent/ltmodem-2.6-alk-8] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.18'
make: *** [module] Error 2
I googled on the errors, but didn't really come up with much. I'm running 2.6.18 (custom), and I don't really see a problem where the compiler complains.

Line 123 (the first error) of lt_modem.c is:

Code:
MODULE_PARM(vendor_id, "i");
I can't see anything wrong with that. My guess is that there's something wrong with MODULE_PARM.

System specs:

Debian 3.1
Kernel 2.6.18

Code:
diablos:/home/reth/lucent/ltmodem-2.6-alk-8# lspci -vv | grep Lucent
0000:00:09.0 Communication controller: Lucent Microelectronics LT WinModem (rev 02)
        Subsystem: Lucent Microelectronics LT WinModem
Any help would be greatly appreciated.

-Reth

Last edited by Reth; 09-29-2006 at 07:35 PM.
 
Old 09-29-2006, 07:34 PM   #2
Reth
LQ Newbie
 
Registered: Mar 2005
Location: Australia
Distribution: Slackware, Debian, Gentoo, FreeBSD.
Posts: 8

Original Poster
Rep: Reputation: 0
Resolved

Seems 2.6.18 changed the module programming API a little.

Gentoo has a patch, which worked fine on my system.

http://sources.gentoo.org/viewcvs.py....1&view=markup

Compiles fine after it's applied.

-Reth
 
  


Reply

Tags
ltmodem, patch


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling errors Murdock1979 Linux - Software 1 09-29-2005 02:25 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
compiling errors degraffenried13 Linux - General 1 04-04-2004 01:54 PM
QT compiling errors slackwarefan Slackware 1 03-01-2004 07:45 PM
Errors compiling 2.6.0 plisken Linux - General 3 10-10-2003 05:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:58 PM.

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