Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Pacemaker

Error building Pacemaker on OS X Lion

 

 

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded


info at sdips

Jan 24, 2012, 2:58 AM

Post #1 of 13 (2893 views)
Permalink
Error building Pacemaker on OS X Lion

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"
| #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"
| #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"
| #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"
| #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
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


info at sdips

Jan 24, 2012, 8:56 AM

Post #2 of 13 (2864 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

configure: error: in `/Users/admin/1.1':
configure: error: Unable to support Heartbeat: client libraries not found
See `config.log' for more details


Still haven't any solution and this topic doesn't helped me out either.
http://oss.clusterlabs.org/pipermail/pacemaker/2011-July/011048.html


What does the Pacemaker configure is missing?
I don't understand the configure log failures, maybe any DEVs have a
solution what went wrong here?

Heartbeat is installed and is able to start, except the missing
Pacemaker Plugins

heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(logfacility,syslog)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(coredumps,true)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(pacemaker,respawn)
heartbeat[37281]: 2012/01/24_17:45:14 info: Pacemaker support: respawn
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
cib uid=hacluster
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
stonithd uid=root
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
stonith-ng uid=root
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
attrd uid=hacluster
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
crmd uid=hacluster
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
pingd uid=root
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
respawn hacluster /usr/local/lib64/heartbeat/ccm
heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
hacluster /usr/local/lib64/heartbeat/ccm
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
respawn hacluster /usr/local/lib64/heartbeat/cib
heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
hacluster /usr/local/lib64/heartbeat/cib
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
[/usr/local/lib64/heartbeat/cib] is not executable
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
hacluster /usr/local/lib64/heartbeat/cib failed
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: respawn
root /usr/local/lib64/heartbeat/lrmd -r
heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive: root
/usr/local/lib64/heartbeat/lrmd -r
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: respawn
root /usr/local/lib64/heartbeat/stonithd
heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive: root
/usr/local/lib64/heartbeat/stonithd
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
[/usr/local/lib64/heartbeat/stonithd] is not executable
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn root
/usr/local/lib64/heartbeat/stonithd failed
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
respawn hacluster /usr/local/lib64/heartbeat/attrd
heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
hacluster /usr/local/lib64/heartbeat/attrd
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
[/usr/local/lib64/heartbeat/attrd] is not executable
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
hacluster /usr/local/lib64/heartbeat/attrd failed
heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
respawn hacluster /usr/local/lib64/heartbeat/crmd
heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
hacluster /usr/local/lib64/heartbeat/crmd
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
[/usr/local/lib64/heartbeat/crmd] is not executable
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
hacluster /usr/local/lib64/heartbeat/crmd failed
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(udpport,1694)
heartbeat[37281]: 2012/01/24_17:45:14 WARN: heartbeat: udp port 1694
reserved for service "rrimwm".
heartbeat: udpport setting must precede media
statementsheartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(bcast,en0)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(autojoin,none)
heartbeat[37281]: 2012/01/24_17:45:14 debug:
add_option(node,administrators-mac.local)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(keepalive,1)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(warntime,6)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(deadtime,10)
heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(initdead,15)
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=<null>, gid=haclient
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=<null>, gid=haclient
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Heartbeat not started:
configuration error.
heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Configuration error,
heartbeat not started.
heartbeat[37281]: 2012/01/24_17:45:14 debug: Exiting from pid 37281 [rc=6]





Am 24.01.12 11:58, schrieb info [at] sdips:
> 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"
> | #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"
> | #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"
> | #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"
> | #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
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


dejanmm at fastmail

Jan 24, 2012, 2:48 PM

Post #3 of 13 (2791 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

Hi,

On Tue, Jan 24, 2012 at 05:56:14PM +0100, info [at] sdips wrote:
> configure: error: in `/Users/admin/1.1':
> configure: error: Unable to support Heartbeat: client libraries not found
> See `config.log' for more details
>
>
> Still haven't any solution and this topic doesn't helped me out either.
> http://oss.clusterlabs.org/pipermail/pacemaker/2011-July/011048.html
>
>
> What does the Pacemaker configure is missing?

Heartbeat development bits (include files and libraries)? I guess
that there is a way to specify the location (or just supply
library/include paths) in case if it's not standard.

Thanks,

Dejan

