Re: speedtouch for 2.6.0

From: Duncan Sands
Date: Tue Dec 30 2003 - 03:13:17 EST


> I couldn't compile.
> I get the output below.
> What's wrong with me?

You are compiling against 2.6 kernel headers.
(Most people have 2.4 kernel headers in
/usr/include/linux, even if they are running a
2.6 kernel). You will need to update the
firmware_loader directory. Do the following:

cvs -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/speedtouch login

(just hit return if asked for a password). Then do

cvs -z 9 -d:pserver:anonymous@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx:/cvsroot/speedtouch co speedtouch

This creates a directory called speedtouch. Replace the contents of the
firmware_loader directory with the contents of this new speedtouch
directory. Now rebuild: in the top level of the speedbundle do

make clean
make
(become root)
make install

> *Guldo*

Duncan.

> cd linux-atm/src/lib && make
> make[1]: Entering directory `/tmp/speedbundle-1.0/linux-atm/src/lib'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/speedbundle-1.0/linux-atm/src/lib'
> cd ppp/pppd && make
> make[1]: Entering directory `/tmp/speedbundle-1.0/ppp/pppd'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd'
> cd ppp/pppd/plugins && make C_INCLUDE_PATH=../../../linux-atm/src/include
> LIBRARY_PATH=../../../linux-atm/src/lib/.libs make[1]: Entering directory
> `/tmp/speedbundle-1.0/ppp/pppd/plugins' for d in rp-pppoe; do make -w -C $d
> all; done
> make[2]: Entering directory
> `/tmp/speedbundle-1.0/ppp/pppd/plugins/rp-pppoe' make[2]: Nothing to be
> done for `all'.
> make[2]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd/plugins/rp-pppoe'
> make[1]: Leaving directory `/tmp/speedbundle-1.0/ppp/pppd/plugins'
> cd firmware && make
> make[1]: Entering directory `/tmp/speedbundle-1.0/firmware'
> make[1]: Nothing to be done for `all'.
> make[1]: Leaving directory `/tmp/speedbundle-1.0/firmware'
> cd firmware_loader && make
> make[1]: Entering directory `/tmp/speedbundle-1.0/firmware_loader'
> cd src && make
> make[2]: Entering directory `/tmp/speedbundle-1.0/firmware_loader/src'
> gcc -Wall -I. -I/usr/include -I/usr/include -O2 -DVERSION=\"1.2-beta2\"
> -D_REENTRANT -D_THREAD_SAFE -o pusb.o -c pusb-linux.c In file included from
> /usr/include/linux/usb.h:4,
> from pusb-linux.c:42:
> /usr/include/linux/mod_devicetable.h:18: error: syntax error before "__u32"
> /usr/include/linux/mod_devicetable.h:20: error: syntax error before "class"
> /usr/include/linux/mod_devicetable.h:21: error: syntax error before
> "driver_data" /usr/include/linux/mod_devicetable.h:31: error: syntax error
> before "__u32" /usr/include/linux/mod_devicetable.h:33: error: syntax error
> before "model_id" /usr/include/linux/mod_devicetable.h:34: error: syntax
> error before "specifier_id" /usr/include/linux/mod_devicetable.h:35: error:
> syntax error before "version" /usr/include/linux/mod_devicetable.h:36:
> error: syntax error before "driver_data"
> /usr/include/linux/mod_devicetable.h:99: error: syntax error before "__u16"
> /usr/include/linux/mod_devicetable.h:103: error: syntax error before
> "idProduct" /usr/include/linux/mod_devicetable.h:104: error: syntax error
> before "bcdDevice_lo" /usr/include/linux/mod_devicetable.h:105: error:
> syntax error before "bcdDevice_hi"
> /usr/include/linux/mod_devicetable.h:108: error: syntax error before
> "bDeviceClass" /usr/include/linux/mod_devicetable.h:109: error: syntax
> error before "bDeviceSubClass" /usr/include/linux/mod_devicetable.h:110:
> error: syntax error before "bDeviceProtocol"
> /usr/include/linux/mod_devicetable.h:113: error: syntax error before
> "bInterfaceClass" /usr/include/linux/mod_devicetable.h:114: error: syntax
> error before "bInterfaceSubClass" /usr/include/linux/mod_devicetable.h:115:
> error: syntax error before "bInterfaceProtocol"
> /usr/include/linux/mod_devicetable.h:118: error: syntax error before
> "driver_info" /usr/include/linux/mod_devicetable.h:135: error: syntax error
> before "__u16" /usr/include/linux/mod_devicetable.h:138: error: syntax
> error before "dev_type" /usr/include/linux/mod_devicetable.h:139: error:
> syntax error before "cu_model" /usr/include/linux/mod_devicetable.h:140:
> error: syntax error before "dev_model"
> /usr/include/linux/mod_devicetable.h:142: error: syntax error before
> "driver_info" pusb-linux.c:66: error: redefinition of `struct
> usb_device_descriptor' pusb-linux.c: In function `pusb_control_msg':
> pusb-linux.c:164: error: structure has no member named `requesttype'
> pusb-linux.c:165: error: structure has no member named `request'
> pusb-linux.c:166: error: structure has no member named `value'
> pusb-linux.c:167: error: structure has no member named `index'
> pusb-linux.c:168: error: structure has no member named `length'
> make[2]: *** [pusb.o] Error 1
> make[2]: Leaving directory `/tmp/speedbundle-1.0/firmware_loader/src'
> make[1]: *** [modem] Error 2
> make[1]: Leaving directory `/tmp/speedbundle-1.0/firmware_loader'
> make: *** [build-stamp] Error 2
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/