[Asterisk-Users] Problem at compiling zaptel

Lane Hoskins lane at automatedhorizons.net
Thu Jan 15 07:45:19 MST 2004


Hello,

I'm also new to * but I think that this is what we had to do:

You need to make sure that the following packages are installed on your
system:
-OpenSSL-Devel
-Ncurses
-Ncurses-Devel (C++)
-sox
-kernel sourses
-kernel development
-bison
-newt
-newt-devel
-readline
-readline-devel

If you already have all of these I know that there were some bugs in the
latest CVS but I'm not sure if that's the problem. I'm also curious
which distribution you're running. If you do have these please do the
following and then try to compile again:

In /usr/src/linux
#make mrproper
#make menuconfig (exit without changing anything)
#make dep

then in /usr/src/zaptel
make clean install

Hope this helps


Lane Hoskins, MCP
Network Engineer
540.767.7626



-----Original Message-----
From: Franz Edler [mailto:franz.edler at utanet.at] 
Sent: Thursday, January 15, 2004 9:19 AM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Problem at compiling zaptel

Hi all!

Can anybody please give me some advice, what is wrong at my first try to
compile Asterisk. I have successfully downloaded the sources from CVS,
but
now the next step at zaptel " clean; make install" fails. 

Please have a look at the error-log below. 
There must be a fundamental mis-configuration I suppose, but I am
unfortunately not an expert in this area.

Franz

------ error log -----------------------------------------------------

lpc:/usr/src # cd zaptel
lpc:/usr/src/zaptel # make clean; make install rm -f torisatool makefw
tor2fw.h rm -f zttool rm -f *.o ztcfg tzdriver sethdlc sethdlc-new rm -f
zonedata.lo tonezone.lo libtonezone.so.1.0 *.lo rm -f gendigits tones.h
rm
-f libtonezone* rm -f tor2ee rm -f core
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE   -DSTANDALONE_ZAPATA   -c -o
gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
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/include/linux/module.h:20,
                 from zaptel.c:44:
/usr/include/asm/module.h:54:2: #error unknown processor family In file
included from /usr/include/linux/mm.h:205,
                 from /usr/include/asm/pci.h:7,
                 from /usr/include/linux/pci.h:677,
                 from zaptel.c:46:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a
constant In file included from zaptel.c:48:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the
compilation
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header
files
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal
and
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system
header
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules
please do
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the
symbolic
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname
-r`/build
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error "   - cd /usr/src/linux"
/usr/include/linux/version.h:24:2: #error "   - make mrproper"
/usr/include/linux/version.h:25:2: #error "   - make cloneconfig"
/usr/include/linux/version.h:26:2: #error "   - make dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When compiling, make sure
to
use the following"
/usr/include/linux/version.h:29:2: #error "   compiler option to use the
correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error "   -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error "   instead of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error "   Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:38:2: #error
"======================================================="
In file included from zaptel.h:36,
                 from zaptel.c:82:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the
compilation
of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header
files
from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal
and
may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system
header
files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules
please do
the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the
symbolic
link"
/usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname
-r`/build
exists and points to"
/usr/include/linux/version.h:20:2: #error "   the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error "   - cd /usr/src/linux"
/usr/include/linux/version.h:24:2: #error "   - make mrproper"
/usr/include/linux/version.h:25:2: #error "   - make cloneconfig"
/usr/include/linux/version.h:26:2: #error "   - make dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When compiling, make sure
to
use the following"
/usr/include/linux/version.h:29:2: #error "   compiler option to use the
correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error "   -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error "   instead of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error "   -I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error "   Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:38:2: #error
"======================================================="
In file included from zaptel.c:82:
zaptel.h:1375:41: missing binary operator before token "("
zaptel.c: In function `zt_ctl_open':
zaptel.c:1681: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:481)
zaptel.c: In function `zt_chan_open':
zaptel.c:1688: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:481)
zaptel.c: In function `zt_ctl_release':
zaptel.c:1695: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:493)
zaptel.c: In function `zt_chan_release':
zaptel.c:1702: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:493)
zaptel.c: In function `zt_timing_open':
zaptel.c:2003: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:481)
zaptel.c: In function `zt_timer_release':
zaptel.c:2038: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:493)
zaptel.c: In function `zt_specchan_open':
zaptel.c:2067: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:481)
zaptel.c: In function `zt_specchan_release':
zaptel.c:2089: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:493)
zaptel.c: In function `zt_open':
zaptel.c:2124: error: invalid operands to binary &
zaptel.c: In function `zt_read':
zaptel.c:2155: error: invalid operands to binary &
zaptel.c: In function `zt_write':
zaptel.c:2189: error: invalid operands to binary &
zaptel.c: In function `zt_release':
zaptel.c:2409: error: invalid operands to binary &
zaptel.c: In function `zt_ioctl':
zaptel.c:3946: error: invalid operands to binary &
zaptel.c: In function `zt_poll':
zaptel.c:5492: error: invalid operands to binary &
make: *** [zaptel.o] Error 1
lpc:/usr/src/zaptel #

_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users



More information about the asterisk-users mailing list