[Asterisk-Users] Error compiling zaptel

Steve Gladden
Mon, 23 Jan 2006 03:11:44 -0000

It's been about 2 months since I have updated my asterisk box.
I was running CVS HEAD and I notice a whole lot has changed since
my last update!

I'm running Debian Sarge up to date on a 2.4 Kernel.

I was updating about every 2 or 3 weeks and never had any problems
compiling zaptel/libpri/asterisk

I now am coming out of a deep sleep and want to get back into it again,
but zaptel will not compile.

Is this a bug that I just need to wait for to be fixed?

Or am I totally missing something that I need to make it compile?

Followed the intructions on the site...

Also noticed that everything now uses svn instead of CVS.

Here's what I get when I try to compile zaptel:

 make install
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\"/etc/zaptel.conf\"  -lm  gendigits.c   -o gendigits
./gendigits
gcc -I/lib/modules/2.4.27-2-386/build/include -O6 -DMODULE -D__KERNEL__
-DEXPORT_SYMTAB -I/lib/modules/2.4.27-2-386/build/drivers/net -Wall -I.
-Wstrict-prototypes -fomit-frame-pointer
-I/lib/modules/2.4.27-2-386/build/drivers/net/wan
-I/lib/modules/2.4.27-2-386/build/include/net -DMODVERSIONS -include
/lib/modules/2.4.27-2-386/build/include/linux/modversions.h
-DSTANDALONE_ZAPATA -o zaptel.o -c zaptel.c
zaptel.c:41:21: version.h: No such file or directory
In file included from
/lib/modules/2.4.27-2-386/build/include/linux/spinlock.h:6,
                 from
/lib/modules/2.4.27-2-386/build/include/linux/module.h:12,
                 from zaptel.c:45:
/lib/modules/2.4.27-2-386/build/include/asm/system.h: In function
`__set_64bit_var':
/lib/modules/2.4.27-2-386/build/include/asm/system.h:190: warning:
dereferencing type-punned pointer will break strict-aliasing rules
/lib/modules/2.4.27-2-386/build/include/asm/system.h:190: warning:
dereferencing type-punned pointer will break strict-aliasing rules
zaptel.c: In function `zt_ctl_ioctl':
zaptel.c:3476: error: `ZAPTEL_VERSION' undeclared (first use in this
function)
zaptel.c:3476: error: (Each undeclared identifier is reported only once
zaptel.c:3476: error: for each function it appears in.)
zaptel.c: In function `zt_init':
zaptel.c:6838: error: `ZAPTEL_VERSION' undeclared (first use in this
function)
make: *** [zaptel.o] Error 1


Any ideas what I should try next?

Thanks!

Steve