Hi,

  I finally got Heartbeat 2.1.3 to compile on Solaris 10 using the SunStudio11 
compiler. Below are the changes I had to make.
Sorry for format, but I do not have internet at work.

Added to include/lha_internal.h
#define __FUNCTION__ __func__
#define __PRETTY_FUNCTION__ __func__

Also had to add the define of FNCTION to these;
lib/clpumbing/cl_misc.c
lib/plugins/stonith/cyclades.c, rps10.c, ssh.c, suicide.c, null.c

Change gcc to $(CC) in tools/Makefile.am

Change char message[0]; to char message[4]; in 
include/clpumbing/loggingdaemon.h, line 29

lib/clpumbing/cl_msg_types.c remove return from void methods
binary_display, compress_display, struct_display and uncompress_display

lib/clpumbing/cl_uuid.c remove return from void method cl_uuid_unparse

lib/clpumbing/GSource.c remove prepare:, check:, etc from Gmain_timeout_funcs

lib/clpumbing/ipsocket.c remove destroy:, etc from socket_ops

lib/hbclient/client_lib.c remove signon:, etc from heartbeat_ops

lib/plugins/stonith/apcmaster.c remove __attribute__((unused)) from version* 
declaration

membership/ccm/ccmlib.h
change born_t member[0]; to born_t member[4]; in ccm_meminfo_s
change born_t born[0]; to born_t born[4]; in ccm_born_s
change node[0]; to node[4]; in ccm_llm_s

Plus the reboot(rebootflag,NULL) one that was already fixed.

There were a bunch of warnings, but it did compile.

Ken
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to