spanDSP rxfax txfax problem

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

[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?

I’m using the latest snapshot of spandsp, and the app_rxfax.c/app_txfax.c which are the latest.

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

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.