[gstreamer-bugs] [Bug 310938] New: ext/cairo/gsttimeoverlay.c compile fails on call to rint()
bugzilla-daemon at bugzilla.gnome.org
bugzilla-daemon at bugzilla.gnome.org
Tue Jul 19 15:16:20 PDT 2005
Please DO NOT reply to this by email. All additional comments should be made in
the comments box of this bug report.
http://bugzilla.gnome.org/show_bug.cgi?id=310938
GStreamer | gst-plugins | Ver: 0.8.x
Summary: ext/cairo/gsttimeoverlay.c compile fails on call to
rint()
Product: GStreamer
Version: 0.8.x
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: stephan at kochen.nl
QAContact: gstreamer-bugs at lists.sourceforge.net
CC: all-bugs at bugzilla.gnome.org
Version details: cvs BRANCH-GSTREAMER-0_8 as of 2005-07-19
Distribution/Version: Ubuntu Breezy
While compiling gst-plugins using jhbuild, I got the following error:
/opt/gnome2/src/gst-plugins/ext/cairo $ make
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.
-I../.. -I../../gst-libs -I../../gst-libs -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -pthread -I/opt/gnome2/include/gstreamer-0.8
-I/opt/gnome2/include/glib-2.0 -I/opt/gnome2/lib/glib-2.0/include
-I/opt/gnome2/include/libxml2 -DGST_DISABLE_DEPRECATED -Wall -Werror
-D_XOPEN_SOURCE -I/usr/include/freetype2 -I/opt/gnome2/include/cairo
-I/opt/gnome2/include -I/usr/include/libpng12 -I../../gst/videofilter -g -O2
-MT libgstcairo_la-gsttimeoverlay.lo -MD -MP -MF
".deps/libgstcairo_la-gsttimeoverlay.Tpo" -c -o libgstcairo_la-gsttimeoverlay.lo
`test -f 'gsttimeoverlay.c' || echo './'`gsttimeoverlay.c; \
then mv -f ".deps/libgstcairo_la-gsttimeoverlay.Tpo"
".deps/libgstcairo_la-gsttimeoverlay.Plo"; else rm -f
".deps/libgstcairo_la-gsttimeoverlay.Tpo"; exit 1; fi
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../gst-libs -I../../gst-libs
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -pthread
-I/opt/gnome2/include/gstreamer-0.8 -I/opt/gnome2/include/glib-2.0
-I/opt/gnome2/lib/glib-2.0/include -I/opt/gnome2/include/libxml2
-DGST_DISABLE_DEPRECATED -Wall -Werror -D_XOPEN_SOURCE -I/usr/include/freetype2
-I/opt/gnome2/include/cairo -I/opt/gnome2/include -I/usr/include/libpng12
-I../../gst/videofilter -g -O2 -MT libgstcairo_la-gsttimeoverlay.lo -MD -MP -MF
.deps/libgstcairo_la-gsttimeoverlay.Tpo -c gsttimeoverlay.c -fPIC -DPIC -o
.libs/libgstcairo_la-gsttimeoverlay.o
cc1: warnings being treated as errors
gsttimeoverlay.c: In function 'gst_timeoverlay_print_smpte_time':
gsttimeoverlay.c:156: warning: implicit declaration of function 'rint'
gsttimeoverlay.c:156: warning: incompatible implicit declaration of built-in
function 'rint'
make: *** [libgstcairo_la-gsttimeoverlay.lo] Fout 1
After some googling, I bumped into a helpful site:
http://ivor.bosloper.nl/2005/05/17/dangerous-gcc-ansi-side-effect/
Modifying Makefile.am to define _GNU_SOURCE seems to have fixed the problem:
libgstcairo_la_CFLAGS = $(GST_CFLAGS) $(CAIRO_CFLAGS) \
-I$(top_srcdir)/gst/videofilter -D_GNU_SOURCE
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.
More information about the Gstreamer-bugs
mailing list