GNOME Bugzilla – Bug 356020
glib2 compile fails on solaris 9
Last modified: 2006-09-15 17:21:25 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
This looks like a duplicate of bug 353694.
Indeed. I searched before submitting, but nothing came up. Must not have used the right search knobs.
*** This bug has been marked as a duplicate of 353694 ***