Bug#749668: gst-plugins-base1.0: Conflicting declarations of function resample_int_resampler_process_interleaved_int

Michael Tautschnig mt at debian.org
Thu May 29 00:10:59 UTC 2014


Package: gst-plugins-base1.0
Version: 1.2.4-1
Severity: wishlist
Usertags: goto-cc

During a rebuild of all Debian packages in a clean sid chroot (using cowbuilder
and pbuilder) the build failed with the following error. Please note that we
use our research compiler tool-chain (using tools from the cbmc package), which
permits extended reporting on type inconsistencies at link time.

[...]
libtool: link:  gcc -shared  -fPIC -DPIC  .libs/libgstaudioresample_la-gstaudioresample.o .libs/libgstaudioresample_la-speex_resampler_int.o .libs/libgstaudioresample_la-speex_resampler_float.o .libs/libgstaudioresample_la-speex_resampler_double.o   -Wl,-rpath -Wl,/srv/jenkins-slave/workspace/sid-goto-cc-gst-plugins-base1.0/gst-plugins-base1.0-1.2.4/gst-libs/gst/audio/.libs -Wl,--as-needed ../../gst-libs/gst/audio/.libs/libgstaudio-1.0.so -lgstbase-1.0 -lgstreamer-1.0 -lgobject-2.0 -lglib-2.0 -lorc-0.4 -lorc-test-0.4 -lm  -pthread -pthread -pthread -O2 -Wl,-z -Wl,relro -Wl,-z -Wl,defs -Wl,-O1   -pthread -Wl,-soname -Wl,libgstaudioresample.so -Wl,-version-script -Wl,.libs/libgstaudioresample.ver -o .libs/libgstaudioresample.so

error: conflicting function declarations "resample_int_resampler_process_interleaved_int"
old definition in module gstaudioresample file speex_resampler_wrapper.h line 158
signed int (struct SpeexResamplerState_ *, const unsigned char *, unsigned int *, unsigned char *, unsigned int *)
new definition in module speex_resampler_int file resample.c line 1312
signed int (struct SpeexResamplerState_ *st, const signed short int *in, unsigned int *in_len, signed short int *out, unsigned int *out_len)
Makefile:637: recipe for target 'libgstaudioresample.la' failed
make[4]: *** [libgstaudioresample.la] Error 64

The above conflict on the second parameter looks dangerous; yet it seems it is
just the declaration in speex_resampler_wrapper that is wrong (and then the
unnecessary type cast applied in gstaudioresample.c). Fixing that will ensure
that the compiler can provide suitable diagnostics (rather than the spurious
warning that is presently being cast away).

Best,
Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 859 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gstreamer-maintainers/attachments/20140529/d6629904/attachment.sig>


More information about the pkg-gstreamer-maintainers mailing list