[Pacemaker] Erro compiling PaceMaker for CoroSync and OpenAIS

Andrew Beekhof andrew at beekhof.net
Tue May 4 15:01:31 EDT 2010


Are you cross compiling?
It makes no sense that a standard macro like GUINT_TO_POINTER() would
cause problems like this.

On Tue, May 4, 2010 at 8:25 PM, Ruiyuan Jiang <Ruiyuan_Jiang at liz.com> wrote:
> Hi, Andrew
>
> After I modified (deleted) those lines from remote.c, I got another error from membership.c:
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I. -I../../include -I../../include -I../../include -I../../include -I../../libltdl -I../../libltdl -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -g -O2 -I/usr/local/include -I/usr/local/include/heartbeat -I/usr/local/include -ggdb3 -O0 -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror -fPIC -MT membership.lo -MD -MP -MF .deps/membership.Tpo -c membership.c  -fPIC -DPIC -o .libs/membership.o
> cc1: warnings being treated as errors
> membership.c: In function 'reap_crm_member':
> membership.c:69: warning: cast to pointer from integer of different size
> membership.c:78: warning: cast to pointer from integer of different size
> membership.c: In function 'crm_new_peer':
> membership.c:201: warning: cast to pointer from integer of different size
> membership.c: In function 'crm_get_peer':
> membership.c:230: warning: cast to pointer from integer of different size
> membership.c:256: warning: cast to pointer from integer of different size
> membership.c:257: warning: cast to pointer from integer of different size
> gmake[2]: *** [membership.lo] Error 1
> gmake[2]: Leaving directory `/home/rc6/Pacemaker-1-0-a1bc70f2ea59/lib/common'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/home/rc6/Pacemaker-1-0-a1bc70f2ea59/lib'
> make: *** [all-recursive] Error 1
> [root at usnbrl53 Pacemaker-1-0-a1bc70f2ea59]#
>
> The error looks like the same from "remote.c". Thanks.
>
> Ryan
>
> -----Original Message-----
> From: Andrew Beekhof [mailto:andrew at beekhof.net]
> Sent: Monday, May 03, 2010 5:41 PM
> To: The Pacemaker cluster resource manager
> Subject: Re: [Pacemaker] Erro compiling PaceMaker for CoroSync and OpenAIS
>
> Sure, if you don't plan on using the remote connectivity.
> Which many dont.
>
> On Mon, May 3, 2010 at 10:50 PM, Ruiyuan Jiang <Ruiyuan_Jiang at liz.com> wrote:
>> It seems libsoup depends on gnutls-devel which gnome needs libsoup. I'd prefer to modify the code instead of delete gnutls. Can I remove line 74 of the remote.c instead?
>>
>>
>> -----Original Message-----
>> From: Lars Ellenberg [mailto:lars.ellenberg at linbit.com]
>> Sent: Monday, May 03, 2010 4:23 PM
>> To: pacemaker at oss.clusterlabs.org
>> Subject: Re: [Pacemaker] Erro compiling PaceMaker for CoroSync and OpenAIS
>>
>> On Mon, May 03, 2010 at 01:45:28PM -0400, Ruiyuan Jiang wrote:
>>> >>> I have to admit one more or the main reason why I am compiling
>>> >>> myself. Linux HA stated that the software runs on Solaris. I might
>>> >>> use Linux HA for my Solaris (SPARC) system if OpenAIS or Corosync
>>> >>> does not support Solaris. I don't think there is a pre-compiled
>>> >>> package for Solaris. If I can successfully compile on Linux, it is
>>> >>> a lot easier for me to find the problem when I am trying on
>>> >>> Solaris if there is a problem when I use the same procedure.
>>
>>> >>
>>> >> Ah, thats a different story.
>>> >>
>>> >> I suggest opening up remote.c and looking for line 74. eg.
>>> >>
>>> >>        gnutls_transport_set_ptr(*session,
>>> >>                                 (gnutls_transport_ptr) GINT_TO_POINTER(csock));
>>> >>
>>> >> It looks like your version of gnutls_transport_set_ptr() doesn't like
>>> >> the call to GINT_TO_POINTER.
>>> >> Maybe the type for gnutls_transport_ptr is different.
>>> >> Perhaps google the warning:
>>> >>  >>> remote.c:74: warning: cast to pointer from integer of different size
>>> >>
>>> >> Or, if you're feeling luck, disable fatal warnings when you configure pacemaker.
>>
>>> What do you need and I can provide you for the platform, Andrew, for
>>> the problem? Also it did not have problems when I compiled Linux-HA,
>>> Pacemaker on RHEL v5.4 (x86_64 bit). I also tried OpenAIS, Corosync
>>> and Pacemaker on RHEL v5.4 (x86_64 bit) and I got problem when
>>> compiling Pacemaker. I think the problem may have something to do with
>>> the combination of OpenAIS, Corosync and Pacemaker.
>>
>> You could deinstall gnutls-devel, which should disable that particular
>> piece of code.  You'll likely not need remote tls connections to the cib
>> anyways.
>>
>> --
>> : Lars Ellenberg
>> : LINBIT | Your Way to High Availability
>> : DRBD/HA support and consulting http://www.linbit.com
>>
>> DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>
>>
>>
>> This message (including any attachments) is intended
>> solely for the specific individual(s) or entity(ies) named
>> above, and may contain legally privileged and
>> confidential information. If you are not the intended
>> recipient, please notify the sender immediately by
>> replying to this message and then delete it.
>> Any disclosure, copying, or distribution of this message,
>> or the taking of any action based on it, by other than the
>> intended recipient, is strictly prohibited.
>>
>>
>> _______________________________________________
>> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
>> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>
>
>
> This message (including any attachments) is intended
> solely for the specific individual(s) or entity(ies) named
> above, and may contain legally privileged and
> confidential information. If you are not the intended
> recipient, please notify the sender immediately by
> replying to this message and then delete it.
> Any disclosure, copying, or distribution of this message,
> or the taking of any action based on it, by other than the
> intended recipient, is strictly prohibited.
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>




More information about the Pacemaker mailing list