<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"MS Mincho";
panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:99.25pt 85.05pt 85.05pt 85.05pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal">I’m trying to compile pacemaker on SmartOS and having error during make.<o:p></o:p></p>
<p class="MsoNormal">Does anyone has already successfully compiled on SmartOS? Or
<o:p></o:p></p>
<p class="MsoNormal">Can Someone help to solve the problem I’m having now.<o:p></o:p></p>
<p class="MsoNormal">Thank you,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Glib version : glib2-2.34.3<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">GCC version:<o:p></o:p></p>
<p class="MsoNormal">[root@web01 ~/pacemaker]# gcc -v<o:p></o:p></p>
<p class="MsoNormal">Using built-in specs.<o:p></o:p></p>
<p class="MsoNormal">COLLECT_GCC=/opt/local/gcc47/bin/gcc<o:p></o:p></p>
<p class="MsoNormal">COLLECT_LTO_WRAPPER=/opt/local/gcc47/libexec/gcc/x86_64-sun-solaris2.11/4.7.2/lto-wrapper<o:p></o:p></p>
<p class="MsoNormal">Target: x86_64-sun-solaris2.11<o:p></o:p></p>
<p class="MsoNormal">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<o:p></o:p></p>
<p class="MsoNormal">Thread model: posix<o:p></o:p></p>
<p class="MsoNormal">gcc version 4.7.2 (GCC)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Here is the error log of make<o:p></o:p></p>
<p class="MsoNormal">+++++++++++++++++++++++++++++++ <o:p></o:p></p>
<p class="MsoNormal">gmake[2]: Entering directory `/root/pacemaker/lib/common'<o:p></o:p></p>
<p class="MsoNormal"> CC ipc.lo<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:81:16: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:86:1: error: expected identifier or '(' before '}' token<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:86:1: error: useless type name in empty declaration [-Werror]<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:98:1: error: static declaration of 'g_hash_table_get_values' follows non-static declaration<o:p></o:p></p>
<p class="MsoNormal">In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/portability.h:79,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/crm_internal.h:26,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">/opt/local/include/glib/glib-2.0/glib/ghash.h:101:13: note: previous declaration of 'g_hash_table_get_values' was here<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: In function 'g_hash_table_nth_data':<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:111:13: error: 'GHashTableIter' has no member named 'lpc'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:111:28: error: 'GHashTableIter' has no member named 'nth'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:112:13: error: 'GHashTableIter' has no member named 'key'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:113:13: error: 'GHashTableIter' has no member named 'value'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: At top level:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:121:1: error: static declaration of 'g_hash_table_iter_init' follows non-static declaration<o:p></o:p></p>
<p class="MsoNormal">In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/portability.h:79,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/crm_internal.h:26,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">/opt/local/include/glib/glib-2.0/glib/ghash.h:103:13: note: previous declaration of 'g_hash_table_iter_init' was here<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: In function 'g_hash_table_iter_init':<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:123:9: error: 'GHashTableIter' has no member named 'hash'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:124:9: error: 'GHashTableIter' has no member named 'nth'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:125:9: error: 'GHashTableIter' has no member named 'lpc'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:126:9: error: 'GHashTableIter' has no member named 'key'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:127:9: error: 'GHashTableIter' has no member named 'value'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: At top level:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:131:1: error: static declaration of 'g_hash_table_iter_next' follows non-static declaration<o:p></o:p></p>
<p class="MsoNormal">In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/portability.h:79,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/crm_internal.h:26,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">/opt/local/include/glib/glib-2.0/glib/ghash.h:105:13: note: previous declaration of 'g_hash_table_iter_next' was here<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: In function 'g_hash_table_iter_next':<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:135:9: error: 'GHashTableIter' has no member named 'lpc'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:136:9: error: 'GHashTableIter' has no member named 'key'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:137:9: error: 'GHashTableIter' has no member named 'value'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:138:13: error: 'GHashTableIter' has no member named 'nth'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:138:43: error: 'GHashTableIter' has no member named 'hash'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:139:42: error: 'GHashTableIter' has no member named 'hash'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:140:13: error: 'GHashTableIter' has no member named 'nth'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:143:20: error: 'GHashTableIter' has no member named 'key'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:145:22: error: 'GHashTableIter' has no member named 'value'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: At top level:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:151:1: error: static declaration of 'g_hash_table_iter_remove' follows non-static declaration<o:p></o:p></p>
<p class="MsoNormal">In file included from /opt/local/include/glib/glib-2.0/glib.h:52:0,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/portability.h:79,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/crm_internal.h:26,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">/opt/local/include/glib/glib-2.0/glib/ghash.h:109:13: note: previous declaration of 'g_hash_table_iter_remove' was here<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: In function 'g_hash_table_iter_remove':<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:153:29: error: 'GHashTableIter' has no member named 'hash'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:153:41: error: 'GHashTableIter' has no member named 'key'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:154:9: error: 'GHashTableIter' has no member named 'nth'<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: At top level:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:159:1: error: static declaration of 'g_strcmp0' follows non-static declaration<o:p></o:p></p>
<p class="MsoNormal">In file included from /opt/local/include/glib/glib-2.0/glib.h:84:0,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/portability.h:79,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/crm_internal.h:26,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">/opt/local/include/glib/glib-2.0/glib/gtestutils.h:79:9: note: previous declaration of 'g_strcmp0' was here<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: In function 'g_strcmp0':<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:165:5: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]<o:p></o:p></p>
<p class="MsoNormal">In file included from ../../include/crm_internal.h:26:0,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h: At top level:<o:p></o:p></p>
<p class="MsoNormal">../../include/portability.h:174:1: error: static declaration of 'g_list_free_full' follows non-static declaration<o:p></o:p></p>
<p class="MsoNormal">In file included from /opt/local/include/glib/glib-2.0/glib/ghash.h:35:0,<o:p></o:p></p>
<p class="MsoNormal"> from /opt/local/include/glib/glib-2.0/glib.h:52,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/portability.h:79,<o:p></o:p></p>
<p class="MsoNormal"> from ../../include/crm_internal.h:26,<o:p></o:p></p>
<p class="MsoNormal"> from ipc.c:19:<o:p></o:p></p>
<p class="MsoNormal">/opt/local/include/glib/glib-2.0/glib/glist.h:54:10: note: previous declaration of 'g_list_free_full' was here<o:p></o:p></p>
<p class="MsoNormal">ipc.c: In function 'crm_ipcs_flush_events':<o:p></o:p></p>
<p class="MsoNormal">ipc.c:450:16: error: assignment from incompatible pointer type [-Werror]<o:p></o:p></p>
<p class="MsoNormal">ipc.c: In function 'crm_ipc_prepare':<o:p></o:p></p>
<p class="MsoNormal">ipc.c:506:21: error: assignment from incompatible pointer type [-Werror]<o:p></o:p></p>
<p class="MsoNormal">ipc.c: In function 'crm_ipcs_sendv':<o:p></o:p></p>
<p class="MsoNormal">ipc.c:567:46: error: initialization from incompatible pointer type [-Werror]<o:p></o:p></p>
<p class="MsoNormal">ipc.c: In function 'crm_ipc_send':<o:p></o:p></p>
<p class="MsoNormal">ipc.c:1028:12: error: assignment from incompatible pointer type [-Werror]<o:p></o:p></p>
<p class="MsoNormal">cc1: all warnings being treated as errors<o:p></o:p></p>
<p class="MsoNormal">gmake[2]: *** [ipc.lo] Error 1<o:p></o:p></p>
<p class="MsoNormal">gmake[2]: Leaving directory `/root/pacemaker/lib/common'<o:p></o:p></p>
<p class="MsoNormal">make[1]: *** [all-recursive] Error 1<o:p></o:p></p>
<p class="MsoNormal">make[1]: Leaving directory `/root/pacemaker/lib'<o:p></o:p></p>
<p class="MsoNormal">make: *** [core] Error 1<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>