[Asterisk-Users] zaptel compile error

2004-10-15 Thread Franz Edler
Hi all,

I am trying to compile Asterisk beginning with zaptel.
Now I get 2 compile errors (see below).

Can anyone give me a hint?

Thanks
Franz
-

sip:/usr/src/zaptel # make install
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\   -c -o gendigits.o gendigits.c
cc -o gendigits gendigits.o -lm
./gendigits
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\makefw.c   -o makefw
./makefw tormenta2.rbt tor2fw  tor2fw.h
Loaded 69900 bytes from file
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\   -c -o ztcfg.o ztcfg.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\ -DBUILDING_TONEZONE -o zonedata.lo
zonedata.c
cc -c -fPIC -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\ -DBUILDING_TONEZONE -o tonezone.lo
tonezone.c
ar rcs libtonezone.a zonedata.lo tonezone.lo
cc -o ztcfg ztcfg.o -lm -L. libtonezone.a
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\   -c -o torisatool.o torisatool.c
cc -o torisatool torisatool.o
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE-DSTANDALONE_ZAPATA
-DZAPTEL_CONFIG=\/etc/zaptel.conf\   -c -o ztmonitor.o ztmonitor.c
cc -o ztmonitor ztmonitor.o
cc -c ztspeed.c
cc -o ztspeed ztspeed.o
make -C /usr/src/linux-2.6 SUBDIRS=/usr/src/zaptel modules
make[1]: Entering directory `/usr/src/linux-2.6.5-7.108'
Makefile:438: .config: No such file or directory

WARNING: Symbol version dump /usr/src/linux-2.6.5-7.108/Module.symvers is
missing, modules will have CONFIG_MODVERSIONS disabled.

  CC [M]  /usr/src/zaptel/zaptel.o
/bin/sh: line 1: scripts/basic/fixdep: No such file or directory
make[2]: *** [/usr/src/zaptel/zaptel.o] Error 1
make[1]: *** [_module_/usr/src/zaptel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.5-7.108'
make: *** [linux26] Error 2
sip:/usr/src/zaptel #


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Asterisk as a Carrier SIP-PSTN Gateway

2004-03-24 Thread Franz Edler
Hi all,

I do not have any experience with Asterisk but I suppose that in principle
it should be possible to use Asterisk as a pure Gateway between SIP and PSTN
for carrier application. But maybe this is not the right equipment e.g. from
reliability or administrative point of view.

From PSTN traffic estimation there will be up to 100 E1 interfaces. 

Does anyone have any suggestions?

Franz

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Still problems at compiling

2004-01-20 Thread Franz Edler
Hello experts,

to avoid any unknown problems with my Linux installation I have now as a
last resort method installed SuSE Linux 9.0 a new and have downloaded a
fresh copy of Asterisk via CVS.

Then I followed the steps of the Getting started with Asterisk and
compiled successfully zaptel and libpri (as far as I can see). But when I
compile asterisk I get an error. I have attached the sysout log below.

Any hint and help highly appreciated.
What is wrong.

Franz

 the sysout log during make clean and make install of asterisk -

linux:/usr/src/asterisk # make clean
for x in res channels pbx apps codecs formats agi cdr astman stdtime; do
make -C $x clean || exit 1 ; done
make[1]: Entering directory `/usr/src/asterisk/res'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/res'
make[1]: Entering directory `/usr/src/asterisk/channels'
rm -f *.so *.o .depend
rm -f busy.h ringtone.h gentone gentone-ulaw
make[1]: Leaving directory `/usr/src/asterisk/channels'
make[1]: Entering directory `/usr/src/asterisk/pbx'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/pbx'
make[1]: Entering directory `/usr/src/asterisk/apps'
rm -f *.so *.o look .depend
make[1]: Leaving directory `/usr/src/asterisk/apps'
make[1]: Entering directory `/usr/src/asterisk/codecs'
rm -f *.so *.o .depend
! [ -d g723.1 ] || make -C g723.1 clean
! [ -d g723.1b ] || make -C g723.1b clean
make -C gsm clean
make[2]: Entering directory `/usr/src/asterisk/codecs/gsm'
rm -f  */*.o\
./tst/lin2cod ./tst/lin2txt \
./tst/cod2lin ./tst/cod2txt \
./tst/gsm2cod   \
./tst/*.*.*
find . \( -name core -o -name foo \) \
-print | xargs rm -f
rm -f ./lib/libgsm.a ./add-test/add \
./bin/toast ./bin/tcat ./bin/untoast\
./gsm-1.0.tar.Z
make[2]: Leaving directory `/usr/src/asterisk/codecs/gsm'
make -C lpc10 clean
make[2]: Entering directory `/usr/src/asterisk/codecs/lpc10'
rm -f *.o ./liblpc10.a
make[2]: Leaving directory `/usr/src/asterisk/codecs/lpc10'
make -C ilbc clean
make[2]: Entering directory `/usr/src/asterisk/codecs/ilbc'
rm -f libilbc.a *.o
make[2]: Leaving directory `/usr/src/asterisk/codecs/ilbc'
make[1]: Leaving directory `/usr/src/asterisk/codecs'
make[1]: Entering directory `/usr/src/asterisk/formats'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/formats'
make[1]: Entering directory `/usr/src/asterisk/agi'
rm -f *.so *.o look .depend
make[1]: Leaving directory `/usr/src/asterisk/agi'
make[1]: Entering directory `/usr/src/asterisk/cdr'
rm -f *.so *.o .depend
make[1]: Leaving directory `/usr/src/asterisk/cdr'
make[1]: Entering directory `/usr/src/asterisk/astman'
rm -f *.o astman .depend
make[1]: Leaving directory `/usr/src/asterisk/astman'
make[1]: Entering directory `/usr/src/asterisk/stdtime'
rm -f libtime.a *.o test .depend
make[1]: Leaving directory `/usr/src/asterisk/stdtime'
rm -f *.o *.so asterisk .depend
rm -f build.h
rm -f ast_expr.c
make -C db1-ast clean
make[1]: Entering directory `/usr/src/asterisk/db1-ast'
rm -f libdb1.a libdb.so.2 hash.o hash_bigkey.o hash_buf.o hash_func.o
hash_log2.o hash_page.o ndbm.o bt_close.o bt_conv.o bt_debug.o bt_delete.o
bt_get.o bt_open.o bt_overflow.o bt_page.o bt_put.o bt_search.o bt_seq.o
bt_split.o bt_utils.o db.o mpool.o rec_close.o rec_delete.o rec_get.o
rec_open.o rec_put.o rec_search.o rec_seq.o rec_utils.o  hash.os
hash_bigkey.os hash_buf.os hash_func.os hash_log2.os hash_page.os ndbm.os
bt_close.os bt_conv.os bt_debug.os bt_delete.os bt_get.os bt_open.os
bt_overflow.os bt_page.os bt_put.os bt_search.os bt_seq.os bt_split.os
bt_utils.os db.os mpool.os rec_close.os rec_delete.os rec_get.os rec_open.os
rec_put.os rec_search.os rec_seq.os rec_utils.os
make[1]: Leaving directory `/usr/src/asterisk/db1-ast'
make -C stdtime clean
make[1]: Entering directory `/usr/src/asterisk/stdtime'
rm -f libtime.a *.o test .depend
make[1]: Leaving directory `/usr/src/asterisk/stdtime'

