[Feisty & Gutsy Tribe] sl-modem module doesn't compile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sl-modem (Baltix) |
New
|
Undecided
|
Unassigned | ||
sl-modem (Ubuntu) |
Invalid
|
Medium
|
Rolf Leggewie | ||
Bug Description
sl-modem module doesn't compile (with module-assistant) on feisty and Gutsy. Package from debian sid compiles ok.
Other bugs reports with the same (I think) error : bug #92777, bug #103705
=======
Modem: SGS Thomson Microelectronic
When I plugin it, nothing happens: no /dev/slusb0 created, no /dev/ttySL0 created, nothing. On edgy I was able to run this modem using debian debs for sl-modem and editing
- /etc/default/
SLMODEMD_
SLMODEMD_
- /etc/modprobe.
install slusb modprobe --ignore-install ungrab-winmodem ; modprobe --ignore-install slusb; test -e /dev/slusb0 || (/bin/mknod -m 660 /dev/slusb0 c 243 0 2>/dev/null && chgrp dialout /dev/slusb0)
- /etc/udev/
BUS=="usb", SYSFS{idVendor}
- And, evidently, creating my own /etc/init.
#!/bin/sh
#
PATH=/usr/
test -x /usr/sbin/slmodemd || exit 0
start() {
/sbin/modprobe slusb
if ! [ -e /dev/slusb0 ]; then
mknod /dev/slusb0 c 243 0
fi
echo -n "Starting SmartLink Modem driver for: slusb0"
/sbin/start-
--exec /usr/sbin/slmodemd --make-pidfile --background --quiet -- -c SPAIN /dev/slusb0
RETVAL=$?
if [ "$RETVAL" = 0 ] ; then
echo "Creating /dev/modem symlink, pointing to: /dev/ttySL0."
ln -sf /dev/ttySL0 /dev/modem
fi
}
stop() {
echo -n "Shutting down SmartLink Modem driver normally"
RETVAL=0
if [ "`pidof slmodemd`" ] ; then
if /sbin/start-
/var/run/
echo .
else
echo " probably failed."
echo "Trying it the hard way (send SIGKILL all slmodemd
processes): "
/usr/bin/killall -KILL slmodemd || RETVAL=1
fi
else
echo " ... no slmodemd daemon running."
fi
if [ "$RETVAL" = 0 ] ; then
rm -f "/var/run/
rm -f /dev/modem
rm -f /dev/slusb0
echo -n "Unloading modem driver from kernel ... "
msg="none found."
if grep -l -q slusb /proc/modules ; then
/sbin/modprobe -r slusb 2>/dev/null && msg="slusb." || msg="failed."
fi
echo $msg
fi
}
status() {
echo -n "Status of SmartLink modem daemon: "
if [ ! -r "/var/run/
echo "slmodemd is not running."
exit 3
fi
if read pid < "/var/run/
echo "slmodemd is running."
exit 0
else
echo "slmodemd is not running but /var/run/
exit 1
fi
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
status)
status
;;
*)
echo "Usage: /etc/init.
exit 1
esac
=======
But with feisty nothing works.
If I try "sudo module-assistant auto-install sl-modem" (from https:/
make[2]: se ingresa al directorio `/usr/src/
gcc-4.1 -I/lib/
kernel-ver.c
kernel-ver.c: En la función ‘main’:
kernel-ver.c:11: error: ‘UTS_RELEASE’ no se declaró aquí (primer uso en esta función)
kernel-ver.c:11: error: (Cada identificador no declarado solamente se reporta una vez
kernel-ver.c:11: error: ara cada funcion en la que aparece.)
make[2]: *** [kernel-ver] Error 1
make[2]: se sale del directorio `/usr/src/
make[1]: *** [binary-modules] Error 2
make[1]: se sale del directorio `/usr/src/
make: *** [kdist_build] Error 2
In Edgy I made module-assistant serveral times and I didn't get errors, so it's possible that sl-modem and kernel 2.6.20 aren't compatible?
Thanks and sorry my poor English
description: | updated |
Maybe dupe (see bug report 92777)