[Pacemaker] SmartOS / illumos

Dalho PARK dpark at smart-trade.net
Fri May 10 16:42:55 CEST 2013


Hello Andrew,

Thank you for the advice. 
 I applied the patches you mentioned and when I tried make, some error disappeared, but still receive the following error.
Do you have any clue?

Anyway, the patch will be applied to current or next version?
Regards,
Dalho 

gmake[2]: Entering directory `/root/pacemaker/lib/common'
  CC       ipc.lo
ipc.c: In function 'crm_ipcs_flush_events':
ipc.c:450:16: error: assignment from incompatible pointer type [-Werror]
ipc.c: In function 'crm_ipc_prepare':
ipc.c:506:21: error: assignment from incompatible pointer type [-Werror]
ipc.c: In function 'crm_ipcs_sendv':
ipc.c:567:46: error: initialization from incompatible pointer type [-Werror]
ipc.c: In function 'crm_ipc_send':
ipc.c:1028:12: error: assignment from incompatible pointer type [-Werror]
cc1: all warnings being treated as errors
gmake[2]: *** [ipc.lo] Error 1
gmake[2]: Leaving directory `/root/pacemaker/lib/common'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/pacemaker/lib'
make: *** [core] Error 1


-----Original Message-----
From: Andrew Beekhof [mailto:andrew at beekhof.net] 
Sent: Thursday, May 09, 2013 9:19 PM
To: The Pacemaker cluster resource manager
Subject: Re: [Pacemaker] SmartOS / illumos

Looks like you need https://github.com/beekhof/pacemaker/commit/629aa36
I recall making that change once before but it got lost somehow.

On 10/05/2013, at 10:02 AM, Dalho PARK <dpark at smart-trade.net> wrote:

