gstspanplc.c FTBFS on Mageia: error: invalid use of incomplete typedef ‘plc_state_t’
Hi,
When enabling spandsp support, gstreamer-plugins-bad 1.18.0 fails building on Mageia Cauldron with the following error:
[791/911] cc -Iext/spandsp/libgstspandsp.so.p -Iext/spandsp -I../ext/spandsp -I. -I.. -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -fno-strict-aliasing -Wmissing-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wmissing-declarations -Wredundant-decls -Wwrite-strings -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -O2 -g -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -pthread -DHAVE_CONFIG_H -MD -MQ ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o -MF ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o.d -o ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o -c ../ext/spandsp/gstspanplc.c
FAILED: ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o
cc -Iext/spandsp/libgstspandsp.so.p -Iext/spandsp -I../ext/spandsp -I. -I.. -I/usr/include/gstreamer-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/orc-0.4 -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -fvisibility=hidden -fno-strict-aliasing -Wmissing-prototypes -Wdeclaration-after-statement -Wold-style-definition -Wmissing-declarations -Wredundant-decls -Wwrite-strings -Wformat -Wformat-security -Winit-self -Wmissing-include-dirs -Waddress -Wno-multichar -Wvla -Wpointer-arith -O2 -g -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fcommon -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -pthread -DHAVE_CONFIG_H -MD -MQ ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o -MF ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o.d -o ext/spandsp/libgstspandsp.so.p/gstspanplc.c.o -c ../ext/spandsp/gstspanplc.c
../ext/spandsp/gstspanplc.c: In function ‘gst_span_plc_create_stats’:
../ext/spandsp/gstspanplc.c:87:45: error: invalid use of incomplete typedef ‘plc_state_t’ {aka ‘struct plc_state_s’}
87 | "pitch", G_TYPE_INT, self->plc_state->pitch,
| ^~
../ext/spandsp/gstspanplc.c:88:52: error: invalid use of incomplete typedef ‘plc_state_t’ {aka ‘struct plc_state_s’}
88 | "pitch-offset", G_TYPE_INT, self->plc_state->pitch_offset, NULL);
| ^~
Full build log: build.log