[Pacemaker] [Problem]A compilation error of Pacemaker1.1.

Andrew Beekhof andrew at beekhof.net
Wed Aug 4 08:08:05 UTC 2010


On Wed, Aug 4, 2010 at 6:34 AM,  <renayama19661014 at ybb.ne.jp> wrote:
> Hi,
>
> I compiled Pacemaker1.1.
>
> But, the next error happened.
>
> [root at srv01 Pacemaker-1-1-5ce5b34cf3ab]# export PREFIX=/usr;export
> LCRSODIR=$PREFIX/libexec/lcrso;export CLUSTER_USER=hacluster;export CLUSTER_GROUP=haclient
>
> [root at srv01 Pacemaker-1-1-5ce5b34cf3ab]# ./autogen.sh && ./configure --prefix=$PREFIX
> --localstatedir=/var --with-lcrso-dir=$LCRSODIR
>
> [root at srv01 Pacemaker-1-1-5ce5b34cf3ab]# make install
>
> s -Werror -fPIC -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.c  -fPIC -DPIC -o .libs/utils.o
> cc1: warnings being treated as errors
> utils.c:65: warning: 'common' defined but not used
> gmake[2]: *** [utils.lo] Error 1
> gmake[2]: Leaving directory `/opt/Pacemaker-1-1-5ce5b34cf3ab/lib/common'
> gmake[1]: *** [install-recursive] Error 1
> gmake[1]: Leaving directory `/opt/Pacemaker-1-1-5ce5b34cf3ab/lib'
> make: *** [install-recursive] Error 1

Thats strange. Thats the new logging code.
Here's the macro its complaining about:

#define CRM_TRACE_INIT_DATA(name)					\
    static void name(void) { CRM_ASSERT(__start___verbose !=
__stop___verbose); } \
    void __attribute__ ((constructor)) name(void);


On F-12 there are no warnings at all:

[10:07 AM] beekhof at f12 ~/Development/sources/pacemaker/1.1 # make -C
lib/common all
  CC     ipc.lo
  CC     utils.lo
  CC     xml.lo
  CC     iso8601.lo
  CC     iso8601_fields.lo
  CC     remote.lo
  CC     mainloop.lo
  CCLD   libcrmcommon.la
  CC     cluster.lo
  CC     membership.lo
  CC     ais.lo
  CC     heartbeat.lo
  CCLD   libcrmcluster.la


>
> My environment is as follows.
>
>  * RHEL5.5(x64)
>  * corosync 1.2.7
>  * Pacemaker-1-1-5ce5b34cf3ab.tar
>  * Cluster-Resource-Agents-bfcc4e050a07.tar
>  * Reusable-Cluster-Components-8286b46c91e3.tar
>
>
> Is there a problem in my compilation procedure?
>
> Best Regards,
> Hideo Yamauchi.
>
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>




More information about the Pacemaker mailing list