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 356020 - glib2 compile fails on solaris 9
glib2 compile fails on solaris 9
Status: RESOLVED DUPLICATE of bug 353694
Product: glib
Classification: Platform
Component: general
2.12.x
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-09-14 21:18 UTC by john heasley
Modified: 2006-09-15 17:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description john heasley 2006-09-14 21:18:14 UTC
Please describe the problem:
Build of devel/glib2 fails on Solaris 9.  Solaris 9 does not offer a posix
monotonic clock option, only real-time.  As written, the check outlined in the
diff doesn't make sense to me.


Steps to reproduce:
1. Try to compile on Solaris 9
2. 
3. 


Actual results:
Compiler stops due to undefined macros CLOCK_MONOTONIC & _SC_MONOTONIC_CLOCK.

Expected results:


Does this happen every time?


Other information:
Patch:

--- gtimer.c.orig       2006-08-28 03:05:42.000000000 +0000
+++ gtimer.c    2006-09-14 21:15:54.987553000 +0000
@@ -91,7 +91,7 @@
   if (!initialized)
     {
       initialized = TRUE;
-#if !defined(_POSIX_MONOTONIC_CLOCK) || _POSIX_MONOTONIC_CLOCK >= 0
+#if defined(_POSIX_MONOTONIC_CLOCK)
       if (sysconf (_SC_MONOTONIC_CLOCK) >= 0)
        posix_clock = CLOCK_MONOTONIC;
       else
Comment 1 Peppo Brambilla 2006-09-15 08:10:49 UTC
This looks like a duplicate of bug 353694.
Comment 2 john heasley 2006-09-15 17:08:45 UTC
Indeed.  I searched before submitting, but nothing came up.  Must not have used
the right search knobs.
Comment 3 Behdad Esfahbod 2006-09-15 17:21:25 UTC

*** This bug has been marked as a duplicate of 353694 ***