GNOME Bugzilla – Bug 319795
compiling the faad plugin fails (gst-plugins-bad HEAD)
Last modified: 2005-10-27 13:33:08 UTC
Distribution/Version: Gentoo 2005.1 * media-libs/faad2 Latest version available: 2.0-r7 Latest version installed: 2.0-r7 Size of downloaded files: 748 kB Homepage: http://www.audiocoding.com/ Description: AAC audio decoding library License: GPL-2 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -I../../gst-libs -pthread -I/usr/include/gstreamer-0.9 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Werror -pthread -I/usr/include/gstreamer-0.9 -I/u sr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -M T libgstfaad_la-gstfaad.lo -MD -MP -MF .deps/libgstfaad_la-gstfaad.Tpo -c gstfaa d.c -fPIC -DPIC -o .libs/libgstfaad_la-gstfaad.o gstfaad.c: In function `gst_faad_setcaps': gstfaad.c:210: warning: passing arg 4 of `faacDecInit2' from incompatible pointe r type gstfaad.c: In function `gst_faad_chain': gstfaad.c:771: warning: passing arg 4 of `faacDecInit' from incompatible pointer type make[3]: *** [libgstfaad_la-gstfaad.lo] Error 1
What does grep -A 4 DecInit /usr/include/faad.h print for you?
sxpert@sxpert ~/compile/gstreamer $ grep -A 4 DecInit /usr/include/faad.h long FAADAPI faacDecInit(faacDecHandle hDecoder, uint8_t *buffer, uint32_t buffer_size, uint32_t *samplerate, uint8_t *channels); -- int8_t FAADAPI faacDecInit2(faacDecHandle hDecoder, uint8_t *pBuffer, uint32_t SizeOfDecoderSpecificInfo, uint32_t *samplerate, uint8_t *channels); /* Init the library for DRM */ int8_t FAADAPI faacDecInitDRM(faacDecHandle hDecoder, uint32_t samplerate, uint8_t channels); void FAADAPI faacDecPostSeekReset(faacDecHandle hDecoder, long frame);
Well, here and in faad CVS the prototypes are like this: /* Init the library based on info from the AAC file (ADTS/ADIF) */ long FAADAPI faacDecInit(faacDecHandle hDecoder, unsigned char *buffer, unsigned long buffer_size, unsigned long *samplerate, unsigned char *channels); /* Init the library using a DecoderSpecificInfo */ char FAADAPI faacDecInit2(faacDecHandle hDecoder, unsigned char *pBuffer, unsigned long SizeOfDecoderSpecificInfo, unsigned long *samplerate, unsigned char *channels); Seems to be a gentoo-specific patch to the headers that causes this. Best to take it up with the gentoo maintainers. In the mean time you can remove all mentions of -Werror from ext/faad/Makefile (until the next autogen/configure). Cheers -Tim *** This bug has been marked as a duplicate of 305149 ***