Click to See Complete Forum and Search --> : problem with Smartlink modem compiling


MaaSTaaR
12-30-2005, 08:23 AM
Hello ...

i have Tohiba Satellite A10 laptop , and it's modem is Smartlink (it's name in Windows Toshiba Software Modem AMR) , i downloaded modem drives and try to install it , but when i do "make" command it's show for me these errors :

root@MaaSTaaR:/home/maastaar/Desktop/mdm# make
make -C modem all
make[1]: Entering directory `/home/maastaar/Desktop/mdm/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: previous implicit declaration of â€کsregs_init’ was here
make[1]: *** [modem.o] Error 1
make[1]: Leaving directory `/home/maastaar/Desktop/mdm/modem'
make: *** [modem] Error 2

and when i do "make install"

root@MaaSTaaR:/home/maastaar/Desktop/mdm# make install
make -C modem all
make[1]: Entering directory `/home/maastaar/Desktop/mdm/modem'
gcc -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: previous implicit declaration of â€کsregs_init’ was here
make[1]: *** [modem.o] Error 1
make[1]: Leaving directory `/home/maastaar/Desktop/mdm/modem'
make: *** [modem] Error 2

my distro is ubuntu and gcc version is 4.0.1

what this is errors and what should i do to compiling this drives?

bwkaz
12-30-2005, 10:10 AM
Woohoo, go UTF-8! Way to make a single quote mark show up as 3 characters, Ubuntu! :p (Actually it's not only Ubuntu; it's a combination of the default character set being UTF-8, and either your terminal, your web browser, or the forum software not understanding it. If you want to read English anyway, then just set LANG or LC_ALL (whichever one is set) to either en_US, or C, or POSIX.)

Anyway, for the actual problem. Looks like the drivers are either out of date (need a patch before they'll work with your version of gcc), or are just plain broken. gcc 4 is a lot more strict than 3.x was, so if these drivers have been sitting up somewhere for a few years, not being updated, that would cause something like this. Where'd you get them from?

MaaSTaaR
12-30-2005, 12:28 PM
hi bwkaz :)


Woohoo, go UTF-8! Way to make a single quote mark show up as 3 characters, Ubuntu! (Actually it's not only Ubuntu; it's a combination of the default character set being UTF-8, and either your terminal, your web browser, or the forum software not understanding it. If you want to read English anyway, then just set LANG or LC_ALL (whichever one is set) to either en_US, or C, or POSIX.)
sorry for this :o

Anyway, for the actual problem. Looks like the drivers are either out of date (need a patch before they'll work with your version of gcc), or are just plain broken. gcc 4 is a lot more strict than 3.x was, so if these drivers have been sitting up somewhere for a few years, not being updated, that would cause something like this. Where'd you get them from?

i am get drivers from here : http://linmodems.technion.ac.il/packages/smartlink/slmdm-2.7.9.tar.gz and upload date is (23-Oct-2004)

i found this file http://linmodems.technion.ac.il/packages/smartlink/slmodemd-2.9.11_20051009_gcc4.tar.gz for gcc4 but i don't found compile files like Makefile , it's files like : (scripts [folder] , Files.txt , README , Slmodem-ALSA.txt , wvdial.conf , Testing.txt , 1st_Read.txt , slmodem.txt , CountryList.txt , COPYING , Changes , slmodem.spec , slmodemd.ubuntu.italy) and no any C or makefile files :rolleyes:

Syche
12-30-2005, 07:33 PM
For the Smartlink modem, both Debian and Ubuntu have an easier way to go about it. Make sure your repositories are configured properly and do a search for sl-modem-daemon (SmartLink software modem daemon).

It needs a kernel driver to access the hardware, which can be ALSA using the intel 8x0m module in your kernel (I think both Debian and Ubuntu have it compiled as a module) which you should be having anyway.

Else, do it the Debian way using module-assistant. The source is again in the repositories - should be something like sl-modem-source. But, I think the first step will work for you. If it dosen't let us know, and I'll walk you through. :)

Cheers,
Syche

MaaSTaaR
12-30-2005, 07:44 PM
For the Smartlink modem, both Debian and Ubuntu have an easier way to go about it. Make sure your repositories are configured properly and do a search for sl-modem-daemon (SmartLink software modem daemon).

It needs a kernel driver to access the hardware, which can be ALSA using the intel 8x0m module in your kernel (I think both Debian and Ubuntu have it compiled as a module) which you should be having anyway.

