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 320923 - [volume] doesn't build on Solaris
[volume] doesn't build on Solaris
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other opensolaris
: Normal normal
: 0.9.5
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-07 22:57 UTC by Brian Cameron
Modified: 2005-11-08 09:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to fix the macro to compile on Solaris with Forte (519 bytes, patch)
2005-11-07 22:58 UTC, Brian Cameron
rejected Details | Review

Description Brian Cameron 2005-11-07 22:57:32 UTC
in gst-plugins-base 0.9.4, gst/volume/gstvolume.c won't build on Solaris with
the Forte compiler with the following error:

"gstvolume.c", line 396: syntax error before or at: 0

I suspect this problem is caused because the GST_ELEMENT_ERROR macro is 
improperly defined.  Attaching a patch that seems to correct this problem.
Comment 1 Brian Cameron 2005-11-07 22:58:13 UTC
Created attachment 54443 [details] [review]
patch to fix the macro to compile on Solaris with Forte
Comment 2 Tim-Philipp Müller 2005-11-07 23:39:14 UTC
Could you check whether this works as well (ie. just putting the final NULL in
brackets):

   if (!this->process) {
-    GST_ELEMENT_ERROR (this, CORE, NEGOTIATION,
-        ("Invalid incoming caps: %" GST_PTR_FORMAT, incaps), NULL);
+    GST_ELEMENT_ERROR (this, CORE, NEGOTIATION,
+        ("Invalid incoming caps: %" GST_PTR_FORMAT, incaps), (NULL));
     return FALSE;
   }
   return TRUE;

Cheers
 -Tim
Comment 3 Brian Cameron 2005-11-08 02:45:16 UTC
Yes, that also compiles okay.
Comment 4 Tim-Philipp Müller 2005-11-08 09:03:08 UTC
Thanks for confirming, applied the latter to CVS HEAD (the first chunk is the
user-visible error message, the second one is an optional debug message that is
meant to contain further technical details and shouldn't be visible to the user;
if you move the (NULL) to the front there won't be a user-visible error, which
isn't quite what we want).

 2005-11-08  Brian Cameron  <brian dot cameron at sun dot com>

       * gst/volume/gstvolume.c: (volume_set_caps):
         Fix compilation on Solaris with Forte. (#320923)

 Cheers
  -Tim