[chan-capi-users] Compiling chan_capi 1.1.1 on Slackware 12.1
Armin Schindler
armin at melware.de
Tue Oct 21 18:47:52 CEST 2008
On Mon, 20 Oct 2008, Hector Ortiz wrote:
> Hello,
>
> I am having trouble compiling chan_capi on a Slackware 12.1 system. When I
> run make I get the following error:
>
> ./create_config.sh "/usr/include"
> Checking Asterisk version... 1.4.22
> * found Asterisk version 1.4
> Using Asterisk 1.4 API
> * found stringfield in ast_channel
> * found 'indicate' with data
> * found extended ast_channel_alloc
> * found second extended ast_channel_alloc
> * found send_digit_end with duration
> config.h complete.
>
> gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g -I./libcapi20 -I/usr/include -D_REENTRANT
> -D_GNU_SOURCE
> -O6 -march=i686 -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c
> chan_capi.c -o chan_capi.o
> gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g -I./libcapi20 -I/usr/include -D_REENTRANT
> -D_GNU_SOURCE
> -O6 -march=i686 -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO -c
> chan_capi_utils.c -o chan_capi_utils.o
> In file included from chan_capi20.h:28,
> from chan_capi_utils.c:21:
> /usr/include/linux/capi.h:80: error: expected ':', ',', ';', '}'
> or '__attribute__' before '*' token
> make: *** [chan_capi_utils.o] Error 1
>
> Compiling chan_capi 1.1.1 on Slackware 11 worked flawlessly. I compared
> the /usr/include/linux/capi.h files from both slack 11 and 12.1 and they
> looked identical. I have no idea what the problem could be. Any help would
> be appreciated.
I don't know anything about Slackware, but if capi.h is really identical,
maybe one of the other capi header files isn't:
/usr/include/capi20.h
/usr/include/capicmd.h
/usr/include/capiutils.h
What kernelversion is used?
Armin
More information about the Chan-capi-users
mailing list