After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 319795 - compiling the faad plugin fails (gst-plugins-bad HEAD)
compiling the faad plugin fails (gst-plugins-bad HEAD)
Status: RESOLVED DUPLICATE of bug 305149
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-10-25 21:36 UTC by Amaury Jacquot
Modified: 2005-10-27 13:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Amaury Jacquot 2005-10-25 21:36:31 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
Comment 1 Tim-Philipp Müller 2005-10-27 10:09:52 UTC
What does

 grep -A 4 DecInit /usr/include/faad.h

print for you?
Comment 2 Amaury Jacquot 2005-10-27 11:32:07 UTC
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);
Comment 3 Tim-Philipp Müller 2005-10-27 13:33:08 UTC
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 ***