[Asterisk-Users] Compiling app_cepstral.c into Asterisk - failing

Lists lists at futuresync.com
Sat Jan 21 21:51:05 MST 2006



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of trixter aka
Bret McDanel
Sent: Saturday, January 21, 2006 11:33 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [Asterisk-Users] Compiling app_cepstral.c into Asterisk -
failing

On Sat, 2006-01-21 at 23:21 -0500, Lists wrote:
> In file included from app_cepstral.c:15:
> /usr/include/asterisk/file.h:27:2: #error You must include stdio.h before
> file.h!
> In file included from app_cepstral.c:15:
> /usr/include/asterisk/file.h:56: error: syntax error before '*' token
> /usr/include/asterisk/file.h:57: error: syntax error before '*' token
> In file included from app_cepstral.c:26:
> /usr/include/asterisk/cli.h:32: error: syntax error before string constant
> make[1]: *** [app_cepstral.so] Error 1
> make[1]: Leaving directory `/usr/src/asterisk/apps'
> make: *** [bininstall] Error 1
> [root at asterisk1 asterisk]#
> 

Add a line 
#include <stdio.h>
into the app_cepstral.c file before the #include <file.h> line.  That is
all that error tells you to do.


-- 
Trixter http://www.0xdecafbad.com     Bret McDanel
UK +44 870 340 4605   Germany +49 801 777 555 3402
US +1 360 207 0479 or +1 516 687 5200
FreeWorldDialup: 635378
http://www.sacaug.org/ Sacramento Asterisk Users Group

Thanks for that tip.  I made that correction and now it is stopping at:

gcc -D_GNU_SOURCE -shared -Xlinker -x -o app_cepstral.so app_cepstral.c -lz
-lm -lswift -lceplex_us -lceplang_en -lz -ldl -L/opt/swift/lib
-I/opt/swift/include
In file included from app_cepstral.c:27:
/usr/include/asterisk/cli.h:32: error: syntax error before string constant
make[1]: *** [app_cepstral.so] Error 1
make[1]: Leaving directory `/usr/src/asterisk/apps'
make: *** [bininstall] Error 1
[root at asterisk1 asterisk]#





More information about the asterisk-users mailing list