Summary:ASTERISK-08830: Install is not using the right kernel version in /lib/modules
Reporter:tootai (tootai)Labels:
Date Opened:2007-02-18 03:54:03.000-0600Date Closed:2007-07-31 16:24:30
Versions:Frequency of
Environment:Attachments:( 0) zaptelInstall.log
( 1) zaptelInstallVerbose.log
Description:When doing a make install, all stuff is done in eg /lib/modules/2.6.8 (Debian SARGE) instead of uname -r, which is in our case 2.6.8-custom.1+vserver
Comments:By: Joshua C. Colp (jcolp) 2007-02-19 09:40:08.000-0600

We need to see the console output plus uname -r and any other information that could be of help.

By: tootai (tootai) 2007-02-19 10:32:30.000-0600

zaptel make update give:

At revision 2172

But I can't compile zaptel anymore

CC [M]  /usr/src/asterisk-trunk/zaptel/ztcodec_dte/base.o
/usr/src/asterisk-trunk/zaptel/ztcodec_dte/base.c: In function `wcdte_boot_processor':
/usr/src/asterisk-trunk/zaptel/ztcodec_dte/base.c:1448: error: `_binary_dte_firm_ima_start' undeclared (first use in this function)

Here is the uname -r output

keewi:/usr/src/asterisk-trunk/zaptel# uname -r

Please note that it will be very difficult for me to do further tests during the 2 next weeks.


By: Tzafrir Cohen (tzafrir) 2007-02-25 17:12:13.000-0600

If you don't need zttranscode, you can skip that module.

Which kernel do you use, exactly?
ls -l /lib/modules/`uname -r`/build

is that the source / headers of the current kernel?

By: tootai (tootai) 2007-03-05 04:07:58.000-0600

Yes, that the source of the current kernel. Here is the output you ask for:

ls -l /lib/modules/`uname -r`/build

lrwxrwxrwx  1 root root 28 Jan 21 15:26 /lib/modules/2.6.8-custom.1+vserver/build -> /usr/src/kernel-source-2.6.8


By: Tzafrir Cohen (tzafrir) 2007-03-07 01:42:17.000-0600

What is the output of:

 /sbin/modinfo ./zaptel.ko

One longshot:
Maybe it can get you on the right track.

By: tootai (tootai) 2007-03-07 02:52:09.000-0600


I don't create debs (make, make install) and also, I'm running Sarge with 2.6.8 kernel. Latest trunk zaptel still doesn't compile the zttranscode. I skipped the module, here is the output you ask for:

filename:       ./zaptel.ko
author:         Mark Spencer <markster@digium.com>
description:    Zapata Telephony Interface
license:        GPL
version:        SVN-trunk-r2289M
vermagic:       2.6.8-custom.1+vserver PENTIUM4 gcc-3.4
depends:        crc-ccitt


By: tootai (tootai) 2007-03-29 05:47:45

Any news about this matter? I still have the problem with todays SVN

version:        SVN-branch-1.4-r2343M
vermagic:       2.6.8-custom.1+vserver PENTIUM4 gcc-3.4


By: Tzafrir Cohen (tzafrir) 2007-03-29 07:04:52

sorry: could you please run the modinfo command from a different directory?

Is /lib/modules/2.6.8-custom.1+vserver/build a valid link? is /usr/src/kernel-source-2.6.8 indeed the directory in which you built your kernel?

Could you please post a complete trace of 'make install' ?

By: tootai (tootai) 2007-03-29 07:29:24

No problem, it's not a major problem ;-)

/lib/modules/2.6.8-custom.1+vserver$ ls -al
total 360
drwxr-xr-x  4 root root   4096 2007-03-29 11:55 .
drwxr-xr-x  5 root root     78 2007-03-29 11:54 ..
lrwxrwxrwx  1 root root     28 2007-01-21 15:26 build -> /usr/src/kernel-source-2.6.8
drwxr-xr-x  2 root root   4096 2007-03-29 11:54 extra
drwxr-xr-x  9 root root     85 2007-01-21 15:26 kernel
-rw-r--r--  1 root root  69631 2007-03-29 11:55 modules.alias
-rw-r--r--  1 root root     69 2007-03-29 11:55 modules.ccwmap
-rw-r--r--  1 root root  59138 2007-03-29 11:55 modules.dep
-rw-r--r--  1 root root     73 2007-03-29 11:55 modules.ieee1394map
-rw-r--r--  1 root root    430 2007-03-29 11:55 modules.inputmap
-rw-r--r--  1 root root    235 2007-03-29 11:55 modules.isapnpmap
-rw-r--r--  1 root root  54517 2007-03-29 11:55 modules.pcimap
-rw-r--r--  1 root root  32917 2007-03-29 11:55 modules.symbols
-rw-r--r--  1 root root 115667 2007-03-29 11:55 modules.usbmap
lrwxrwxrwx  1 root root     28 2007-01-21 15:26 source -> /usr/src/kernel-source-2.6.8

