On Wed, 28 Jan 2004, Gavin McCullagh wrote:
> I've been trying to do with sarge this but keep getting this error:
>> make: Entering directory `/usr/src/amedyn/module'
> rm -f xdslusb.o
> make -C /lib/modules/2.4.22-1-686/build SUBDIRS=/usr/src/amedyn/module XDSLUSB-MODULE=amedyn modules
> make: *** /lib/modules/2.4.22-1-686/build: No such file or directory. Stop.
> make: Entering an unknown directorymake: Leaving an unknown
> directorymake: *** [normal] Error 2
> make: Leaving directory `/usr/src/amedyn/module'
> make: *** [AME_MODULE] Error 2
okay, I'm getting my head around this. The /lib/modules/<version>/build
symlink should point to your linux source tree, right (I guess that's
commonly /usr/src/linux-<version> or something similar)?
This symlink isn't there with the debian kernel-image, possibly cos the
kernel source tree commonly wouldn't exist. So can a debian kernel
packaging clued person help me out a little here.
I created the symlinks
lrwxrwxrwx 1 root root 14 Jan 28 19:01 /lib/modules/2.4.22-1-686/build -> /usr/src/linux
lrwxrwxrwx 1 root src 20 Jan 28 17:38 /usr/src/linux -> kernel-source-2.4.22
lrwxrwxrwx 1 root root 44 Jan 28 19:22 /usr/src/kernel-source-2.4.22/.config -> /usr/src/kernel-headers-2.4.22-1-686/.config
lrwxrwxrwx 1 root root 45 Jan 28 19:24 /usr/src/kernel-source-2.4.22/include -> /usr/src/kernel-headers-2.4.22-1-686/include/
and it compiles now. I'm not sure if what I've done is exactly right,
perhaps someone can tell me if there's a more correct way.
It seems to work (I've not brought it down to the phone line yet). However
the adsl-config script is nowhere to be found. I've a slightly old version
of sarge (late November). Does anyone know if it's packaged for debian?
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!