> Hello,
> I'm trying to compile pacemaker on SmartOS and having error during make.
> Does anyone has  already successfully compiled on SmartOS? Or Can 
> Someone help to solve the problem I'm having now.
> Thank you,
>  
> Glib version : glib2-2.34.3
>  
> GCC version:
> [root at web01 ~/pacemaker]# gcc -v
> Using built-in specs.
> COLLECT_GCC=/opt/local/gcc47/bin/gcc
> COLLECT_LTO_WRAPPER=/opt/local/gcc47/libexec/gcc/x86_64-sun-solaris2.1
> 1/4.7.2/lto-wrapper
> Target: x86_64-sun-solaris2.11
> Configured with: ../gcc-4.7.2/configure --enable-languages='c go 
> fortran c++' --enable-shared --enable-long-long 
> --with-local-prefix=/opt/local/gcc47 --enable-libssp 
> --enable-threads=posix --with-boot-ldflags='-static-libstdc++ 
> -static-libgcc -Wl,-R/opt/local/lib ' --disable-nls 
> --enable-__cxa_atexit 
> --with-gxx-include-dir=/opt/local/gcc47/include/c++/ --without-gnu-ld 
> --with-ld=/usr/bin/ld --with-gnu-as --with-as=/opt/local/bin/gas 
> --prefix=/opt/local/gcc47 --build=x86_64-sun-solaris2.11 
> --host=x86_64-sun-solaris2.11 --infodir=/opt/local/gcc47/info 
> --mandir=/opt/local/gcc47/man Thread model: posix gcc version 4.7.2 
> (GCC)
>  
>  
> Here is the error log of make
> +++++++++++++++++++++++++++++++
> gmake[2]: Entering directory `/root/pacemaker/lib/common'
>   CC       ipc.lo
> In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h:81:16: error: expected '=', ',', ';', 
> 'asm' or '__attribute__' before '*' token
> ../../include/portability.h:86:1: error: expected identifier or '(' 
> before '}' token
> ../../include/portability.h:86:1: error: useless type name in empty 
> declaration [-Werror]
> ../../include/portability.h:98:1: error: static declaration of 
> 'g_hash_table_get_values' follows non-static declaration In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,
>                  from ../../include/portability.h:79,
>                  from ../../include/crm_internal.h:26,
>                  from ipc.c:19:
> /opt/local/include/glib/glib-2.0/glib/ghash.h:101:13: note: previous 
> declaration of 'g_hash_table_get_values' was here In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h: In function 'g_hash_table_nth_data':
> ../../include/portability.h:111:13: error: 'GHashTableIter' has no member named 'lpc'
> ../../include/portability.h:111:28: error: 'GHashTableIter' has no member named 'nth'
> ../../include/portability.h:112:13: error: 'GHashTableIter' has no member named 'key'
> ../../include/portability.h:113:13: error: 'GHashTableIter' has no member named 'value'
> ../../include/portability.h: At top level:
> ../../include/portability.h:121:1: error: static declaration of 
> 'g_hash_table_iter_init' follows non-static declaration In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,
>                  from ../../include/portability.h:79,
>                  from ../../include/crm_internal.h:26,
>                  from ipc.c:19:
> /opt/local/include/glib/glib-2.0/glib/ghash.h:103:13: note: previous 
> declaration of 'g_hash_table_iter_init' was here In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h: In function 'g_hash_table_iter_init':
> ../../include/portability.h:123:9: error: 'GHashTableIter' has no member named 'hash'
> ../../include/portability.h:124:9: error: 'GHashTableIter' has no member named 'nth'
> ../../include/portability.h:125:9: error: 'GHashTableIter' has no member named 'lpc'
> ../../include/portability.h:126:9: error: 'GHashTableIter' has no member named 'key'
> ../../include/portability.h:127:9: error: 'GHashTableIter' has no member named 'value'
> ../../include/portability.h: At top level:
> ../../include/portability.h:131:1: error: static declaration of 
> 'g_hash_table_iter_next' follows non-static declaration In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,
>                  from ../../include/portability.h:79,
>                  from ../../include/crm_internal.h:26,
>                  from ipc.c:19:
> /opt/local/include/glib/glib-2.0/glib/ghash.h:105:13: note: previous 
> declaration of 'g_hash_table_iter_next' was here In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h: In function 'g_hash_table_iter_next':
> ../../include/portability.h:135:9: error: 'GHashTableIter' has no member named 'lpc'
> ../../include/portability.h:136:9: error: 'GHashTableIter' has no member named 'key'
> ../../include/portability.h:137:9: error: 'GHashTableIter' has no member named 'value'
> ../../include/portability.h:138:13: error: 'GHashTableIter' has no member named 'nth'
> ../../include/portability.h:138:43: error: 'GHashTableIter' has no member named 'hash'
> ../../include/portability.h:139:42: error: 'GHashTableIter' has no member named 'hash'
> ../../include/portability.h:140:13: error: 'GHashTableIter' has no member named 'nth'
> ../../include/portability.h:143:20: error: 'GHashTableIter' has no member named 'key'
> ../../include/portability.h:145:22: error: 'GHashTableIter' has no member named 'value'
> ../../include/portability.h: At top level:
> ../../include/portability.h:151:1: error: static declaration of 
> 'g_hash_table_iter_remove' follows non-static declaration In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,
>                  from ../../include/portability.h:79,
>                  from ../../include/crm_internal.h:26,
>                  from ipc.c:19:
> /opt/local/include/glib/glib-2.0/glib/ghash.h:109:13: note: previous 
> declaration of 'g_hash_table_iter_remove' was here In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h: In function 'g_hash_table_iter_remove':
> ../../include/portability.h:153:29: error: 'GHashTableIter' has no member named 'hash'
> ../../include/portability.h:153:41: error: 'GHashTableIter' has no member named 'key'
> ../../include/portability.h:154:9: error: 'GHashTableIter' has no member named 'nth'
> ../../include/portability.h: At top level:
> ../../include/portability.h:159:1: error: static declaration of 
> 'g_strcmp0' follows non-static declaration In file included from /opt/local/include/glib/glib-2.0/glib.h:84:0,
>                  from ../../include/portability.h:79,
>                  from ../../include/crm_internal.h:26,
>                  from ipc.c:19:
> /opt/local/include/glib/glib-2.0/glib/gtestutils.h:79:9: note: 
> previous declaration of 'g_strcmp0' was here In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h: In function 'g_strcmp0':
> ../../include/portability.h:165:5: error: implicit declaration of 
> function 'strcmp' [-Werror=implicit-function-declaration]
> In file included from ../../include/crm_internal.h:26:0,
>                  from ipc.c:19:
> ../../include/portability.h: At top level:
> ../../include/portability.h:174:1: error: static declaration of 
> 'g_list_free_full' follows non-static declaration In file included from /opt/local/include/glib/glib-2.0/glib/ghash.h:35:0,
>                  from /opt/local/include/glib/glib-2.0/glib.h:52,
>                  from ../../include/portability.h:79,
>                  from ../../include/crm_internal.h:26,
>                  from ipc.c:19:
> /opt/local/include/glib/glib-2.0/glib/glist.h:54:10: note: previous 
> declaration of 'g_list_free_full' was here
> ipc.c: In function 'crm_ipcs_flush_events':
> ipc.c:450:16: error: assignment from incompatible pointer type 
> [-Werror]
> ipc.c: In function 'crm_ipc_prepare':
> ipc.c:506:21: error: assignment from incompatible pointer type 
> [-Werror]
> ipc.c: In function 'crm_ipcs_sendv':
> ipc.c:567:46: error: initialization from incompatible pointer type 
> [-Werror]
> ipc.c: In function 'crm_ipc_send':
> ipc.c:1028:12: error: assignment from incompatible pointer type 
> [-Werror]
> cc1: all warnings being treated as errors
> gmake[2]: *** [ipc.lo] Error 1
> gmake[2]: Leaving directory `/root/pacemaker/lib/common'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/root/pacemaker/lib'
> make: *** [core] Error 1
>  
>  
> _______________________________________________
> 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://bugs.clusterlabs.org


_______________________________________________
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://bugs.clusterlabs.org



More information about the Pacemaker mailing list