[asterisk-users] zaptel compilation problems with linux 2.6.19

Roman Yeryomin leroi.lists at gmail.com
Thu Nov 30 10:19:14 MST 2006


Hello!

I have problems compiling zaptel (tried 1.2.11, 1.2.10 and 1.4.0-beta2 -- all 
give the same error) with 2.6.19 kernel

  CC [M]  /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o
In file included 
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:26,     
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xdefs.h:93: error: 
conflicting types for 'bool'
include/linux/types.h:36: error: previous declaration of 'bool' was here
In file included 
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zconfig.h:9,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/zaptel.h:34,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xproto.h:29,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/xpd.h:27,
from /home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.c:28:
include/linux/config.h:10:3: warning: no newline at end of file
make[3]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp/card_fxo.o] 
Error 1
make[2]: *** [/home/roman/install/asterisk/zaptel-1.4.0-beta2/xpp] Error 2
make[1]: *** [_module_/home/roman/install/asterisk/zaptel-1.4.0-beta2] Error 2
make[1]: Leaving directory `/home/roman/install/kernel/linux-2.6.19'
make: *** [linux26] Error 2

seems that commenting out "typedef int bool;" in xpp/xdefs.h on line 93 works 
that out, but don't know if it's completely right thing to do

Roman


More information about the asterisk-users mailing list