Bugzilla – Bug 157
Patches for OS X 10.5.8
Last modified: 2011-09-02 13:43:24 MDT
You need to log in before you can comment on or make changes to this bug.
TORQUE 3.0.2 needed a few source-code modifications to compile and run on OS X 10.5.8; patches are attached. A brief summary of the issues fixed: u_threadpool.c: * All versions of OS X (through 10.7) lack clock_gettime(); this patch works around this by detecting if clock_gettime() exists in configure.ac, and if not, use gettimeofday() as suggested in the OS X 10.6/10.7 manual page for pthread_cond_timedwait() configure.ac: * There is a compilation error when linking librt, as OS X doesn't have such a library; the suggested workaround to link with librt only if clock_gettime() requires it (which it doesn't on some platforms, e.g., FreeBSD). This is in addition to the previously-mentioned check for the existence of clock_gettime(). pbs_mkdirs.in: * "echo" is a bash builtin, and when bash is invoked as "/bin/sh", the "-e" option loses its special meaning, causing an "-e" to appear at the beginning of the first line in the default server_priv/nodes. -- Nathan Weeks IT Specialist USDA-ARS http://www.public.iastate.edu/~weeks
Created an attachment (id=94) [details] patch
Created an attachment (id=95) [details] u_threadpool.c.patch
Created an attachment (id=96) [details] configure.ac.patch