GNOME Bugzilla – Bug 113913
GStreamer port to AIX
Last modified: 2009-08-15 18:40:50 UTC
Gstreamer doesn't compile on AIX with native compiler (xlc) because xlc doesn't support variable arguments macro. xlc is better than gcc on this platform: it produces binaries 15% faster, 50% smaller.
Created attachment 16915 [details] [review] Gstreamer patch for AIX
Created attachment 16916 [details] [review] gst-plugins patch for AIX
xlc supports C99. What version are you using?
Could we get this patches in diff -u format? It's much easier to read.
I use xlC for AIX 4.3, C89 compliant, not c99: xlC.C 3.1.4.0 C C for AIX Compiler xlC.C.data 3.1.4.0 C C for AIX Manual Pages xlC.C.readme.ibm 3.1.4.0 C C and C Set ++ for AIX iFOR/LS xlC.aix43.rte 4.0.2.1 C C Set ++ Runtime for AIX 4.3 xlC.cpp 4.3.0.1 C C for AIX Preprocessor xlC.msg.en_US.C 3.1.4.0 C C for AIX Compiler Messages xlC.msg.en_US.cpp 4.3.0.1 C C for AIX Preprocessor Messages xlC.msg.en_US.rte 4.0.2.0 C C Set ++ Runtime Messages--U.S. xlC.rte 4.0.2.0 C C Set ++ Runtime
Unfortunately, I don't think this is going to get resolved. GStreamer, for better or worse, requires a few C99 features, like variable argument macros. I suppose we could make a pre-preprocessor, but that seems rather hokey.
OK, I understand your point of view. I think the current version can be compiled with c99 version of xlc. But I think the cothreads part is not portable.
The core cothreads code doesn't work on a lot of systems. :) That can certainly be fixed. Could you repost the patch in 'diff -u' format?
Created attachment 17435 [details] [review] gstreamer diff -u patch for AIX
Any news about that proposition, is it accepted/integrated or not ? Thanks. Jean-Pierre Dion
Er, sorry. I completely lost track of this. Thanks for reminding. As I mentioned before, much of the c99 stuff will stay the same. There are a bunch of one line changes that should be merged. I'll have to spend a bit of time trying to figure out what really needs to be changed for cothreads.
dave, any luck yet on this one ? sorry for flooding your mailbox :)
Adding the portability keyword.
Added some noncritical parts that still apply to the core.
Ok, we probably need a new patch from an AIX-knowledgable person, since portions of the patch have been applied, but not all. It's best to just ignore getting the cothreads code working on AIX, and use the optgthread or basicgthread scheduler.
We need to know more information about what is necessary for 0.8. A lot of things have changed since 0.6.0. marking NEEDINFO.
AIX patchers, please reply
aix people, ping
Laurent, any update on GStreamer 0.8 and AIX. Can I close this issue?
Please, contact Jean-Pierre.Dion@bull.net
Christian, we now have a C99 compliant version of xlc. You can close this one. Thanks. Jean-Pierre