[gstreamer-bugs] [Bug 369366] New: Mac build fixes
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Thu Nov 2 03:41:30 PST 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=369366
GStreamer | gstreamer (core) | Ver: HEAD CVS
Summary: Mac build fixes
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: minor
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: j.j.d.mol at tudelft.nl
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Please describe the problem:
Gstreamer CVS HEAD fails to build on Mac OS/X 10.4.8 PPC using gcc 4.0.1. This
is due to printf-ing 'sizeof' parameters using %d instead of %ld.
Steps to reproduce:
Actual results:
Expected results:
Does this happen every time?
Other information:
The warnings were gone after I made the following changes. These may not be the
best or work for all platforms, but nevertheless, here they are:
Index: plugins/elements/gstfilesink.c
===================================================================
RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstfilesink.c,v
retrieving revision 1.80
diff -r1.80 gstfilesink.c
143c143
< GST_LOG ("No large file support, sizeof (off_t) = %u", sizeof (off_t));
---
> GST_LOG ("No large file support, sizeof (off_t) = %lu", sizeof (off_t));
Index: plugins/elements/gstfilesrc.c
===================================================================
RCS file: /cvs/gstreamer/gstreamer/plugins/elements/gstfilesrc.c,v
retrieving revision 1.141
diff -r1.141 gstfilesrc.c
263c263
< GST_LOG ("No large file support, sizeof (off_t) = %u!", sizeof (off_t));
---
> GST_LOG ("No large file support, sizeof (off_t) = %lu!", sizeof (off_t));
655c655
< "read buf %llu+%d lives in current mapbuf %lld+%d, creating
subbuffer of mapbuf",
---
> "read buf %llu+%d lives in current mapbuf %lld+%ld, creating subbuffer of mapbuf",
710c710
< "read buf %llu+%d in new mapbuf at %llu+%d, mapping and
subbuffering",
---
> "read buf %llu+%ld in new mapbuf at %llu+%ld, mapping and subbuffering",
719c719
< readsize, (int) mapsize);
---
> (int)readsize, (int) mapsize);
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
More information about the Gstreamer-bugs
mailing list