[Pacemaker] Error building Pacemaker on OS X Lion
Andrew Beekhof
andrew at beekhof.net
Mon Feb 6 21:00:36 UTC 2012
On Tue, Feb 7, 2012 at 1:05 AM, info at sdips.de <info at sdips.de> wrote:
> Am 29.01.12 23:03, schrieb Andrew Beekhof:
>> On Thu, Jan 26, 2012 at 10:25 PM, info at sdips.de <info at sdips.de> wrote:
>>> I've started all over with Macports. After some struggle with gettext,
>>> the only working configure is working with --prefix=/opt/local.
>>> But I stuck at the same issue to build pacemaker.
>>>
>>> ./configure --prefix=/opt/local --with-initdir=/private/etc/mach_init.d
>>> --with-heartbeat
>>> .
>>> .
>>> .
>>> checking for struct lrm_ops.fail_rsc... yes
>>> checking for ll_cluster_new in -lhbclient... no
>>> configure: error: in `/Users/admin/1.1':
>>> configure: error: Unable to support Heartbeat: client libraries not found
>>> See `config.log' for more details
>>>
>>>
>>>
>>> The only error I've had during building was in glue that logd can't been
>>> build.
>>> Is this the missing part that prevents Pacemaker to build?
>>>
>>> cc1: warnings being treated as errors
>>> ha_logd.c: In function ‘logd_make_daemon’:
>>> ha_logd.c:527: warning: ‘daemon’ is deprecated (declared at
>>> /usr/include/stdlib.h:292)
>>> make[1]: *** [ha_logd.o] Error 1
>>> make: *** [all-recursive] Error 1
>> It might be necessary to configure with --disable-fatal-warnings (or
>> something of that kind)
>
> Sorry, doesn't work, either.
> The build process finished without the previous error, but now
> "shelfuncs" is now missing.
>
> /etc/mach_init.d/heartbeat start
> /etc/mach_init.d/heartbeat: line 53: /opt/local/etc/ha.d/shellfuncs:
> No such file or directory
>
> The file isn't present in the system, hence it wasn't build?
There should be a similarly named file in the resource-agents package.
Evidently they changed the name and forgot to update heartbeat.
>
> In general, is it possible to get pacemaker running under OS X?
> Otherwise I'll stop investing more time in something that wasn't tested.
Its been a long time since I ran heartbeat anywhere, let alone on OSX.
It did work at one point though (and hasn't changed much since), you
might just need to tweak some init scripts
>>
>>> I appreciate any help.
>>>
>>>
>>>
>>> Am 25.01.12 01:27, schrieb Andrew Beekhof:
>>>> Have you been following this?
>>>> http://www.clusterlabs.org/wiki/Install#Darwin.2FMacOS_X
>>>>
>>>> On Tue, Jan 24, 2012 at 9:58 PM, info at sdips.de <info at sdips.de> wrote:
>>>>> Hi all,
>>>>>
>>>>> after a clean install of cluster-glue and heartbeat, I have a problem to
>>>>> build Pacemaker 1.1.6 under OS X Lion.
>>>>>
>>>>> With the ./configure --prefix=/usr/local
>>>>> --with-initdir=/private/etc/mach_init.d --with-heartbeat
>>>>> --libexecdir=/usr/libexec/ I run into the following issue:
>>>>>
>>>>> configure: error: in `/Users/admin/1.1':
>>>>> configure: error: Unable to support Heartbeat: client libraries not found
>>>>> See `config.log' for more details
>>>>>
>>>>>
>>>>> the "config.log" shows this:
>>>>>
>>>>> configure:4363: gcc -c conftest.c -o conftest2.o >&5
>>>>> configure:4367: $? = 0
>>>>> configure:4373: gcc -c conftest.c -o conftest2.o >&5
>>>>> configure:4377: $? = 0
>>>>> configure:4388: cc -c conftest.c >&5
>>>>> configure:4392: $? = 0
>>>>> configure:4400: cc -c conftest.c -o conftest2.o >&5
>>>>> configure:4404: $? = 0
>>>>> configure:4410: cc -c conftest.c -o conftest2.o >&5
>>>>> configure:4414: $? = 0
>>>>> configure:4432: result: yes
>>>>> configure:4461: checking for gcc option to accept ISO C99
>>>>> configure:4610: gcc -c -g -O2 conftest.c >&5
>>>>> conftest.c:62: error: expected ';', ',' or ')' before 'text'
>>>>> conftest.c: In function 'main':
>>>>> conftest.c:116: error: nested functions are disabled, use
>>>>> -fnested-functions to re-enable
>>>>> conftest.c:116: error: expected '=', ',', ';', 'asm' or '__attribute__'
>>>>> before 'newvar'
>>>>> conftest.c:116: error: 'newvar' undeclared (first use in this function)
>>>>> conftest.c:116: error: (Each undeclared identifier is reported only once
>>>>> conftest.c:116: error: for each function it appears in.)
>>>>> conftest.c:126: error: 'for' loop initial declaration used outside C99 mode
>>>>> configure:4610: $? = 1
>>>>> configure: failed program was:
>>>>> | /* confdefs.h */
>>>>> | #define PACKAGE_NAME "pacemaker"
>>>>> | #define PACKAGE_TARNAME "pacemaker"
>>>>> | #define PACKAGE_VERSION "1.1.6"
>>>>> | #define PACKAGE_STRING "pacemaker 1.1.6"
>>>>> | #define PACKAGE_BUGREPORT "pacemaker at oss.clusterlabs.org"
>>>>> | #define PACKAGE_URL ""
>>>>> | #define PACKAGE "pacemaker"
>>>>> | #define VERSION "1.1.6"
>>>>> | #define PACEMAKER_VERSION "1.1.6"
>>>>> | /* end confdefs.h. */
>>>>> | #include <stdarg.h>
>>>>> | #include <stdbool.h>
>>>>> | #include <stdlib.h>
>>>>> | #include <wchar.h>
>>>>>
>>>>> .
>>>>> .
>>>>> .
>>>>>
>>>>> conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
>>>>> configure:8048: $? = 1
>>>>> configure: failed program was:
>>>>> | /* confdefs.h */
>>>>> | #define PACKAGE_NAME "pacemaker"
>>>>> | #define PACKAGE_TARNAME "pacemaker"
>>>>> | #define PACKAGE_VERSION "1.1.6"
>>>>> | #define PACKAGE_STRING "pacemaker 1.1.6"
>>>>> | #define PACKAGE_BUGREPORT "pacemaker at oss.clusterlabs.org"
>>>>> | #define PACKAGE_URL ""
>>>>> | #define PACKAGE "pacemaker"
>>>>> | #define VERSION "1.1.6"
>>>>> | #define PACEMAKER_VERSION "1.1.6"
>>>>> | /* end confdefs.h. */
>>>>> | #include <ac_nonexistent.h>
>>>>> configure:8073: result: gcc -std=gnu99 -E
>>>>> configure:8093: gcc -std=gnu99 -E conftest.c
>>>>> configure:8093: $? = 0
>>>>> configure:8107: gcc -std=gnu99 -E conftest.c
>>>>> conftest.c:12:28: error: ac_nonexistent.h: No such file or directory
>>>>> configure:8107: $? = 1
>>>>> configure: failed program was:
>>>>> | /* confdefs.h */
>>>>> | #define PACKAGE_NAME "pacemaker"
>>>>> | #define PACKAGE_TARNAME "pacemaker"
>>>>> | #define PACKAGE_VERSION "1.1.6"
>>>>> | #define PACKAGE_STRING "pacemaker 1.1.6"
>>>>> | #define PACKAGE_BUGREPORT "pacemaker at oss.clusterlabs.org"
>>>>> | #define PACKAGE_URL ""
>>>>> | #define PACKAGE "pacemaker"
>>>>> | #define VERSION "1.1.6"
>>>>> | #define PACEMAKER_VERSION "1.1.6"
>>>>> | /* end confdefs.h. */
>>>>> | #include <ac_nonexistent.h>
>>>>> configure:8136: checking for ANSI C header files
>>>>> configure:8156: gcc -std=gnu99 -c -g -O2 conftest.c >&5
>>>>>
>>>>> .
>>>>> .
>>>>> .
>>>>>
>>>>> conftest.c:61: error: expected expression before ')' token
>>>>> configure:12309: $? = 1
>>>>> configure: failed program was:
>>>>> | /* confdefs.h */
>>>>> | #define PACKAGE_NAME "pacemaker"
>>>>> | #define PACKAGE_TARNAME "pacemaker"
>>>>> | #define PACKAGE_VERSION "1.1.6"
>>>>> | #define PACKAGE_STRING "pacemaker 1.1.6"
>>>>> | #define PACKAGE_BUGREPORT "pacemaker at oss.clusterlabs.org"
>>>>> | #define PACKAGE_URL ""
>>>>> | #define PACKAGE "pacemaker"
>>>>> | #define VERSION "1.1.6"
>>>>> | #define PACEMAKER_VERSION "1.1.6"
>>>>> | #define STDC_HEADERS 1
>>>>> | #define HAVE_SYS_TYPES_H 1
>>>>> | #define HAVE_SYS_STAT_H 1
>>>>> | #define HAVE_STDLIB_H 1
>>>>> | #define HAVE_STRING_H 1
>>>>> | #define HAVE_MEMORY_H 1
>>>>> | #define HAVE_STRINGS_H 1
>>>>> | #define HAVE_INTTYPES_H 1
>>>>> | #define HAVE_STDINT_H 1
>>>>> | #define HAVE_UNISTD_H 1
>>>>> | #define HAVE_DLFCN_H 1
>>>>> | #define LT_OBJDIR ".libs/"
>>>>> | #define HAVE_STRINGIZE 1
>>>>> | /* end confdefs.h. */
>>>>> | #include <stdio.h>
>>>>> | #ifdef HAVE_SYS_TYPES_H
>>>>> | # include <sys/types.h>
>>>>> | #endif
>>>>> | #ifdef HAVE_SYS_STAT_H
>>>>> | # include <sys/stat.h>
>>>>> | #endif
>>>>> | #ifdef STDC_HEADERS
>>>>> | # include <stdlib.h>
>>>>> | # include <stddef.h>
>>>>> | #else
>>>>> | # ifdef HAVE_STDLIB_H
>>>>> | # include <stdlib.h>
>>>>>
>>>>>
>>>>> Does anyone have a clue?
>>>>>
>>>>> Thanks and regards
>>>>> Philipp
>>>>>
>>>>> ----
>>>>>
>>>>> _______________________________________________
>>>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>>>
>>>>> Project Home: http://www.clusterlabs.org
>>>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>>>> Bugs: http://bugs.clusterlabs.org
>>>> _______________________________________________
>>>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>>>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>>>
>>>> Project Home: http://www.clusterlabs.org
>>>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>>> Bugs: http://bugs.clusterlabs.org
>>> ----
>
> ----
More information about the Pacemaker
mailing list