[BALU] asterisk 1.4 and zaptel compile on ubuntu

Robby Workman rw at rlworkman.net
Thu Jun 7 16:36:13 CDT 2007


Allan Wilson wrote:
> Okay, I got the box upgraded to Feisty and I installed the kernel source
> and
> headers. I did the following steps and got an error when I tried to make
> the
> kernel.
> 
> cd /usr/src
> sudo tar xjvf linux-source-2.6.tar.bz2
> sudo ln -s /usr/src/linux-source-2.6.20 /usr/src/linux
> sudo mv /usr/src/linux/include /usr/src/linux/include2
> sudo ln -s /usr/src/linux-headers-2.6.20-15/include /usr/src/linux/include
> cd linux
> /usr/src/linux$ sudo make
> scripts/kconfig/conf -s arch/i386/Kconfig
> ***
> *** You have not yet configured your kernel!
> ***
> *** Please run some configurator (e.g. "make oldconfig" or
> *** "make menuconfig" or "make xconfig").
> ***
> make[2]: *** [silentoldconfig] Error 1
> make[1]: *** [silentoldconfig] Error 2
> make: *** No rule to make target `include/config/auto.conf', needed by
> `include/config/kernel.release'.  Stop.
> zm at australia:/usr/src/linux$
> 
> 
> Then I went ahead and tried to complile and install zaptel. It installed
> with no errors but after running updatedb and searching for zaptel it
> didn't
> find anything but what was in the /usr/src/zaptel directory. Any ideas on
> where I went wrong. Also I dont even have a misc directory in
> /lib/modules/2.6.20?????/.


The headers in /usr/include should match whatever kernel glibc was
compiled against, so what you just did is not correct.  The kernel
headers package provided by your distribution is the one that you
almost certainly should be using.

Since the zaptel module is compiling against your running kernel,
it's going to look for those kernel sources in this directory:
/lib/modules/$(uname -r)/build  -- that should be a symlink to
wherever that kernel's source is.  Assuming you pulled the
kernel-source package from your distribution repository, I would
expect that to already be set up properly.

You should be able to get the config of your running kernel at
/proc/config.gz -- to put it into the right place, this should
work:  zcat /proc/config.gz > /lib/modules/$(uname -r)/build/.config

As a final note, I feel it's only fair to say that I've never even
attempted to do anything with asterix, nor do I use Ubuntu.  The
information I posted above is generic, and as such, should apply
pretty universally in theory, but we all know how that can work...

HTH,
RW



More information about the Members mailing list