> I don't understand the configure log failures, maybe any DEVs have a
> solution what went wrong here?
>
> Heartbeat is installed and is able to start, except the missing
> Pacemaker Plugins
>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(logfacility,syslog)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(coredumps,true)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(pacemaker,respawn)
> heartbeat[37281]: 2012/01/24_17:45:14 info: Pacemaker support: respawn
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
> cib uid=hacluster
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
> stonithd uid=root
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
> stonith-ng uid=root
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
> attrd uid=hacluster
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
> crmd uid=hacluster
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
> pingd uid=root
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
> respawn hacluster /usr/local/lib64/heartbeat/ccm
> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
> hacluster /usr/local/lib64/heartbeat/ccm
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
> respawn hacluster /usr/local/lib64/heartbeat/cib
> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
> hacluster /usr/local/lib64/heartbeat/cib
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
> [/usr/local/lib64/heartbeat/cib] is not executable
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
> hacluster /usr/local/lib64/heartbeat/cib failed
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: respawn
> root /usr/local/lib64/heartbeat/lrmd -r
> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive: root
> /usr/local/lib64/heartbeat/lrmd -r
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: respawn
> root /usr/local/lib64/heartbeat/stonithd
> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive: root
> /usr/local/lib64/heartbeat/stonithd
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
> [/usr/local/lib64/heartbeat/stonithd] is not executable
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn root
> /usr/local/lib64/heartbeat/stonithd failed
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
> respawn hacluster /usr/local/lib64/heartbeat/attrd
> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
> hacluster /usr/local/lib64/heartbeat/attrd
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
> [/usr/local/lib64/heartbeat/attrd] is not executable
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
> hacluster /usr/local/lib64/heartbeat/attrd failed
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
> respawn hacluster /usr/local/lib64/heartbeat/crmd
> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
> hacluster /usr/local/lib64/heartbeat/crmd
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
> [/usr/local/lib64/heartbeat/crmd] is not executable
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
> hacluster /usr/local/lib64/heartbeat/crmd failed
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(udpport,1694)
> heartbeat[37281]: 2012/01/24_17:45:14 WARN: heartbeat: udp port 1694
> reserved for service "rrimwm".
> heartbeat: udpport setting must precede media
> statementsheartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(bcast,en0)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(autojoin,none)
> heartbeat[37281]: 2012/01/24_17:45:14 debug:
> add_option(node,administrators-mac.local)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(keepalive,1)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(warntime,6)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(deadtime,10)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(initdead,15)
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=<null>, gid=haclient
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=<null>, gid=haclient
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Heartbeat not started:
> configuration error.
> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Configuration error,
> heartbeat not started.
> heartbeat[37281]: 2012/01/24_17:45:14 debug: Exiting from pid 37281 [rc=6]
>
>
>
>
>
> Am 24.01.12 11:58, schrieb info [at] sdips:
> > 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"
> > | #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"
> > | #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"
> > | #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"
> > | #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
> 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
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


andrew at beekhof

Jan 24, 2012, 4:27 PM

Post #4 of 13 (2764 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

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 <info [at] sdips> 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"
> | #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"
> | #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"
> | #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"
> | #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
> 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
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


info at sdips

Jan 25, 2012, 2:54 AM

Post #5 of 13 (2755 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

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 <info [at] sdips> 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"
>> | #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"
>> | #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"
>> | #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"
>> | #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
>> 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
> 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
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


info at sdips

Jan 25, 2012, 3:14 AM

Post #6 of 13 (2778 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

Hi Dejan,

what are the standards and how can I supply them?


Is this the command that searches for the heartbeat libraries and fails?
(config.log)
configure:16512: checking for ll_cluster_new in -lhbclient
configure:16537: gcc -std=gnu99 -o conftest -g -O2 -I/usr/include
-I/usr/include/heartbeat -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/include/libxml2
conftest.c -lhbclient -lplumb -lpils -lbz2 -lxslt -lxml2 -lintl
-lglib-2.0 -lpam -ldl -lc -L/usr/lib -L/usr/local/lib -lglib-2.0
-lintl -lltdl >&5
ld: library not found for -lhbclient
collect2: ld returned 1 exit status

That's the content of my heartbeat library:
ls /usr/include/heartbeat/
HBauth.h apphb.h compress.h ha_msg.h
hb_config.h lrm/
HBcomm.h apphb_notify.h glue_config.h hb_api.h
heartbeat.h

cheers
Philipp

