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 135921 - speexenc support won't compile with 1.1.x
speexenc support won't compile with 1.1.x
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other Linux
: Normal normal
: 0.8.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-03-02 02:29 UTC by Stephane Loeuillet
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
at least a working patch to only compile against speex v1.0 and not v1.1 (1.06 KB, patch)
2004-03-12 14:45 UTC, Stephane Loeuillet
none Details | Review

Description Stephane Loeuillet 2004-03-02 02:29:11 UTC
i've got speex v1.1.4 and gst-plugins won't compile against it (worked well
with 1.0.x branch)

 gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -pthread -I/usr/include/gstreamer-0.7
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2
-DGST_DISABLE_DEPRECATED -g -Wall -Wno-sign-compare -Werror
-DG_DISABLE_DEPRECATED -O0 -ggdb -MT libgstspeex_la-gstspeexenc.lo -MD -MP
-MF .deps/libgstspeex_la-gstspeexenc.Tpo -c gstspeexenc.c  -fPIC -DPIC -o
.libs/libgstspeex_la-gstspeexenc.o
gstspeexenc.c: In function `gst_speexenc_init':
gstspeexenc.c:152: warning: assignment discards qualifiers from pointer
target type
gstspeexenc.c: In function `gst_speexenc_chain':
gstspeexenc.c:239: warning: passing arg 2 of `speex_encode' from
incompatible pointer type
gstspeexenc.c:265: warning: passing arg 2 of `speex_encode' from
incompatible pointer type
make[3]: *** [libgstspeex_la-gstspeexenc.lo] Erreur 1
make[3]: Leaving directory
`/usr/portage/tmp/portage/gst-plugins-0.7.4/work/gst-plugins/ext/speex'
make[2]: *** [all-recursive] Erreur 1
make[2]: Leaving directory
`/usr/portage/tmp/portage/gst-plugins-0.7.4/work/gst-plugins/ext'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory
`/usr/portage/tmp/portage/gst-plugins-0.7.4/work/gst-plugins'
make: *** [all] Erreur 2
Comment 1 Benjamin Otte (Company) 2004-03-04 15:33:09 UTC
I don't like supporting 2 different versions of speex in one source 
file very much, especially considering that 1.1 is the devel version.

Is speex going to significantly change the API or are they going to 
just do cosmetic changes?
Comment 2 Stephane Loeuillet 2004-03-06 12:26:25 UTC
http://bugzilla.gnome.org/show_bug.cgi?id=131270 contains a patch that
would only compile speex plug-in if 1.0.x is found but not against 1.1
Comment 3 Stephane Loeuillet 2004-03-10 17:53:24 UTC
would need to be worked out when speex 1.2.x would be out
for the time beeing, only compile against speex 1.0.x
Comment 4 Stephane Loeuillet 2004-03-12 13:17:01 UTC
seems my speex version detection patch was not so good as it would
still try to compile and fail with dev speex

current is :

dnl *** speex ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SPEEX, true)
GST_CHECK_FEATURE(SPEEX, [speex plug-in], speex, [
  PKG_CHECK_MODULES(SPEEX, speex >= 1.0 speex < 1.1, [
    HAVE_SPEEX="yes"
    AC_SUBST(SPEEX_CFLAGS)
    AC_SUBST(SPEEX_LIBS)
  ], [
    GST_CHECK_LIBHEADER(SPEEX, speex, speex_bits_init, , speex.h,
HAVE_SPEEX="yes" SPEEX_LIBS="-lspeex")
    AC_SUBST(SPEEX_CFLAGS)
    AC_SUBST(SPEEX_LIBS)
  ])
])

should be :

dnl *** speex ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SPEEX, true)
GST_CHECK_FEATURE(SPEEX, [speex plug-in], speex, [
  PKG_CHECK_MODULES(SPEEX, speex, [
    HAVE_SPEEX="no"
  ], [
    GST_CHECK_LIBHEADER(SPEEX, speex, speex_bits_init, , speex.h,
HAVE_SPEEX="yes" SPEEX_LIBS="-lspeex")
    AC_SUBST(SPEEX_CFLAGS)
    AC_SUBST(SPEEX_LIBS)
  ])
])

as only speex 1.1 provides a .pc file.
Comment 5 Stephane Loeuillet 2004-03-12 14:45:10 UTC
Created attachment 25560 [details] [review]
at least a working patch to only compile against speex v1.0 and not v1.1
Comment 6 Stephane Loeuillet 2004-03-12 14:47:24 UTC
seems i smoke something really strange and did a bad trip.

speex never had any .pc file, not even v1.1.x

here is a patch against current gst-plugins that would detect both
v1.0 and v1.1 but would only compile against v1.0

it seems i still have lots to learn about those m4/packaging world
Comment 7 Stephane Loeuillet 2004-03-15 22:40:58 UTC
thomasvs applied it, thanks