Re: Problem with router usb driver...

Hello arshad,

arshad wrote:

i have a SpeedCom+ 4 port router,
im trying to use the router through USB as im having prob in connecting
through ethernet.

Did you already ask for help for that topic on this list?

i tried to install the drivers according to the way
mentioned in the manual.
but i keep getting error. below i have given the instruction given in
the manual and the error i get.

please help me to solve this problem.
thank you very much.

Setup ADSL Router via USB Cable on Linux
This driver supports Linux-2.4 kernel.
Compiling the Driver
To compile the driver simply run make in "viking" directory. This will
create binary driver with name VKGEther.
% make

this is what i get at the first commmand

$ make
gcc -c -O2 -Wall -Wno-missing-braces -Wstrict-prototypes
-fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce
-mcpu=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2
-I/usr/src/linux/include -I./inc -D__KERNEL__ -DMODULE -Dlinux -DDBG=0
-o src/CDCEther.o src/CDCEther.c
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
src/CDCEther.c:23:24: error: linux/slab.h: No such file or directory
src/CDCEther.c:24:24: error: linux/init.h: No such file or directory
src/CDCEther.c:25:25: error: linux/delay.h: No such file or directory
In file included from /usr/include/linux/socket.h:23,
from /usr/include/linux/if.h:23,
from /usr/include/linux/netdevice.h:28,
from src/CDCEther.c:26:

Snipped the rest. Eliminate the first errors and compile again. Most of
the later errors are results of previous errors, i think.

Some header files (.h) needed to compile your sources are not found.
You can search for packages which include these header files file by

$ apt-file update
$ apt-file search linux/slab.h
linux-headers-2.6.31-14: /usr/src/linux-headers-2.6.31-14/include/linux/slab.h
linux-headers-2.6.31-14-386: /usr/src/linux-headers-2.6.31-14-386/include/linux/slab.h
linux-headers-2.6.31-14-generic: /usr/src/linux-headers-2.6.31-14-generic/include/linux/slab.h
linux-headers-2.6.31-14-generic-pae: /usr/src/linux-headers-2.6.31-14-generic-pae/include/linux/slab.h
linux-headers-2.6.31-15: /usr/src/linux-headers-2.6.31-15/include/linux/slab.h
linux-headers-2.6.31-15-386: /usr/src/linux-headers-2.6.31-15-386/include/linux/slab.h
linux-headers-2.6.31-15-generic: /usr/src/linux-headers-2.6.31-15-generic/include/linux/slab.h
linux-headers-2.6.31-15-generic-pae: /usr/src/linux-headers-2.6.31-15-generic-pae/include/linux/slab.h
linux-headers-2.6.31-16: /usr/src/linux-headers-2.6.31-16/include/linux/slab.h
linux-headers-2.6.31-16-386: /usr/src/linux-headers-2.6.31-16-386/include/linux/slab.h
linux-headers-2.6.31-16-generic: /usr/src/linux-headers-2.6.31-16-generic/include/linux/slab.h
linux-headers-2.6.31-16-generic-pae: /usr/src/linux-headers-2.6.31-16-generic-pae/include/linux/slab.h
linux-headers-2.6.31-302: /usr/src/linux-headers-2.6.31-302/include/linux/slab.h
linux-headers-2.6.31-302-ec2: /usr/src/linux-headers-2.6.31-302-ec2/include/linux/slab.h
linux-headers-2.6.31-9-rt: /usr/src/linux-headers-2.6.31-9-rt/include/linux/slab.h
linux-rt-headers-2.6.31-9: /usr/src/linux-rt-headers-2.6.31-9/include/linux/slab.h

There are many packages including a file named linux/slab.h. Find out which
kernel version you are running and install the kernel headers belonging
to the kernel you use.

Use uname to find out the version of your running kernel:
$ uname -r

So here i should install linux-headers-2.6.31-16-generic, you have to
look for yourself which kernel you run.

Or with some magic just do:

$ sudo aptitude install linux-headers-$(uname -r)

But thats not all. Some of the missing files are provided by linux-libc-dev,
which you also should install.

Tip: write down which packages you installed for compiling the sources.
You can remove them savely later, these packages aren't needed for
runtime, only for development/compiling. Aptitude writes a logfile of
its actions at /var/log/aptitude.


ubuntu-users mailing list
Modify settings or unsubscribe at: