[Pacemaker] Erro compiling PaceMaker for CoroSync and OpenAIS
Lars Ellenberg
lars.ellenberg at linbit.com
Thu May 6 09:16:21 UTC 2010
On Tue, May 04, 2010 at 03:33:49PM -0400, Ruiyuan Jiang wrote:
> From: Andrew Beekhof [mailto:andrew at beekhof.net]
> > 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
> >
> > Are you cross compiling?
> > It makes no sense that a standard macro like GUINT_TO_POINTER() would
> > cause problems like this.
> No, Andrew. Just follow the instruction on the web page of "Install".
You are trying to compile for a 64bit target against 32bit headers,
by any chance?
Maybe you should consider getting professional support ;-)
--
: 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.
More information about the Pacemaker
mailing list