[Asterisk-Users] Problems compiling zaptel

Alejandro Acosta alejandro.acosta at comsat.com.ve
Tue Mar 9 21:16:04 MST 2004


Hello,
  This is my first message to the list..., I am new with asterisk, zaptel
and all this kind of things.
  Well, the case is: I have four days trying to compile zaptel and it has
been very imposible, I have searched the web, the mailing list archive, I
have read dozen of documents without success.
  I know that many of you recommend Red Hat as the linux distribution but I
would like to use Mandrake since all our servers are running it.
  I have already installed openssl-devel, kernel source code, bison, sox,
readline and readline-devel.
 I am running Mandrake 9.2 with kernel 2.4-22mdk10. I tried to compiled the
kernel using either kernel source from Mandrake and and I also tried with a
downloaded kernel from kernel.org. Both kernels gave me the same result.

This is what I have done so far:

- I downloaded kernel 2.4-22 file from kernel.org
- cd /usr/src
- tar -jxvf linux-2.4.22.tar.bz2
- ln -s linux-2.4.22 linux
- ln -s linux-2.4.22 linux-2.4
- cd /usr/src/linux
- make clean; make menuconfig
- saved without any change
- make mrproper
- make dep
- it finishes without any error


- cd /usr/src
- export CVSROOT=:pserver:anoncvs at cvs.digium.com:/usr/cvsroot
- cvs login          - the password is anoncvs.
- cvs checkout zaptel

- cd zaptel
- make clean; make install

Then, I receive the following:

--- cut here ---
[root at IPPBX zaptel]# make
gcc -I/usr/src/linux-2.4/include -O6 -DMODULE -D__KERNEL__ -DEXPORT_SYMTAB
-I/usr/src/linux/drivers/net -Wall -I. -Wstrict-prototypes
-fomit-frame-pointer -I/usr/src/linux/drivers/net/wan -I
/usr/src/linux/include -I/usr/src/linux/include/net   -DSTANDALONE_ZAPATA -c
zaptel.c
In file included from /usr/src/linux-2.4/include/linux/module.h:21,
                from zaptel.c:44:
/usr/include/linux/modversions.h:1:2: #error
"======================================================="
/usr/include/linux/modversions.h:2:2: #error  "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/modversions.h:3:2: #error  "files directly for the
compilation of kernel modules."
/usr/include/linux/modversions.h:4:2: #error  ""
/usr/include/linux/modversions.h:5:2: #error  "glibc now uses kernel header
files from a well-defined"
/usr/include/linux/modversions.h:6:2: #error  "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/modversions.h:7:2: #error  "These files are glibc
internal
and may not match the"
/usr/include/linux/modversions.h:8:2: #error  "currently running kernel.
They
should only be"
/usr/include/linux/modversions.h:9:2: #error  "included via other system
header
files - user space"
/usr/include/linux/modversions.h:10:2: #error  "programs should not directly
include  <linux/*.h> or"
/usr/include/linux/modversions.h:11:2: #error  "<asm/*.h> as well."
/usr/include/linux/modversions.h:12:2: #error  ""
/usr/include/linux/modversions.h:13:2: #error  "To build kernel modules
please
do the following:"
/usr/include/linux/modversions.h:14:2: #error  ""
/usr/include/linux/modversions.h:15:2: #error  " o Have the kernel sources
installed"
/usr/include/linux/modversions.h:16:2: #error  ""
/usr/include/linux/modversions.h:17:2: #error  " o Make sure that the
symbolic
link"
/usr/include/linux/modversions.h:18:2: #error  "   /lib/modules/`uname
-r`/build exists and points to"
/usr/include/linux/modversions.h:19:2: #error  "   the matching kernel
source
directory"
/usr/include/linux/modversions.h:20:2: #error  ""
/usr/include/linux/modversions.h:21:2: #error  " o Now copy
/boot/vmlinuz.version.h to"
/usr/include/linux/modversions.h:22:2: #error  "   /lib/modules/`uname
-r`/build/include/linux/version.h"
/usr/include/linux/modversions.h:23:2: #error  ""
/usr/include/linux/modversions.h:24:2: #error  " o When compiling, make sure
to
use the following"
/usr/include/linux/modversions.h:25:2: #error  "   compiler option to use
the
correct include files:"
/usr/include/linux/modversions.h:26:2: #error  ""
/usr/include/linux/modversions.h:27:2: #error  "   -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/modversions.h:28:2: #error  ""
/usr/include/linux/modversions.h:29:2: #error  "   instead of"
/usr/include/linux/modversions.h:30:2: #error  ""
/usr/include/linux/modversions.h:31:2: #error  "   -I/usr/include/linux"
/usr/include/linux/modversions.h:32:2: #error  ""
/usr/include/linux/modversions.h:33:2: #error  "   Please adjust the
Makefile
accordingly."
/usr/include/linux/modversions.h:34:2: #error
"======================================================="
--- cut here ---

So, I tried to follow the suggestions given in the error message but none of
then worked.

I did:

- ln -s /usr/src/linux /lib/modules/2.4.22-10mdk/build
- make clean
- make -I/lib/modules/build/include

and I receive the same error.

Thank you very much!!!, any help will be really appreciated.

Alejandro,-




More information about the asterisk-users mailing list