There are #ifdefs for FreeBSD and NetBSD already in the code that could help you resolve most of these issues. In many cases, it should require nothing more than adding "|| defined(__APPLE__)". OS X is based in large part on FreeBSD and still has many similarities.

However, the page below states that SLURM plugins will not currently work on OS X for other reasons:

http://slurm.schedmd.com/platforms.html

Regards,

    Jason

On 12/17/13 13:36, Robert Jacobson wrote:

I am trying to compile SLURM 2.6.4 on Mac OS X 10.6.8. I'm using the following command from the installation guide:

    sh configure && MACOSX_DEPLOYMENT_TARGET=10.5 make all


Compilation fails. Here is the tail of the output I'm getting:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../slurm -I../.. -g -O2 -fno-gcse -MT xcgroup.lo -MD -MP -MF .deps/xcgroup.Tpo -c xcgroup.c -fno-common -DPIC -o .libs/xcgroup.o xcgroup.c: In function 'xcgroup_ns_mount':xcgroup.c:225: error: 'MS_NOSUID' undeclared (first use in this function)xcgroup.c:225: error: (Each undeclared identifier is reported only oncexcgroup.c:225: error: for each function it appears in.)xcgroup.c:225: error: 'MS_NOEXEC' undeclared (first use in this function)xcgroup.c:225: error: 'MS_NODEV' undeclared (first use in this function)xcgroup.c:225: warning: passing argument 3 of 'mount' makes integer from pointer without a castxcgroup.c:225: error: too many arguments to function 'mount'make[3]: *** [xcgroup.lo] Error 1make[2]: *** [all-recursive] Error 1make[1]: *** [all-recursive] Error 1make: *** [all] Error 2
How should I proceed?
Regards,
Robert Jacobson


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Jason W. Bacon
  jwba...@tds.net

  Circumstances don't make a man:
  They reveal him.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to