Am 24.01.12 23:48, schrieb Dejan Muhamedagic:
> Hi,
>
> On Tue, Jan 24, 2012 at 05:56:14PM +0100, info [at] sdips wrote:
>> configure: error: in `/Users/admin/1.1':
>> configure: error: Unable to support Heartbeat: client libraries not found
>> See `config.log' for more details
>>
>>
>> Still haven't any solution and this topic doesn't helped me out either.
>> http://oss.clusterlabs.org/pipermail/pacemaker/2011-July/011048.html
>>
>>
>> What does the Pacemaker configure is missing?
> Heartbeat development bits (include files and libraries)? I guess
> that there is a way to specify the location (or just supply
> library/include paths) in case if it's not standard.
>
> Thanks,
>
> Dejan
>
>> I don't understand the configure log failures, maybe any DEVs have a
>> solution what went wrong here?
>>
>> Heartbeat is installed and is able to start, except the missing
>> Pacemaker Plugins
>>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(logfacility,syslog)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(coredumps,true)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(pacemaker,respawn)
>> heartbeat[37281]: 2012/01/24_17:45:14 info: Pacemaker support: respawn
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
>> cib uid=hacluster
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
>> stonithd uid=root
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
>> stonith-ng uid=root
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
>> attrd uid=hacluster
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
>> crmd uid=hacluster
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: apiauth
>> pingd uid=root
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
>> respawn hacluster /usr/local/lib64/heartbeat/ccm
>> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
>> hacluster /usr/local/lib64/heartbeat/ccm
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
>> respawn hacluster /usr/local/lib64/heartbeat/cib
>> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
>> hacluster /usr/local/lib64/heartbeat/cib
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
>> [/usr/local/lib64/heartbeat/cib] is not executable
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
>> hacluster /usr/local/lib64/heartbeat/cib failed
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: respawn
>> root /usr/local/lib64/heartbeat/lrmd -r
>> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive: root
>> /usr/local/lib64/heartbeat/lrmd -r
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive: respawn
>> root /usr/local/lib64/heartbeat/stonithd
>> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive: root
>> /usr/local/lib64/heartbeat/stonithd
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
>> [/usr/local/lib64/heartbeat/stonithd] is not executable
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn root
>> /usr/local/lib64/heartbeat/stonithd failed
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
>> respawn hacluster /usr/local/lib64/heartbeat/attrd
>> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
>> hacluster /usr/local/lib64/heartbeat/attrd
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
>> [/usr/local/lib64/heartbeat/attrd] is not executable
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
>> hacluster /usr/local/lib64/heartbeat/attrd failed
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Implicit directive:
>> respawn hacluster /usr/local/lib64/heartbeat/crmd
>> heartbeat[37281]: 2012/01/24_17:45:14 info: respawn directive:
>> hacluster /usr/local/lib64/heartbeat/crmd
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Client child command
>> [/usr/local/lib64/heartbeat/crmd] is not executable
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Directive respawn
>> hacluster /usr/local/lib64/heartbeat/crmd failed
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(udpport,1694)
>> heartbeat[37281]: 2012/01/24_17:45:14 WARN: heartbeat: udp port 1694
>> reserved for service "rrimwm".
>> heartbeat: udpport setting must precede media
>> statementsheartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(bcast,en0)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(autojoin,none)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug:
>> add_option(node,administrators-mac.local)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(keepalive,1)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(warntime,6)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(deadtime,10)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: add_option(initdead,15)
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=hacluster, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=<null>, gid=haclient
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=root, gid=<null>
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: uid=<null>, gid=haclient
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Heartbeat not started:
>> configuration error.
>> heartbeat[37281]: 2012/01/24_17:45:14 ERROR: Configuration error,
>> heartbeat not started.
>> heartbeat[37281]: 2012/01/24_17:45:14 debug: Exiting from pid 37281 [rc=6]
>>
>>
>>
>>
>>
>> Am 24.01.12 11:58, schrieb info [at] sdips:
>>> 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"
>>> | #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"
>>> | #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"
>>> | #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"
>>> | #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
>> 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
> 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
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


info at sdips

Jan 26, 2012, 3:25 AM

Post #7 of 13 (2752 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

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

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 <info [at] sdips> 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"
>> | #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"
>> | #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"
>> | #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"
>> | #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
>> 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
> 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
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


andrew at beekhof

Jan 29, 2012, 2:03 PM

Post #8 of 13 (2719 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

On Thu, Jan 26, 2012 at 10:25 PM, info [at] sdips <info [at] sdips> 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)

>
> 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 <info [at] sdips> 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"
>>> | #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"
>>> | #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"
>>> | #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"
>>> | #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
>>> 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
>> 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
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


andrew at beekhof

Jan 29, 2012, 2:04 PM

Post #9 of 13 (2728 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

On Mon, Jan 30, 2012 at 9:03 AM, Andrew Beekhof <andrew [at] beekhof> wrote:
> On Thu, Jan 26, 2012 at 10:25 PM, info [at] sdips <info [at] sdips> 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)

Also, you may find homebrew easier to work with than macports:
http://mxcl.github.com/homebrew/

>
>>
>> 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 <info [at] sdips> 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"
>>>> | #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"
>>>> | #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"
>>>> | #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"
>>>> | #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
>>>> 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
>>> 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
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


