I am trying to use the ltmodem driver provided in the following page under kernel 2.6.17:
http://linmodems.technion.ac.il/pack...-alk-8.tar.bz2
http://ltmodem.heby.de/
but I could not compile the driver. This is what I got:
Following a successful check for matching kernel-headers,
the modem drivers will be compiled for the current kernel version: 2.6.17
The check for compilation tools and general resources was successful.
Within DOCs/ there is an annotated conf-report.txt
The Makefile and down steam installation scripts have been created.
The gcc compiler resources available are:
----------------------------
lrwxrwxrwx 1 root root 7 2006-07-16 23:58 /usr/bin/gcc -> gcc-4.0
-rwxr-xr-x 1 root root 93712 2006-05-07 22:31 /usr/bin/gcc-4.0
lrwxrwxrwx 1 root root 10 2006-07-16 23:58 /usr/bin/gccbug -> gccbug-4.0
-rwxr-xr-x 1 root root 16256 2006-05-07 22:28 /usr/bin/gccbug-4.0
-rwxr-xr-x 1 root root 2013 2006-04-19 02:59 /usr/bin/gccmakedep
----------------------------
with your System currently using version 4.0.4
Do NOT mix the major versions of compilers for the kernel and modem drivers
or your System will crash! The following releases are using gcc version 3.2.x :
Mandrake 9, Redhat 8 and SuSE 8.1 in November 2002.
To continue:
Enter
To begin compilation of lt_modem.o and lt_serial.o, Enter
To avoid faulting Systems with an Enviromental setting: make -e
make
is the compiling command used with build_module.
To modify "make" invocation on your System, if desirable,
edit the build_module line below: MAKEE
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:33:5: warning: "FORCEMODVERSIONS" is not defined
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:43:5: warning: "FORCEMODVERSIONS" is not defined
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:210: error: syntax error before string constant
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:210: warning: type defaults to ‘int’ in declaration of ‘MODULE_PARM’
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:210: warning: function declaration isn’t a prototype
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:210: warning: data definition has no type or storage class
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:212: error: syntax error before string constant
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:212: warning: type defaults to ‘int’ in declaration of ‘MODULE_PARM’
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:212: warning: function declaration isn’t a prototype
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:212: warning: data definition has no type or storage class
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:217: error: syntax error before string constant
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:217: warning: type defaults to ‘int’ in declaration of ‘MODULE_PARM’
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:217: warning: function declaration isn’t a prototype
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:217: warning: data definition has no type or storage class
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:221: error: syntax error before string constant
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:221: warning: type defaults to ‘int’ in declaration of ‘MODULE_PARM’
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:221: warning: function declaration isn’t a prototype
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:221: warning: data definition has no type or storage class
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c: In function ‘lt_pci_find_device’:
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:261: error: ‘PCI_DEVICE_ID_ATT_L56XMF’ undeclared (first use in this function)
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:261: error: (Each undeclared identifier is reported only once
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:261: error: for each function it appears in.)
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c: In function ‘SetLtModemInterface’:
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:684: warning: implicit declaration of function ‘inter_module_get’
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:691: warning: ‘inter_module_put’ is deprecated (declared at include/linux/module.h:567)
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c: In function ‘init_module’:
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:714: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563)
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:715: warning: ‘inter_module_register’ is deprecated (declared at include/linux/module.h:563)
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c: In function ‘cleanup_module’:
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:723: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564)
/home/knoppix/ltmodem-8.31a10/source/ltmodem.c:724: warning: ‘inter_module_unregister’ is deprecated (declared at include/linux/module.h:564)
make[2]: *** [/home/knoppix/ltmodem-8.31a10/source/ltmodem.o] Error 1
make[1]: *** [_module_/home/knoppix/ltmodem-8.31a10/source] Error 2
make: *** [all] Error 2
make M=`pwd` -C /lib/modules/2.6.17/build modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.17'
CC [M] /home/knoppix/ltmodem-8.31a10/source/ltmodem.o
make[1]: Leaving directory `/usr/src/linux-headers-2.6.17'
Checking for driver products:
Compilation of lt_modem.ko failed,
I commentd out lines 123, 125 and 130 as suggeted by the following post:
http://linuxforum.ru/index.php?showt...0&#entry228576
and I was able to compile the driver. I also did:
mknod --mode=0660 /dev/ttyLTM0 c 62 64
ln -s /dev/ttyLTM0 /dev/modem
modprobe ltmodem ltserial
Every thing went fine, but when I started enquiring the modem with kppp, the system stops responding forcing me to reboot the PC.
Any suggestion?