Modem Driver compilation error:

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



*Greetings! *

I'm a newbie to Linux. I installed Ubuntu 8.10 on my PC dual boot w/ Windows XP, and the only access to internet is dial-up connection. I tried to google how would I install driver for my modem, detected as SmartLink. Thanks to Linmodems.org. I've ran ./scanModem and followed the result. I've downloaded ungrab-winmodem-20070505.tar.gz and slmodem-2.9.11-20080126.tar.gz as per instructions and tried to compile.
Unfortunately I got this error message:

make -C modem all
make[1]: Entering directory `/home/ecanlas/slmodem-2.9.11-20080126/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.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem.o -c modem.c
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -o modem_datafile.o -c modem_datafile.c
In function 'open',
inlined from 'datafile_save_info' at modem_datafile.c:114:
/usr/include/bits/fcntl2.h:51: error: call to '__open_missing_mode' declared with attribute error: open with O_CREAT in second argument needs 3 arguments
make[1]: *** [modem_datafile.o] Error 1
make[1]: Leaving directory `/home/ecanlas/slmodem-2.9.11-20080126/modem'
make: *** [modem] Error 2
ecanlas@Home-PC:~/slmodem-2.9.11-20080126$
-----------------------------------------------------------------------------

Am I missing something?
Thank you in advance for any help.

*
Included ModemData.txt output: *

Only plain text email is forwarded by the Discuss@xxxxxxxxxxxxx List Server,
as HTML can contain viruses. Use as the email Subject Line:
YourName, YourCountry kernel 2.6.27-7-generic
With this Subject Line cogent experts will be alerted, and useful case names left in the Archive. YourCountry will enable Country specific guidance. Linux experts in YourCountry
can be found through: http://www.linux.org/groups/index.html.
They will know your Country's modem code, which may be essential for dialup service. Responses from Discuss@xxxxxxxxxxxxx are sometimes blocked by an Internet Provider mail filters.
So in a day, also check the Archived responses at http://www.linmodems.org
-------------------------- System information ----------------------------
CPU=i686,
Linux version 2.6.27-7-generic (buildd@rothera) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu10) ) #1 SMP Fri Oct 24 06:42:44 UTC 2008
scanModem update of: 2008_11_06

There are no blacklisted modem drivers in /etc/modprobe* files
Attached USB devices are:
ID 1d6b:0001 Linux Foundation 1.1 root hub
ID 1d6b:0001 Linux Foundation 1.1 root hub
ID 1d6b:0001 Linux Foundation 1.1 root hub
ID 1d6b:0002 Linux Foundation 2.0 root hub

USB modems not recognized

For candidate card in slot 00:0a.0, firmware information and bootup diagnostics are:
PCI slot PCI ID SubsystemID Name
---------- --------- --------- --------------
00:0a.0 2000:2800 163c:2800 Modem: Smart Link Ltd. SmartPCI2800 V.92 PCI Soft DFT

Modem interrupt assignment and sharing:
--- Bootup diagnostics for card in PCI slot 00:0a.0 ----
[ 0.463380] PCI: 0000:00:0a.0 reg 10 32bit mmio: [de000000, deffffff]
[ 0.463419] pci 0000:00:0a.0: PME# supported from D3hot D3cold
[ 0.463425] pci 0000:00:0a.0: PME# disabled
[ 1.783492] serial 0000:00:0a.0: enabling device (0014 -> 0016)
[ 1.783514] serial 0000:00:0a.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 1.783525] serial 0000:00:0a.0: PCI INT A disabled

The PCI slot 00:0a.0 of the modem card may be disabled early in
a bootup process, but then enabled later. If modem drivers load
but the modem is not responsive, read DOCs/Bootup.txt about possible fixes.
Send dmesg.txt along with ModemData.txt to discuss@xxxxxxxxxxxxx
if help is needed.


=== Finished firmware and bootup diagnostics, next deducing cogent software. ===

Predictive diagnostics for card in bus 00:0a.0:
Modem chipset detected on
NAME="Modem: Smart Link Ltd. SmartPCI2800 V.92 PCI Soft DFT "
CLASS=0703
PCIDEV=2000:2800
SUBSYS=163c:2800
IRQ=16
IDENT=slamr