Else, do it the Debian way using module-assistant. The source is again in the repositories - should be something like sl-modem-source. But, I think the first step will work for you. If it dosen't let us know, and I'll walk you through. :)

Cheers,
Syche

thank you very much Syche , do you mean to download sl-modem-daemon.deb only then install it be use "dpkg -i" command ?

ok what about sl-modem-source.deb ??

bwkaz
12-30-2005, 07:51 PM
sorry for this :o Not your fault, at least not mostly. I blame either Ubuntu or the terminal emulator program you were using; probably the terminal. ;)

On the other -- I believe Syche meant to just "apt-get install sl-modem-daemon" (this will download and then install it), and then set it up however you're supposed to. (That's the part that if you don't know how to do it, you'd be better off asking Syche than me, because I've never done it before.)

Syche
12-30-2005, 08:49 PM
Yes, just either sudo apt-get install sl-modem-daemon or search for it in Synaptic. It should be enough. Then use something like Gnome-ppp or whatever app ubuntu ships with to see if it detects your modem.

Syche
12-30-2005, 09:01 PM
Afterwards, you might also have to specify your country too. On the console type: slmodemd --countrylist

and go to etc/default/sl-modem-daemon and check these lines:
SLMODEMD_DEVICE=auto
SLMODEMD_COUNTRY=USA // enter your country here from the list you got above

Now, I have the same modem but am mostly on wireless and just configured it as a backup a long time ago, so am not exactly sure what's the right way. But your modem should be setup following these steps. Post here if you've more issues ;)

MaaSTaaR
12-31-2005, 06:28 AM
Hello ...

ok i downloaded the package from here http://packages.ubuntu.com/ , then i am used dpkg -i to install it , and it's installed without any problem , then edited sl-modem-daemon file and save it .

when i run GNOME-PPP setup i click in detect button but it's show for me massege it's not found my modem !

Syche
12-31-2005, 11:47 AM
It's probably because the daemon needs a driver to access the modem. This could either be ALSA with the intel8x0m module (funnily enough the Ubuntu kernel by default should have that) or the sl-modem module itself which we will try to install now.

This can get compicated and require geting some extra packages as Ubuntu by default ships with gcc 4 and the kernel is actually compiled with gcc 3.4. Also, I'm assuming that you have no internet connectivity on Ubuntu.

since, you've already tried to compile, it means that you might have the basic packages already installed. Otherwise, hopefully you have your Ubuntu cd. Open up Synaptic and go to Edit-->Add CDROM (or apt-cdrom add via commandline). Install the build essential meta-package and see if gcc 3.4 is there as well( if the ubuntu devs have any sense, it would be)

If its not, download and install the folowing packages
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/cpp-3.4_3.4.4-6ubuntu8_i386.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/gcc-3.4_3.4.4-6ubuntu8_i386.deb
http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/gcc-3.4-base_3.4.4-6ubuntu8_i386.deb

(Got it from a google search http://ubuntuforums.org/showthread.php?t=79896&highlight=gcc+internet+connection)

Now, get module-assistant and sl-modem-source from the repositories too (there may or may not be dependencies).
Type:

sudo m-a prepare
sudo m-a update
sudo m-a a-i sl-modem

Now, your modem ought to work :)

PS: Maybe the limodems module compile problem was because of the gcc issue. You can try using 3.4 to compile instead (export it).

Syche
01-01-2006, 03:48 PM
Before trying the above step, see if you can modprobe the 8x0m module.
sudo modprobe snd_intel8x0m

Then, try gnome-ppp.

Syche
01-01-2006, 04:28 PM
Hey, found a good link for you! It's quite comprehensive. A slight difference of steps:
https://wiki.ubuntu.com//DialupModemHowto

It gave a good hint. Try sudo /etc/init.d/sl-modem-daemon restart after the step in my last post. And, if you are planning to compile or use m-a ( module-assistant), you'll need the kernel headers too. So check if they are on your cd.

That's all from me. Heh, only if I'd seen this howto before ;)

MaaSTaaR
01-10-2006, 03:53 PM
hi Syche :)

thank you very much man , i think i succses to install drives but it still have problem , when i click Dail in GNOME-PPP it's show for me "Dailing 818000" and when i show Log it's show for me this :

--> WvDial: Internet dialer version 1.54.0
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATM1L3DT00965,818000
--> Waiting for carrier.
ATM1L3DT00965,818000

what is this new problem ?