linux:/usr/src/asterisk # make install
./mkdep -pipe  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -g  -Iinclude -I../include -D_REENTRANT -D_GNU_SOURCE
-O6 -march=i686  -DZAPTEL_OPTIMIZATIONS
-DASTERISK_VERSION=\CVS-01/20/04-10:14:14\ -DINSTALL_PREFIX=\\
-DASTETCDIR=\/etc/asterisk\ -DASTLIBDIR=\/usr/lib/asterisk\
-DASTVARLIBDIR=\/var/lib/asterisk\ -DASTVARRUNDIR=\/var/run\
-DASTSPOOLDIR=\/var/spool/asterisk\ -DASTLOGDIR=\/var/log/asterisk\
-DASTCONFPATH=\/etc/asterisk/asterisk.conf\
-DASTMODDIR=\/usr/lib/asterisk/modules\
-DASTAGIDIR=\/var/lib/asterisk/agi-bin\ -DBUSYDETECT_MARTIN
-DNEW_PRI_HANGUP  `ls *.c`
cli.c:31:19: build.h: No such file or directory
dlfcn.c:40:25: mach-o/dyld.h: No such file or directory
dlfcn.c:41:26: mach-o/nlist.h: No such file or directory
dlfcn.c:42:28: mach-o/getsect.h: No such file or directory
for x in res channels pbx apps codecs formats agi cdr astman 