For candidate modem in: 00:0a.0
0703 Modem: Smart Link Ltd. SmartPCI2800 V.92 PCI Soft DFT
Primary device ID: 2000:2800
Support type needed or chipset: slamr


----------------end Softmodem section --------------
The modem is supported by the Smartlink
plus the slmodemd helper utility. Read the
DOCs/Smartlink.txt and Modem/DOCs/YourSystem.txt for follow through guidance.


For 2.6.27-7-generic compiling drivers is necessary. As of October 2007 the current packages at
http://linmodems.technion.ac.il/packages/smartlink/ are the
ungrab-winmodem-20070505.tar.gz and slmodem-2.9.11-20080126.tar.gz

Writing DOCs/Smartlink.txt
============ end Smartlink section =====================

Completed candidate modem analyses.

The base of the UDEV device file system is: /dev/.udev

Versions adequately match for the compiler installed: 4.3.2
and the compiler used in kernel assembly: 4.3.2



Minimal compiling resources appear complete:
make utility - /usr/bin/make
Compiler version 4.3
linuc_headers base folder /lib/modules/2.6.27-7-generic/build

However some compilations and executable functions may need additional files, in the FileNames.h (so called kernel "h"eaders) collection installed in /usr/include/ . For martian_modem, additional required packages are needed. The also required headers of package libc6 are commonly installed by default. Compiling hsfmodem drivers does require linux-libc-dev and libc6-dev packages, for kernels 2.6.24 and later versions. In not included on your install CD, search for them at http://packages.ubuntu.com
or comparable Repository for other Linux distros.
When compiling ALSA drivers, the utility "patch" will also be needed.




If a driver compilation fails, with message including some lack of some FileName.h (stdio.h for example), then Some additional kernel-header files need installation to /usr/include. The minimal additional packages are libc6-dev
and any of its dependents, under Ubuntu linux-libc-dev

If an alternate ethernet connection is available,
$ apt-get update
$ apt-get -s install linux-kernel-devel
will install needed packages.
For Debian/Ubuntu related distributions, run the following command to display the needed package list:

Otherwise packages have to be found through http://packages.ubuntu.com
Once downloaded and transferred into a Linux partition,
they can be installed alltogether with:
$ sudo dpkg -i *.deb


Checking pppd properties:
-rwsr-xr-- 1 root dip 273064 2008-10-16 09:51 /usr/sbin/pppd

In case of an "error 17" "serial loopback" problem, see:
http://linmodems.technion.ac.il/linmodems/archive-sixth/msg02637.html

To enable dialout without Root permission do:
$ su - root (not for Ubuntu)
sudo chmod a+x /usr/sbin/pppd
or under Ubuntu related Linuxes
sudo chmod a+x /usr/sbin/pppd

Checking settings of: /etc/ppp/options
asyncmap 0
noauth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx

In case of a message like:
Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
see http://linmodems.technion.ac.il/bigarch/archive-sixth/msg04656.html

Read Modem/DOCs/YourSystem.txt concerning other COMM channels: eth0
Which can interfere with Browser naviagation.

Don't worry about the following, it is for experts should trouble shooting be necessary.
==========================================================

Checking for modem support lines:
--------------------------------------
/device/modem symbolic link:
slmodemd created symbolic link /dev/ttySL0:
Within /etc/udev/ files:

Within /etc/modprobe.conf files:
/etc/modprobe.d/alsa-base:options snd-atiixp-modem index=-2
/etc/modprobe.d/alsa-base:options snd-via82xx-modem index=-2
/etc/modprobe.d/blacklist-modem:# Uncomment these entries in order to blacklist unwanted modem drivers
/etc/modprobe.d/blacklist-modem:# blacklist snd-atiixp-modem
/etc/modprobe.d/blacklist-modem:# blacklist snd-via82xx-modem
Within any ancient /etc/devfs files:

Within ancient kernel 2.4.n /etc/module.conf files:

--------- end modem support lines --------



[Index of Archives]     [Linux Media Development]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Fedora Women]     [Linux USB]

  Powered by Linux