[Pacemaker] pacemaker-mgmt compile error

Michael Fung mike at 3open.org
Wed Jun 23 06:21:24 UTC 2010


On 2010/6/23 上午 11:18, Yan Gao wrote:
>  
> Strange glib...How about use "--enable-fatal-warnings=no" when configuring the source?

Dear Yan, thanks for your help.

After restart from scratch and doing:
./Configure configure --enable-fatal-warnings=no

The make result is the same:
cc1: warnings being treated as errors
In file included from /usr/include/glib-2.0/glib/gasyncqueue.h:34,
                 from /usr/include/glib-2.0/glib.h:34,
                 from mgmt_tls_lib.c:33:
/usr/include/glib-2.0/glib/gthread.h: In function ‘g_once_init_enter’:
/usr/include/glib-2.0/glib/gthread.h:348: error: cast discards
qualifiers from pointer target type
make[2]: *** [libhbmgmttls_la-mgmt_tls_lib.lo] Error 1
make[2]: Leaving directory
`/root/tmp/Pacemaker-Python-GUI-pacemaker-mgmt-2.0.0/lib/mgmt'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/root/tmp/Pacemaker-Python-GUI-pacemaker-mgmt-2.0.0/lib'
make: *** [all-recursive] Error 1


Rgds,
Michael




More information about the Pacemaker mailing list