RE: [Asterisk-Users] Problem at compiling zaptel

2004-01-15 Thread Lane Hoskins
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:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 9:19 AM
To: [EMAIL PROTECTED]
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: #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

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

2004-01-15 Thread Tilghman Lesher
On Thursday 15 January 2004 08:37, Franz Edler wrote:
 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.

snip

You don't have kernel-source and kernel-headers installed.

-Tilghman

___
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