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 512654 - [h264parse] does not build in cvs head (unused variable if debug system disabled)
[h264parse] does not build in cvs head (unused variable if debug system disab...
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal major
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2008-01-28 20:46 UTC by Fredrik
Modified: 2008-01-28 23:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fredrik 2008-01-28 20:46:12 UTC
Please describe the problem:
gst-plugins-bad/gst/h264parse does not build in cvs head.

I was also unable to find a toggle in configure to disable building h264parse or plugins with no external dependencies. I need the soup plugin! :)

Steps to reproduce:
1. pull from cvs
2. build on my system (64bit)
3. rinse, repeat.


Actual results:
Making all in h264parse
make[3]: Entering directory `/home/fredrik/gst-plugins-bad/gst/h264parse'
/bin/sh ../../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../..    -I../../gst-libs -I../../gst-libs -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -Wall -Werror  -g   -DGST_DISABLE_DEPRECATED -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -g -O2 -MT libgsth264parse_la-gsth264parse.lo -MD -MP -MF .deps/libgsth264parse_la-gsth264parse.Tpo -c -o libgsth264parse_la-gsth264parse.lo `test -f 'gsth264parse.c' || echo './'`gsth264parse.c
 gcc -DHAVE_CONFIG_H -I. -I../.. -I../../gst-libs -I../../gst-libs -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -Wall -Werror -g -DGST_DISABLE_DEPRECATED -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -MT libgsth264parse_la-gsth264parse.lo -MD -MP -MF .deps/libgsth264parse_la-gsth264parse.Tpo -c gsth264parse.c  -fPIC -DPIC -o .libs/libgsth264parse_la-gsth264parse.o
cc1: warnings being treated as errors
gsth264parse.c: In function 'gst_h264_parse_chain_forward':
gsth264parse.c:431: warning: unused variable 'nal_ref_idc'
make[3]: *** [libgsth264parse_la-gsth264parse.lo] Error 1
make[3]: Leaving directory `/home/fredrik/gst-plugins-bad/gst/h264parse'


Expected results:
i expect the sucker to build

Does this happen every time?
yes

Other information:
gcc 4.2.2
glibc 2.7
binutils 2.18
Comment 1 Tim-Philipp Müller 2008-01-28 23:21:03 UTC
This should hopefully fix it (if not, I'll have to use some #ifdefs or so):

  2008-01-28  Tim-Philipp Müller  <tim at centricular dot net>

        * gst/h264parse/gsth264parse.c: (gst_h264_parse_chain_forward):
          Try to avoid 'unused variable' compiler warning if debugging is
          disabled (not bullet proof, but seems to do for now). (#512654)

Only happens if the debug system in core has been disabled when compiling the core (which is quite unusual).


Btw, alternatives to continue would have been:

 - make ERROR_CFLAGS=''

 - cd ext/soup/; make


Please re-open if it still fails with current CVS.