RE: [Asterisk-Users] Still problems at compiling

2004-01-20 Thread Franz Edler
 From: Patrick  Sent: Tuesday, January 20, 2004 2:29 PM
 
 Did you actually read the error message and try to understand  solve
 the problem? 

No, being a Linux newbee and under a stress condition, I did not.
But meanwhile I did and I installed several additional packages and now the
compilation came to an end and brought an executable asterisk code.
There were also various warnings during compilation which I generously
ignored for this time

Thanks for your patience with a stressed newbee.

 Patrick
 
 ___
 Asterisk-Users mailing list
 [EMAIL PROTECTED]
 http://lists.digium.com/mailman/listinfo/asterisk-users
 To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] compiling problems

2004-01-18 Thread Franz Edler
Hello,

I still have problems with compiling Asterisk, and I am still on the first
step at zaptel make clean; make install.

I assume, that the troubles I have stem from a recent kernel-update I made.
I upgraded from k_athlon_2.4.21_99_i586 to k_athlon_2.4.21_166_i586 via YaST
Online Update..

Now I learned, that I have to provide also the kernel-sources for compiling
zaptel. I have done that, but at the end of make install of zaptel I get the
following errors on unresolved symbols:

/sbin/depmod -a
depmod: *** Unresolved symbols in 
/lib/modules/2.4.21-166-athlon/misc/wcusb.o
depmod: *** Unresolved symbols in 
/lib/modules/2.4.21-166-athlon/misc/zaptel.o
depmod: *** Unresolved symbols in 
/lib/modules/2.4.21-166-athlon/misc/ztd-eth.o

My experience on development tools is unfortunately very small.
What do I have to do to move forward?

Any help very appreciated.

Franz


___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Compiling problems with SuSE

2004-01-18 Thread Franz Edler
 From: Dustin Knuttgen on Sunday, January 18, 2004 11:47 PM

 We tried to use SuSE initially and had no luck compiling zaptel on
 either 8.2 or 9.0. We even had Digium take a look. After working on it
 for days we finally switched to Red Hat 9. 

Is there anyone who succeeded in compiling Asterisk with SuSE 8.2 or 9.0?

Franz

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Problem at compiling zaptel

2004-01-15 Thread Franz Edler
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: #errorthe 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: #errorcompiler 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: #errorinstead 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: #errorPlease 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: 

[Asterisk-Users] Problem at compiling zaptel (again)

2004-01-15 Thread Franz Edler
Hi all!

Sorry, the error-log in my previous mail was disturbed.

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: #errorthe 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: #errorcompiler 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: #errorinstead 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: #errorPlease 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

RE: [Asterisk-Users] linux journal article on asterisk

2004-01-14 Thread Franz Edler
 From: [EMAIL PROTECTED] Sent: Wednesday, January 14, 2004 

 For anybody who didn't know there is an article on asterisk in February's
 Linux Journal.

Can you please provide a link to this article?
Franz

___
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users