after upgrading to spandsp-0.0.6_pre3 asterisk-spandsp_codec_g726 fails to rebuild Reproducible: Always Actual Results: >>> Compiling source in /var/portagetmp/portage/net-misc/asterisk-spandsp_codec_g726-0.0.2_pre26/work ... i686-pc-linux-gnu-gcc -D_GNU_SOURCE -fPIC -march=prescott -O2 -pipe -fomit-frame-pointer -Wl,-O1 -lspandsp -lm -shared -o codec_g726-32.so codec_g726-32.c In file included from /usr/include/asterisk/translate.h:33, from codec_g726-32.c:39: /usr/include/asterisk/plc.h:129: error: conflicting types for ‘plc_state_t’ /usr/include/spandsp/plc.h:128: error: previous declaration of ‘plc_state_t’ was here /usr/include/asterisk/plc.h:142: error: conflicting types for ‘plc_rx’ /usr/include/spandsp/plc.h:142: error: previous declaration of ‘plc_rx’ was here /usr/include/asterisk/plc.h:150: error: conflicting types for ‘plc_fillin’ /usr/include/spandsp/plc.h:150: error: previous declaration of ‘plc_fillin’ was here /usr/include/asterisk/plc.h:156: error: conflicting types for ‘plc_init’ /usr/include/spandsp/plc.h:156: error: previous declaration of ‘plc_init’ was here codec_g726-32.c:91: error: field ‘g726_state’ has incomplete type codec_g726-32.c:104: error: field ‘g726_state’ has incomplete type defining SPANDSP_EXPOSE_INTERNAL_STRUCTURES before the inclusion ov spandsp.h and defining _PLC_H_ before the inclusion of asterisk.h solve the problem
Created attachment 176292 [details, diff] patch to fix compilation
Thanks for the report and for posting your fix. Assigning to maintainers.
Thank you Bruno for this patch. Fixed in the tree.