[Bug 138] New: Compilation failure in 3.3.1: CLOCK_MONOTONIC undeclared
https://bugzilla.balabit.com/show_bug.cgi?id=138 Summary: Compilation failure in 3.3.1: CLOCK_MONOTONIC undeclared Product: syslog-ng Version: unspecified Platform: Macintosh OS/Version: Mac OS Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: jacknagel@gmail.com Type of the Report: bug Estimated Hours: 0.0 Attempting to compile syslog-ng v3.3.1 from source on Mac OS X 10.6.8 fails with logsource.c: In function ‘log_source_msg_ack’: logsource.c:85: error: ‘CLOCK_MONOTONIC’ undeclared (first use in this function) logsource.c:85: error: (Each undeclared identifier is reported only once logsource.c:85: error: for each function it appears in.) I believe this is because OS X does not define CLOCK_MONOTONIC. Actually, afaik, OS X doesn't implement clock_gettime() either. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=138 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution| |FIXED Status|NEW |RESOLVED --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2011-10-15 17:57:18 --- Thanks for reporting it, fixed in git (although this may not be enough to get it compiled under MacOSX) commit a1f739964ac574b9a3fdb91981b5ab8d76775f35 Author: Balazs Scheidler <bazsi@balabit.hu> Date: Sat Oct 15 17:56:06 2011 +0200 fixed compilation error on platforms without clock_gettime() MacOSX lacks clock_gettime(), so avoid depending on it if not available. Reported-By: Jack Nagel <jacknagel@gmail.com> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com