[asterisk-dev] make install in zaptel copies modules to wrong
location with Ubuntu 5.10
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Fri May 19 13:43:16 MST 2006
On Fri, May 19, 2006 at 01:33:01PM -0500, Kevin P. Fleming wrote:
> Mike Fedyk wrote:
>
> > One possible solution is to just copy the kernel modules in the zaptel
> > Makefile instead of calling the kernel Makefile. What do you think?
>
> We used to do that, but switched to using the kernel's Makefile because
> it is both more proper and easier to deal with distros that put things
> in odd places.
>
> However, if your distro kernel's sources do not match the running
> kernel, then you will have problems, as you experienced. Even the
> suggestion of overriding the KVERS variable on the make command line
> won't help, if /lib/modules/<foo>-${EXTRAVERSION}/build doesn't exist.
>
> In other words: this is very much a distro bug. If /lib/modules/`uname
> -r`/build/Makefile does not contain the same version/extraversion
> strings as `uname -r` reports, then the kernel sources are borked.
I'll just note that I experince practically none of those issues on my
Debian Sarge. I build zaptel modules for various kernels using a wrapper
(from the deb package) that passes KVERS and KSRC explicitly.
I build zaptel for variou kernels, not only my running kernel. At the
tiem of 'make install', the target directory probably doesn't exist, as
INSTALL_PREFIX is used for building the package.
--
Tzafrir Cohen sip:tzafrir at local.xorcom.com
icq#16849755 iax:tzafrir at local.xorcom.com
+972-50-7952406
tzafrir.cohen at xorcom.com http://www.xorcom.com
More information about the asterisk-dev
mailing list