LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   internal modem installation problem on sony vaio (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/internal-modem-installation-problem-on-sony-vaio-403581/)

jaogale 01-15-2006 07:31 AM

internal modem installation problem on sony vaio
 
Hi,
i have sony vaiio vgn-s4m lap-top with an internal modem V90.
previously i had installed mdk 10.0 on it, and configured/installed this modem using slmodem-2.9.10.tar.gz.
this was working fine.
recently i installed mandriva 2006 [deleting mdk10.0], because i was told that as this is an advanced version, this detects
and installs most of the internal modem.
but it did not happened automatically. so i tried to configure/install it with the same tar ball and it is giving me errors
detailed as follows. please let me know what is this error? and how to correct it?
also i would like to know that if sonething can be easily done in earlier versions why it doesnt happen in so called advanced versions?
thanks,
jayant.

[root@localhost slmodem-2.9.10]# make
make -C modem all
make[1]: Entering directory `/home/jayant/slmodem-2.9.10/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’ w as here
make[1]: *** [modem.o] Error 1
make[1]: Leaving directory `/home/jayant/slmodem-2.9.10/modem'
make: *** [modem] Error 2
[root@localhost slmodem-2.9.10]#

maxfacta 01-16-2006 10:19 PM

Are your kernel header files installed? They may not be installed by default. It looks like a missing declaration, and I would say that slmodem (being a kernel module) would need to link against the kernel headers.

jaogale 01-22-2006 07:31 AM

i have downloaded kernel-source files. but the same problem prevails.
i could not get kernel header files separately. do the kernel source files contain kernel header files?
thanks

maxfacta 01-22-2006 08:05 PM

On Debian, the kernel headers come in a separate package; you'll have to check your own distribution's policy on that!

vvuiverine 02-04-2006 02:45 PM

I know this post is old news but leaving a solution is not a bad idea.

The problem is how GCC4 handles the static keyword. Open modem/modem.c and go to lines 1701 then 1707 and remove the keyword static.

Afterwards all should compile without any problems. These edits should not affect the applications functionality.


All times are GMT -5. The time now is 06:59 AM.