dh@keewi:/usr/src$ ls -al
lrwxrwxrwx   1 root src         9 2007-01-14 01:03 linux -> linux-2.6
lrwxrwxrwx   1 root src        20 2007-01-14 00:54 linux-2.4 -> kernel-source-2.4.27
lrwxrwxrwx   1 root src        19 2007-01-14 00:55 linux-2.6 -> kernel-source-2.6.8

dh@keewi:/lib/modules/2.6.8-custom.1+vserver/extra$ sudo modinfo ./zaptel.ko
filename:       ./zaptel.ko
author:         Mark Spencer <markster@digium.com>
description:    Zapata Telephony Interface
license:        GPL
version:        SVN-trunk-r2344M
vermagic:       2.6.8-custom.1+vserver PENTIUM4 gcc-3.4
depends:        crc-ccitt

What is also to notice that the modules are in extra dir, not in misc.


By: Tzafrir Cohen (tzafrir) 2007-03-31 02:30:36

Please run:

 modinfo zaptel

(and not modinfo ./zaptel.ko), to see what module should get loaded automatically by modprobe.

Also: again: could you please provide a complete trace of 'make install' ?

By: Tzafrir Cohen (tzafrir) 2007-03-31 02:35:21

Sorry, my mistake. I didn't see your trace.

Could you please run:  

 make install V=1

This will run the kernel make in verbose mode, and thus we'll see exactly what those INSTALL lines do.

By: tootai (tootai) 2007-04-02 08:07:32

Clearly you see where it goes! Interesting is that the rm stuff is always done in the right directory.


By: Tzafrir Cohen (tzafrir) 2007-05-05 23:39:02

This seems like a badly-configured kernel. The path 2.6.8 comes from the kernel sources themselves.

Was this the source tree used to build the kernel?

By: tootai (tootai) 2007-05-06 06:47:11

The one from Debian Sarge:

keewi:~# aptitude search kernel-source
v   kernel-source                                                         -
v   kernel-source-2.2                                                     -
v   kernel-source-2.2.20                                                  -
p   kernel-source-2.2.25                                                  - Linux kernel source for version 2.2.25
v   kernel-source-2.4                                                     -
v   kernel-source-2.4.10                                                  -
v   kernel-source-2.4.18                                                  -
i   kernel-source-2.4.27                                                  - Linux kernel source for version 2.4.27 with Debian patches
v   kernel-source-2.4.27-custom.7                                         -
v   kernel-source-2.6                                                     -
v   kernel-source-2.6.11                                                  -
i   kernel-source-2.6.8                                                   - Linux kernel source for version 2.6.8 with Debian patches
v   kernel-source-2.6.8-custom.1                                          -
v   kernel-source-2.6.8-custom.1+vserver                                  -
p   misdn-kernel-source                                                   - Source code for the mISDN modules
p   wacom-kernel-source                                                   - source for the wacom binary modules

keewi:~# uname -a
Linux keewi 2.6.8-custom.1+vserver #1 Sun Jan 21 14:39:42 CET 2007 i686 GNU/Linux


By: Tzafrir Cohen (tzafrir) 2007-05-24 15:28:35

let's test your kernel with a slightly different build system.

wget http://updates.xorcom.com/rapid/pool/main/z/zaptel/zaptel-source_1.2.16.xpp.r3712.sarge-1_all.deb
dpkg --install zaptel-source_1.2.16.xpp.r3712.sarge-1_all.deb

I recommend running the following as non-root to guarantee you will not break anything on the system. Though it will attempt not to break anything:

m-a -u . -t -i -k /lib/modules/`uname -r`/build build zaptel

If this ends without error, please provide the output of:

 dpkg -c zaptel-modules-*.deb

If this fails, please provide the build log (which will be under ./var_cache_modass )

By: tootai (tootai) 2007-05-25 10:37:24

Tzafrir, I think you missed something: it's Asterisk 1.4 not 1.2! I checked on xorcom website and didn't found any deb build concerning 1.4.

Do you perhaps just want me to compile, install and remove it imediatelly without running any Asterisk instance?

If I'm the only one having this problem, you can close this bug. I think you have better to do with your time and for far more urgent cases.


By: Jason Parker (jparker) 2007-07-09 17:58:02

Yes, it's just for testing purposes - you can install and immediately remove it.

However, I am almost certain that tzafrir was right in saying that it's an improperly configured kernel source tree.

By: Jason Parker (jparker) 2007-07-31 16:24:29

Please reopen if you confirm that this is not a kernel configuration issue.