Hi all,
I am trying to compile Asterisk 1.4.24 on an embedded PPC platform (MPC8349E) using the ELDK 4.2 toolset (Linux kernel 2.6.26.5). The configure script reports the following error:
[…]
[color=green]checking sys/capability.h usability… no
checking sys/capability.h presence… yes
configure: WARNING: sys/capability.h: present but cannot be compiled
configure: WARNING: sys/capability.h: check for missing prerequisite headers?
configure: WARNING: sys/capability.h: see the Autoconf documentation
configure: WARNING: sys/capability.h: section "Present But Cannot Be Compiled"
configure: WARNING: sys/capability.h: proceeding with the preprocessor’s result
configure: WARNING: sys/capability.h: in the future, the compiler will take precedence
configure: WARNING: ## ------------------------------- ##
configure: WARNING: ## Report this to www.asterisk.org ##
configure: WARNING: ## ------------------------------- ##
checking for sys/capability.h… yes[/color]
[…]
Subsequent attempts to build Asterisk fail:
[color=green] [CC] res_agi.c -> res_agi.o
In file included from /usr/include/sys/capability.h:34,
from res_agi.c:52:
/usr/include/linux/capability.h:73: error: parse error before ‘__le32’
/usr/include/linux/capability.h:75: error: parse error before ‘__le32’
/usr/include/linux/capability.h:78: error: parse error before ‘}’ token
make[1]: *** [res_agi.o] Error 1
make[1]: Leaving directory `/usr/local/src/asterisk-1.4.24/res’
make: *** [res] Error 2[/color]
Any suggestions on the best way to address this issue?
Thanks!