[asterisk-users] Error compiling Zaptel on CentOS 5

2007-04-25 Thread Carlos Chavez
I am getting the following error compiling Zaptel 1.2.17.1 and 1.4.2.1
on a CentOS 5 machine:

Compile xpp (version trunk-r3495)
  CC [M]  /usr/src/zaptel-1.2.17.1/xpp/card_fxo.o
  CC [M]  /usr/src/zaptel-1.2.17.1/xpp/card_fxs.o
  CC [M]  /usr/src/zaptel-1.2.17.1/xpp/xbus-core.o
/usr/src/zaptel-1.2.17.1/xpp/xbus-core.c: En la función ‘debugfs_open’:
/usr/src/zaptel-1.2.17.1/xpp/xbus-core.c:171: error: ‘struct inode’ no
tiene un miembro llamado ‘u’
make[3]: *** [/usr/src/zaptel-1.2.17.1/xpp/xbus-core.o] Error 1
make[2]: *** [/usr/src/zaptel-1.2.17.1/xpp] Error 2
make[1]: *** [_module_/usr/src/zaptel-1.2.17.1] Error 2
make[1]: se sale del directorio `/usr/src/kernels/2.6.18-8.1.1.el5-i686'
make: *** [all] Error 2

What changed on this new version that it will not compile.  Zaptel
1.2.16 and 1.4.1 compile on the same machine without any problems.

-- 
Telecomunicaciones Abiertas de Mexico S.A. de C.V.
Carlos Chávez Prats
Director de Tecnología
+52-55-91169161 ext 2001


signature.asc
Description: This is a digitally signed message part
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] Error compiling zaptel 1.4.0

2007-03-16 Thread Chris Nighswonger

On 3/16/07, Kevin P. Fleming <[EMAIL PROTECTED]> wrote:

Chris Nighswonger wrote:
>  I am working with a fresh install of fc6.

Kernel 2.6.20 was released after Zaptel 1.4.0, so it will not build
against that kernel. Either use an older kernel, use the SVN version of
Zaptel branch-1.4, or wait for the release of Zaptel 1.4.1 which should
occur later today.


I used the SVN version and it compiled without complaint!

Thanks Kevin.

Chris
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [asterisk-users] Error compiling zaptel 1.4.0

2007-03-16 Thread Kevin P. Fleming
Chris Nighswonger wrote:
>  I am working with a fresh install of fc6.

Kernel 2.6.20 was released after Zaptel 1.4.0, so it will not build
against that kernel. Either use an older kernel, use the SVN version of
Zaptel branch-1.4, or wait for the release of Zaptel 1.4.1 which should
occur later today.
___
--Bandwidth and Colocation provided by Easynews.com --

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


[asterisk-users] Error compiling zaptel 1.4.0

2007-03-16 Thread Chris Nighswonger

Hi all,
 I decided the best way to get to know * well is to do it from
scratch. Having read the majority of the  "Asterisk: The Future of
Telephony" I am now attempting to compile zaptel 1.4.0 and am receving
the very same series of errors mentioned in this post on the forums:

http://forums.digium.com/viewtopic.php?t=13619&highlight=zaptel1+++zttranscode++error

However, there has been no solution offered to this issue. I am
running 2.6.20-1.2925.fc6. I have combed through the various
suggestions for issues compiling zaptel. I do have the kernel-devel
package installed and the proper sym links, etc. When performing 'make
linux26' it blows chunks trying to compile zttranscode.o. Here is what
it looks like:

 CC [M]  /usr/src/zaptel-1.4.0/zttranscode.o
/usr/src/zaptel-1.4.0/zttranscode.c: In function 'zt_tc_open':
/usr/src/zaptel-1.4.0/zttranscode.c:192: error: invalid use of
undefined type 'struct page'
/usr/src/zaptel-1.4.0/zttranscode.c:193: error: invalid use of
undefined type 'struct page'
/usr/src/zaptel-1.4.0/zttranscode.c:194: error: increment of pointer
to unknown structure
/usr/src/zaptel-1.4.0/zttranscode.c:194: error: arithmetic on pointer
to an incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:195: error: implicit declaration
of function 'SetPageReserved'
/usr/src/zaptel-1.4.0/zttranscode.c: In function 'ztc_release':
/usr/src/zaptel-1.4.0/zttranscode.c:208: error: invalid use of
undefined type 'struct page'
/usr/src/zaptel-1.4.0/zttranscode.c:209: error: invalid use of
undefined type 'struct page'
/usr/src/zaptel-1.4.0/zttranscode.c:210: error: increment of pointer
to unknown structure
/usr/src/zaptel-1.4.0/zttranscode.c:210: error: arithmetic on pointer
to an incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:211: error: implicit declaration
of function 'ClearPageReserved'
/usr/src/zaptel-1.4.0/zttranscode.c: In function 'zt_tc_mmap':
/usr/src/zaptel-1.4.0/zttranscode.c:370: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:376: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:376: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:378: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:378: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: implicit declaration
of function 'remap_pfn_range'
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: 'PAGE_SHARED'
undeclared (first use in this function)
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: (Each undeclared
identifier is reported only once
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: for each function it
appears in.)
make[2]: *** [/usr/src/zaptel-1.4.0/zttranscode.o] Error 1
make[1]: *** [_module_/usr/src/zaptel-1.4.0] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2925.fc6-i686'
make: *** [linux26] Error 2

 and dumps me back to the prompt.

 I am working with a fresh install of fc6.

 Any help is appriciated.

Chris

--
Chris Nighswonger
Network & Systems Director
Foundations Bible College & Seminary
www.foundations.edu
www.fbcradio.org
[EMAIL PROTECTED]
V:910-892-8761
C:919-820-5473
-
NOTICE: The information contained in this electronic mail message is
intended only for the use of the intended recipient, and may also be
protected by the Electronic Communications Privacy Act, 18 USC
Sections 2510-2521. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please reply to the
sender, and delete the original message. Thank you.
___
--Bandwidth and Colocation provided by Easynews.com --

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


Re: [Asterisk-Users] Error compiling zaptel

2006-01-23 Thread Steve Gladden
Bummer - Possibly a bug
The stable stuff compiles and runs fine :(
Steve
-


> 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
>
>
>
>
>
> ___
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>

___
--Bandwidth and Colocation provided by Easynews.com --

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


[Asterisk-Users] Error compiling zaptel

2006-01-23 Thread Steve Gladden
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





___
--Bandwidth and Colocation provided by Easynews.com --

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


RE: [Asterisk-Users] Error compiling Zaptel

2004-05-11 Thread Ben Merrills








Do you have a symlink in /usr/src as
follows?

 

lrwxrwxrwx    1 root src    20
May  7 11:01 linux -> kernel-source-2.4.18

 

(note that it may differ depending on the
kernel source you have?)

 

If you’ve installed via an apt style
package manager, and havn’t recompiled your kernel, then visit www.kernel.org, download a stable kernel (I recommended
2.4.26).

 

Extract it to
/usr/src/linux-

 

Then create a symlink ln –s /usr/src/ /usr/src/linux

 

This should resolve the issues you’re
having there, else I’ve missed the point and just waffled for 5 minutes
;)

 

Hope that helps,

 

Ben Merrills

Griffin Internet

 









From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of San Singhania
Sent: 11 May 2004 16:17
To:
[EMAIL PROTECTED]
Subject: [Asterisk-Users] Error
compiling Zaptel



 



Hi,





 





I just finished downloading asterisk and when trying to compile
the zaptel drivers, get the following errors. I dont have a clue whats going
on...





can someone help.





 





In file included from /usr/include/linux/module.h:20,
from zaptel.c:44:
/usr/include/linux/modversions.h:1:2:#error Modules should never use
kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: error but rather headers from an
appropriate kernel-source package.
/usr/include/linux/modversions.h:3:2: #error Change -I/usr/src/linux/include
(or similar) to
/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname
-r)/build/include
/usr/include/linux/modversions.h:5:2: #error to build against the
currently-running kernel.
make: *** [zaptel.o] Error 1





 





Thanks





 





San





 










RE: [Asterisk-Users] Error compiling Zaptel

2004-05-11 Thread Jay Milk
Title: Message



Your 
question would be better posed on a Linux site, as you're having problems with 
your linux installation, not so much with Asterisk itself.  Search google 
for "linux recompile kernel" and add the actual linux distro as a search term 
(redhat, debian, freebsd, mandrake, whatever).  See if you find your 
answer, if not, ask in the same place you find close 
matches.

  
  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of San 
  SinghaniaSent: Tuesday, May 11, 2004 11:11 AMTo: 
  [EMAIL PROTECTED]Subject: Re: [Asterisk-Users] Error 
  compiling Zaptel
  Ok, how do I go about doing that? I am not exactly a linux expert, infact 
  this is the 
  2nd time I am installing it. I would really appreciate some direction on 
  this.
   
  Thanks
   
  San
   
   
   
  > Lets draw your attention to these excerpts of the errors you sent. 
  >Once you read those error messages, you should formulate the 
  opinion>that having the kernel source for your running kernel is 
  IMPORTANT. Then>you will also need to make sure you have the proper 
  modversions.h built>by the kernel source too. >-- >Steven 
  Critchfield  <[EMAIL PROTECTED]>


Re: [Asterisk-Users] Error compiling Zaptel

2004-05-11 Thread San Singhania



Ok, how do I go about doing that? I am not exactly a linux expert, infact 
this is the 
2nd time I am installing it. I would really appreciate some direction on 
this.
 
Thanks
 
San
 
 
 
> Lets draw your attention to these excerpts of the errors you sent. 
>Once you read those error messages, you should formulate the 
opinion>that having the kernel source for your running kernel is 
IMPORTANT. Then>you will also need to make sure you have the proper 
modversions.h built>by the kernel source too. >-- >Steven 
Critchfield  <[EMAIL PROTECTED]>


Re: [Asterisk-Users] Error compiling Zaptel

2004-05-11 Thread Steven Critchfield
On Tue, 2004-05-11 at 10:16, San Singhania wrote:
> Hi,
>  
> I just finished downloading asterisk and when trying to compile the
> zaptel drivers, get the following errors. I dont have a clue whats
> going on...
> can someone help.
>  

> /usr/include/linux/modversions.h:1:2:#error Modules should never use
> kernel-headers system headers,
> /usr/include/linux/modversions.h:2:2: error but rather headers from an
> appropriate kernel-source package.

> /usr/include/linux/modversions.h:5:2: #error to build against the
> currently-running kernel.
> make: *** [zaptel.o] Error 1

Lets draw your attention to these excerpts of the errors you sent. 

Once you read those error messages, you should formulate the opinion
that having the kernel source for your running kernel is IMPORTANT. Then
you will also need to make sure you have the proper modversions.h built
by the kernel source too. 
-- 
Steven Critchfield  <[EMAIL PROTECTED]>

___
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] Error compiling Zaptel

2004-05-11 Thread San Singhania



Hi,
 
I just finished downloading asterisk and when trying to compile the 
zaptel drivers, get the following errors. I dont have a clue whats going 
on...
can someone help.
 
In file included from /usr/include/linux/module.h:20,from 
zaptel.c:44:/usr/include/linux/modversions.h:1:2:#error Modules should never 
use kernel-headers system headers,/usr/include/linux/modversions.h:2:2: 
error but rather headers from an appropriate kernel-source 
package./usr/include/linux/modversions.h:3:2: #error Change 
-I/usr/src/linux/include (or similar) 
to/usr/include/linux/modversions.h:4:2: #error -I/lib/modules/$(uname 
-r)/build/include/usr/include/linux/modversions.h:5:2: #error to build 
against the currently-running kernel.make: *** [zaptel.o] Error 1
 
Thanks
 
San
 


[Asterisk-Users] Error compiling zaptel

2004-03-04 Thread Hans-Henrik Andresen
Hi,

On my Suse90-out of box I had downloaded from CVS asterisk.

I'm running kernel 2.4.21-99-smp4g with 4cpu's, and the kernelsource is in
/usr/src/linux

Asterisk compiles with no problem.

But when compiling zaptel I got this error

..


zaptel.c: In function `zt_ec_chunk':
zaptel.c:4981: error: parse error before "unsigned"
zaptel.c: In function `process_timers':
zaptel.c:5500: error: parse error before "unsigned"
zaptel.c: In function `zt_timer_poll':
zaptel.c:5513: error: parse error before "unsigned"
zaptel.c: In function `zt_chan_poll':
zaptel.c:5545: error: parse error before "unsigned"
zaptel.c: In function `zt_transmit':
zaptel.c:5728: error: parse error before "unsigned"
zaptel.c: In function `zt_receive':
zaptel.c:5820: error: parse error before "unsigned"
zaptel.c:5842: error: parse error before "unsigned"
zaptel.c:5852: error: parse error before "unsigned"
zaptel.c:5878: error: parse error before "unsigned"
zaptel.c:5889: error: parse error before "unsigned"
zaptel.c:5892: error: parse error before "unsigned"
make: *** [zaptel.o] Error 1


Any help on this ?



___
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