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 129600 - patch to compile on OSX
patch to compile on OSX
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Mac OS
: High normal
: 0.7.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-12-18 11:18 UTC by Jeffrey Yasskin
Modified: 2005-08-15 01:56 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to make gstreamer core compile on OS X (5.33 KB, patch)
2003-12-18 11:24 UTC, Jeffrey Yasskin
none Details | Review
patch to make the gstreamer plugins compile on os x (5.56 KB, patch)
2003-12-19 02:32 UTC, Jeffrey Yasskin
none Details | Review

Description Jeffrey Yasskin 2003-12-18 11:18:49 UTC

Comment 1 Jeffrey Yasskin 2003-12-18 11:24:00 UTC
Created attachment 22534 [details] [review]
Patch to make gstreamer core compile on OS X
Comment 2 Jeffrey Yasskin 2003-12-19 02:32:13 UTC
Created attachment 22554 [details] [review]
patch to make the gstreamer plugins compile on os x
Comment 3 alexander.winston 2003-12-24 05:55:16 UTC
Thank you for the patches!

Sorry to cause you anymore trouble, but it seems that there are some
problems encountered in make files. The first patch, for gstreamer,
fails in gst/parse/Makefile.am. Your second patch, for gst-plugins,
fails in gst/playondemand/Makefile.am.

Could you please update to CVS revision HEAD and try to rectify the
problems?
Comment 4 alexander.winston 2004-01-03 05:08:50 UTC
Upgrading the priority to High because patches are attached.
Comment 5 Ronald Bultje 2004-01-03 13:17:16 UTC
Hi,

the mplex and png bits have already been fixed in other commits. The
avi/riff stuff isn't right. Note that on Linux, sizeof() provides an
unsigned integer. I'm not sure why it provides an unsigned long
integer on OS X/Panther. Removing libgstplayondemand.la from LDADD
isn't really right since the binary depends on it. What kind of errors
are you getting here? The RTP thing looks ok to me, I'll commit that too.

As for the core: I think Dave'd better look at that than me.
Comment 6 Ronald Bultje 2004-01-03 13:23:27 UTC
On second thought, gstplayondemand is a suport lib, not a link lib, so
the patch was correct, sorry. It's been fixed in CVS already, however. ;).

The only remaining issue now (for plugins) is the avi/riff sizeof() stuff.
Comment 7 Jeffrey Yasskin 2004-01-07 03:53:37 UTC
If you don't mind requiring glibc 2.1+, we can solve the sizeof()
problem by using the %zu format string instead of %lu.
Comment 8 Benjamin Otte (Company) 2004-01-07 21:20:03 UTC
We don't depend on glibc. GStreamer needs to build with other libcs.
Though it's ok to special case it.

The correct fix in this case it to use (gint) sizeof (...) as the
argument in the debug message though.
Comment 9 David Schleef 2004-01-07 22:22:17 UTC
The z length modifier is C99.
Comment 10 Ronald Bultje 2004-01-08 09:10:04 UTC
I personally have no objections against C99'isms (we require it for
vararg macros already). Don't know what others think? Glib uses casts
to gsize for some sizeof() calls. Others are simply called as is. Do
we follow glib or do we use C99?
Comment 11 Ronald Bultje 2004-01-25 11:20:32 UTC
Dave, Benjamin, please comment?
Comment 12 David Schleef 2004-01-25 21:14:17 UTC
We still are trying to avoid c99-isms.
Comment 13 Ronald Bultje 2004-01-25 22:10:36 UTC
So what do we do... Casts?

Bleh...
Comment 14 David Schleef 2004-02-07 01:32:06 UTC
Yep, casts.

I merged the rest of these patches.  If there are any more build
problems, please create a new bug.