[Pacemaker] Error building Pacemaker on OS X Lion

info at sdips.de info at sdips.de
Wed Jan 25 05:54:39 EST 2012


Yes, I've followed this howto, but build dependency from source instead
of using Macport. Macport had too many others issues, that hadn't worked
and lot off missing configure settings aren't described in that howto
either.
Everything went smooth instead of the missing Pacemaker/Heartbeat
libraries. Where can I seek for theme, or what are the file names I have
looking for?


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