info at sdips

Feb 6, 2012, 6:05 AM

Post #10 of 13 (2689 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

Am 29.01.12 23:03, schrieb Andrew Beekhof:
> On Thu, Jan 26, 2012 at 10:25 PM, info [at] sdips <info [at] sdips> 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?

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.


>
>> 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 <info [at] sdips> 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"
>>>> | #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"
>>>> | #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"
>>>> | #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"
>>>> | #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
>>>> 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
>>> 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
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


andrew at beekhof

Feb 6, 2012, 1:00 PM

Post #11 of 13 (2690 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

On Tue, Feb 7, 2012 at 1:05 AM, info [at] sdips <info [at] sdips> wrote:
> Am 29.01.12 23:03, schrieb Andrew Beekhof:
>> On Thu, Jan 26, 2012 at 10:25 PM, info [at] sdips <info [at] sdips> 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 <info [at] sdips> 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"
>>>>> | #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"
>>>>> | #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"
>>>>> | #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"
>>>>> | #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
>>>>> 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
>>>> 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
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


info at sdips

Feb 7, 2012, 5:39 AM

Post #12 of 13 (2694 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

Am 06.02.12 22:00, schrieb Andrew Beekhof:
> On Tue, Feb 7, 2012 at 1:05 AM, info [at] sdips <info [at] sdips> wrote:
>> Am 29.01.12 23:03, schrieb Andrew Beekhof:
>>> On Thu, Jan 26, 2012 at 10:25 PM, info [at] sdips <info [at] sdips> 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.

my fault, resource-agent haven't been installed yet.
and I'm running again in some new building errors ;(

In file included from /opt/local/include/libnet.h:81,
from send_arp.libnet.c:44:
/opt/local/include/./libnet/libnet-functions.h:85: warning: function
declaration isn’t a prototype
In file included from send_arp.libnet.c:44:
/opt/local/include/libnet.h:87:2: error: #error "byte order has not
been specified, you'll need to #define either LIBNET_LIL_ENDIAN or
LIBNET_BIG_ENDIAN. See the documentation regarding the
libnet-config script."
send_arp.libnet.c: In function ‘main’:
send_arp.libnet.c:206: warning: comparison is always false due to
limited range of data type
make[3]: *** [send_arp-send_arp.libnet.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

libnet is installed via macports, the LIBNET_LIL_ENDIAN is defined in
/opt/local/bin/libnet-config. what's wrong now?
>> 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 <info [at] sdips> 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"
>>>>>> | #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"
>>>>>> | #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"
>>>>>> | #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"
>>>>>> | #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
>>>>>> 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
>>>>> 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
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


andrew at beekhof

Feb 7, 2012, 3:56 PM

Post #13 of 13 (2714 views)
Permalink
Re: Error building Pacemaker on OS X Lion [In reply to]

On Wed, Feb 8, 2012 at 12:39 AM, info [at] sdips <info [at] sdips> wrote:
> Am 06.02.12 22:00, schrieb Andrew Beekhof:
>> On Tue, Feb 7, 2012 at 1:05 AM, info [at] sdips <info [at] sdips> wrote:
>>> Am 29.01.12 23:03, schrieb Andrew Beekhof:
>>>> On Thu, Jan 26, 2012 at 10:25 PM, info [at] sdips <info [at] sdips> 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.
>
> my fault, resource-agent haven't been installed yet.
> and I'm running again in some new building errors ;(
>
>    In file included from /opt/local/include/libnet.h:81,
>                 from send_arp.libnet.c:44:
>    /opt/local/include/./libnet/libnet-functions.h:85: warning: function
> declaration isn’t a prototype
>    In file included from send_arp.libnet.c:44:
>    /opt/local/include/libnet.h:87:2: error: #error "byte order has not
> been specified, you'll need to #define either LIBNET_LIL_ENDIAN or
> LIBNET_BIG_ENDIAN.  See the documentation     regarding the
> libnet-config script."
>    send_arp.libnet.c: In function ‘main’:
>    send_arp.libnet.c:206: warning: comparison is always false due to
> limited range of data type
>    make[3]: *** [send_arp-send_arp.libnet.o] Error 1
>    make[2]: *** [all-recursive] Error 1
>    make[1]: *** [all-recursive] Error 1
>    make: *** [all] Error 2
>
> libnet is installed via macports, the LIBNET_LIL_ENDIAN is defined in
> /opt/local/bin/libnet-config. what's wrong now?

The error message seems reasonably helpful. Did you read the
documentation it refers to?

_______________________________________________
Pacemaker mailing list: Pacemaker [at] oss
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

Linux-HA pacemaker RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.