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 128893 - configure doesn't fail when the user is using a version of libfaad which is too old
configure doesn't fail when the user is using a version of libfaad which is t...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.7.3
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-09 14:03 UTC by Christophe Fergeau
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
faad.h (3.69 KB, text/plain)
2003-12-09 14:19 UTC, Christophe Fergeau
  Details
config.log (126.93 KB, text/plain)
2003-12-09 14:20 UTC, Christophe Fergeau
  Details
patch for configure.ac (529 bytes, patch)
2003-12-09 14:50 UTC, Ronald Bultje
none Details | Review

Description Christophe Fergeau 2003-12-09 14:03:38 UTC
Debian sarge has libfaad 1.1.0 (which is old) with which the faad decoder
compilation fails, even if configure passed successfully. I'll attach the
error log when I get a chance to retry to compile it.
Comment 1 Christophe Fergeau 2003-12-09 14:12:53 UTC
aad.c  -fPIC -DPIC -o .libs/libgstfaad_la-gstfaad.o
gstfaad.c: In function `gst_faad_srcgetcaps':
gstfaad.c:232: error: `FAAD_FMT_DOUBLE' undeclared (first use in this
function)
gstfaad.c:232: error: (Each undeclared identifier is reported only once
gstfaad.c:232: error: for each function it appears in.)
gstfaad.c: In function `gst_faad_srcconnect':
gstfaad.c:329: error: `FAAD_FMT_DOUBLE' undeclared (first use in this
function)
gstfaad.c: In function `gst_faad_chain':
gstfaad.c:386: warning: passing arg 3 of `faacDecInit' makes pointer
from integer without a cast
gstfaad.c:386: warning: passing arg 4 of `faacDecInit' from
incompatible pointer type
gstfaad.c:386: error: too many arguments to function `faacDecInit'
gstfaad.c:399: error: too many arguments to function `faacDecDecode'
gstfaad.c:407: error: structure has no member named `samplerate'
gstfaad.c:409: error: structure has no member named `samplerate'
Comment 2 Ronald Bultje 2003-12-09 14:16:36 UTC
Configure has code to check for this:

dnl **** Free AAC Decoder (FAAD) ****
translit(dnm, m, l) AM_CONDITIONAL(USE_FAAD, true)
GST_CHECK_FEATURE(FAAD, [AAC decoder plug-in], faad, [
  GST_CHECK_LIBHEADER(FAAD, faad, faacDecOpen, -lm, faad.h,
FAAD_LIBS="-lfaad -lm")
  AC_MSG_CHECKING([Checking for FAAD >= 2])   AC_TRY_COMPILE([
#include <faad.h>
#if !defined(FAAD2_VERSION)
#error Not faad2
#endif
  ], [ return 0; ],
     [ HAVE_FAAD="yes" && AC_MSG_RESULT(yes)],
     [ HAVE_FAAD="no"  && AC_MSG_RESULT(no)])
  AS_SCRUB_INCLUDE(FAAD_CFLAGS)
  AC_SUBST(FAAD_LIBS)
])

Can you try to finetune this so it works? I only have faad2 so I'm not
exactly sure how to catch this. It'd help if you could attach
config.log, too...
Comment 3 Christophe Fergeau 2003-12-09 14:19:05 UTC
I'm attaching my faad.h header, it has
#define FAAD2_VERSION "1.1" in it.
Comment 4 Christophe Fergeau 2003-12-09 14:19:51 UTC
Created attachment 22256 [details]
faad.h
Comment 5 Christophe Fergeau 2003-12-09 14:20:22 UTC
Created attachment 22257 [details]
config.log
Comment 6 Ronald Bultje 2003-12-09 14:49:53 UTC
<rant> Why do these people do that? </rant>

Would it help if I check for FAAD_FMT_DOUBLE to assure we've got faad
>= 2 (see attached patch)?
Comment 7 Ronald Bultje 2003-12-09 14:50:26 UTC
Created attachment 22260 [details] [review]
patch for configure.ac
Comment 8 Christophe Fergeau 2003-12-09 14:58:13 UTC
Ok, this patch works for me

checking faad.h usability... yes
checking faad.h presence... yes
checking for faad.h... yes
checking Checking for FAAD >= 2... no
configure: *** These plugins will not be built: faad
Comment 9 Ronald Bultje 2003-12-09 15:21:32 UTC
Good. Can you commit it please? My configure.ac has more mess in it
which shouldn't be committed yet...
Comment 10 Christophe Fergeau 2003-12-09 15:23:22 UTC
Done