LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem with modversions.h when compiling modem driver (https://www.linuxquestions.org/questions/slackware-14/problem-with-modversions-h-when-compiling-modem-driver-93819/)

jimdaworm 09-17-2003 11:44 AM

Problem with modversions.h when compiling modem driver
 
I am trying to complile the drivers for a pctel 789
(pci bus 0x0000 cardnum 0x0c function 0x00: vendor 0x134d device 0x7890 PCTel Inc HSP MicroModem 56)

Following the instructions in the FAQ file I did the following

Now, create the modversions.h by running
$ cd /usr/src/linux
$ make dep

this should make you a modversions.h in /usr/src/linux/include/

If this did not work, an ugly hack is to create an empty file there:
$ mkdir -p /usr/src/linux/include/linux
$ touch /usr/src/linux/include/linux/modversions.h


As make dep did't make the modversions.h file tried the 'ugly hack' this obviously caused problems see below... everything goes fine until it reads the modverions.h


/include/linux/modversions.h -c -o ptserial.o ptserial.c
<command line>:1:13: multi-line string literals are deprecated
cc1: warnings being treated as errors
ptserial.c:4626: warning: static declaration for `pci_siig10x_fn' follows non-static
ptserial.c:4655: warning: static declaration for `pci_siig20x_fn' follows non-static
make[3]: *** [ptserial.o] Error 1
make[3]: Leaving directory `/home/pctel-0.8.6/src/ptserial'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/pctel-0.8.6/src/ptserial'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/pctel-0.8.6/src'
make: *** [all-recursive] Error 1


I have no idea what this modversions.h file is but can anyone give me an idea of what I need to do to get this to compile

Adam

shepper 09-18-2003 07:04 PM

I installed this driver for a pctel HAMR modem in my desknote but later changed to a smartlink HAMR modem driver from smartlink (in the unsupported download section of the smartlink web site) The PCTel 9.6 driver worked but I was one of those who ended up with a sound driver conflict.

When I installed in Slackware the way I always got around the modversions problem was to make sure I have kernel sources installed and then compiled a new kernel.

It is alot to go through but I end up having to do it anyway to get the alsa sound drivers to work. I have an outdated website that describes installing the pctel driver which has been reported to work with the pctel 789 chipset. I now have the desknote running slackware 9.0 with the Smartlink HAMR modem driver and alsa 9.6 sound.. It works so well I plan to leave it alone.;)

You also might get some milage doing a search on the Conexant HSF HCF modems and seeing if someone can email you the old driver. I rechecked the download agreement and they can be shared but not altered. The drivers fit on a 1.44 floppy and even with dialup can be emailed in 2-3 minutes. I have a friend that has the drivers on his hd and if you know specifically HSF vs HCF (look at you lspci output and post the vendor and model ID numbers I can email you the older 56K tarball drivers. (These will also need kernel sources installed and modversion.h)

Failing that the PCTel driver should work. I would delete your dummy files and follow the kernel compiling instructions in this forum. Keep you first attempt simple and just optimize the cpu. If you plan on the alsa drivers you need to have general sound card support and I think OSS support but no specific drivers.

PCTel 9.6 installation

Amirhossein 10-14-2004 08:59 PM

Hi my friends,
Read this:
http://www.linuxquestions.org/questi...90#post1216290
Cheers,

jimdaworm 10-15-2004 03:11 AM

Hey shepper thanks for your great reply... unforutnatly my notification that you had replied got lost in the mail somewhere :( Explaining the length of time it took to me to reply. I just stumbled accross it.

I was using the old driver that worked perfectly with 2.4.x but as you can see from above not with 2.6.x I have heard that the pctel drivers are free and work but only from some chipsets.

Anyway I bought an external modem a while ago now and have been very happy with it... just one less thing to have to worry about when I do an install/re-install :D

Thanks for your reply

@Amirhossein that link is for the pay driver anyway!

Amirhossein 10-15-2004 03:24 AM

Your welcome my friend, we MUST help each others...
It made me really sad when I understood any reply was too late for you....
These days users are not very active for replying...And I am complaining for that...
Cheers,


All times are GMT -5. The time now is 03:26 PM.