spanDSP rxfax txfax problem

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

spanDSP rxfax txfax problem

Postby lancemsnyder » Tue Apr 17, 2007 10:45 am

I'm using asterisk 1.4.2

I have patched asterisk via asterisk.patch and manually edited configure.ac. I went through a bunch of crap just to get rxfax/txfax to show up in make menuselect, when I run make, this is what i get when it hits app_rxfax.c


Code: Select all
   [CC] app_rxfax.c -> app_rxfax.o
In file included from /usr/src/asterisk-new/asterisk-1.4.2/include/asterisk/translate.h:35,
                 from app_rxfax.c:38:
/usr/src/asterisk-new/asterisk-1.4.2/include/asterisk/plc.h:127: error: conflicting types for ‘plc_state_t’
/usr/local/include/spandsp/plc.h:128: error: previous declaration of ‘plc_state_t’ was here
/usr/src/asterisk-new/asterisk-1.4.2/include/asterisk/plc.h:140: error: conflicting types for ‘plc_rx’
/usr/local/include/spandsp/plc.h:142: error: previous declaration of ‘plc_rx’ was here
/usr/src/asterisk-new/asterisk-1.4.2/include/asterisk/plc.h:148: error: conflicting types for ‘plc_fillin’
/usr/local/include/spandsp/plc.h:150: error: previous declaration of ‘plc_fillin’ was here
/usr/src/asterisk-new/asterisk-1.4.2/include/asterisk/plc.h:154: error: conflicting types for ‘plc_init’
/usr/local/include/spandsp/plc.h:156: error: previous declaration of ‘plc_init’ was here
make[1]: *** [app_rxfax.o] Error 1
make: *** [apps] Error 2


I dont know where to go from here, anyone have any suggestions?
lancemsnyder
Newsterisk
 
Posts: 12
Joined: Tue Apr 17, 2007 10:35 am
Location: York, PA

Postby lancemsnyder » Tue Apr 17, 2007 1:49 pm

I'm using the latest snapshot of spandsp, and the app_rxfax.c/app_txfax.c which are the latest.
lancemsnyder
Newsterisk
 
Posts: 12
Joined: Tue Apr 17, 2007 10:35 am
Location: York, PA

Postby lancemsnyder » Tue Apr 17, 2007 2:42 pm

ok. I figured out the problem. my version of plc.h from the asterisk src and spanDSP's version of plc.h from /usr/local/include/spandsp/ were different. To remedy this, I copied the file from /usr/local/include/spandsp/plc.h to my asterisk/include/asterisk directory

Code: Select all
cp -a /usr/local/include/spandsp/plc.h /usr/src/asterisk-1.4.x/include/asterisk/


I hope this helps someone who was as frustrated as I was.
lancemsnyder
Newsterisk
 
Posts: 12
Joined: Tue Apr 17, 2007 10:35 am
Location: York, PA


Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 28 guests