Emerging heartbeat fails. Machine is a AMD Dual-MP. Reproducible: Always Steps to Reproduce: 1.emerge heartbeat 2. 3. Actual Results: ----snip----- pils.c:35:25: glib.h: No such file or directory In file included from ../../include/pils/interface.h:25, from pils.c:43: ../../include/pils/plugin.h:29:25: glib.h: No such file or directory In file included from ../../include/pils/interface.h:25, from pils.c:43: ../../include/pils/plugin.h:664: error: syntax error before "GHashTable" ../../include/pils/plugin.h:664: warning: no semicolon at end of struct or union ../../include/pils/plugin.h:668: error: syntax error before '}' token ../../include/pils/plugin.h:680: error: syntax error before "GHashTable" ../../include/pils/plugin.h:680: warning: no semicolon at end of struct or union ../../include/pils/plugin.h:683: error: syntax error before '}' token In file included from pils.c:43: ../../include/pils/interface.h:84: error: syntax error before "GHashTable" ../../include/pils/interface.h:84: warning: no semicolon at end of struct or union ../../include/pils/interface.h:94: error: syntax error before '}' token ../../include/pils/interface.h:104: error: syntax error before "GHashTable" ../../include/pils/interface.h:104: warning: no semicolon at end of struct or union ../../include/pils/interface.h:112: error: syntax error before '}' token ../../include/pils/interface.h:138: error: syntax error before "gboolean" ../../include/pils/interface.h:139: error: `ForEachClientDel' declared as function returning a function ../../include/pils/interface.h:139: warning: function declaration isn't a prototype ../../include/pils/interface.h:139: error: syntax error before "void" ../../include/pils/interface.h:139: warning: no semicolon at end of struct or union pils.c:87: error: syntax error before "RmAPILPluginType" pils.c:88: error: syntax error before "pitname" pils.c:91: warning: type defaults to `int' in declaration of `RmAPILPluginType' pils.c:91: warning: function declaration isn't a prototype pils.c:91: warning: data definition has no type or storage class pils.c:104: error: syntax error before "RmAPILPlugin" pils.c:105: error: syntax error before "piname" pils.c:108: warning: type defaults to `int' in declaration of `RmAPILPlugin' pils.c:108: warning: function declaration isn't a prototype pils.c:108: warning: data definition has no type or storage class pils.c:144: error: syntax error before "RmAPILInterfaceType" pils.c:145: error: syntax error before "iftypename" pils.c:148: warning: type defaults to `int' in declaration of `RmAPILInterfaceType' pils.c:148: warning: function declaration isn't a prototype pils.c:148: warning: data definition has no type or storage class pils.c:163: error: syntax error before "RmAPILInterface" pils.c:164: error: syntax error before "ifname" pils.c:167: warning: type defaults to `int' in declaration of `RmAPILInterface' pils.c:167: warning: function declaration isn't a prototype pils.c:167: warning: data definition has no type or storage class pils.c:241: error: `g_malloc' undeclared here (not in a function) pils.c:241: error: initializer element is not constant pils.c:241: error: (near initialization for `PILPluginImportSet.alloc') pils.c:242: error: `g_free' undeclared here (not in a function) pils.c:242: error: initializer element is not constant pils.c:242: error: (near initialization for `PILPluginImportSet.mfree') pils.c:243: error: `g_strdup' undeclared here (not in a function) pils.c:243: error: initializer element is not constant pils.c:243: error: (near initialization for `PILPluginImportSet.mstrdup') pils.c:277: error: syntax error before "gboolean" pils.c:278: error: `IfForEachClientRemove' declared as function returning a function pils.c:278: warning: function declaration isn't a prototype pils.c:278: error: syntax error before "void" pils.c:280: error: variable `IFManagerImports' has initializer but incomplete type pils.c:282: warning: excess elements in struct initializer pils.c:282: warning: (near initialization for `IFManagerImports') pils.c:283: warning: excess elements in struct initializer pils.c:283: warning: (near initialization for `IFManagerImports') pils.c:284: warning: excess elements in struct initializer pils.c:284: warning: (near initialization for `IFManagerImports') pils.c:285: warning: excess elements in struct initializer pils.c:285: warning: (near initialization for `IFManagerImports') pils.c:286: error: syntax error before "key" pils.c:286: warning: function declaration isn't a prototype pils.c:287: error: syntax error before "key" pils.c:287: warning: function declaration isn't a prototype pils.c:288: error: syntax error before "key" pils.c:288: warning: function declaration isn't a prototype pils.c:289: error: syntax error before "key" pils.c:289: warning: function declaration isn't a prototype pils.c:290: error: syntax error before "key" pils.c:290: warning: function declaration isn't a prototype pils.c:291: error: syntax error before "key" pils.c:291: warning: function declaration isn't a prototype pils.c: In function `NewPILPlugin': pils.c:305: warning: implicit declaration of function `g_new' pils.c:305: error: syntax error before "PILPlugin" pils.c:313: warning: implicit declaration of function `g_strdup' pils.c:313: warning: assignment makes pointer from integer without a cast pils.c: In function `DelPILPlugin': pils.c:332: error: dereferencing pointer to incomplete type pils.c:337: error: dereferencing pointer to incomplete type pils.c:339: warning: implicit declaration of function `g_free' pils.c: At top level: pils.c:346: error: variable `dummymlpitype' has initializer but incomplete type pils.c:348: warning: excess elements in struct initializer pils.c:348: warning: (near initialization for `dummymlpitype') pils.c:349: warning: excess elements in struct initializer pils.c:349: warning: (near initialization for `dummymlpitype') pils.c:350: warning: excess elements in struct initializer pils.c:350: warning: (near initialization for `dummymlpitype') pils.c:351: warning: excess elements in struct initializer pils.c:351: warning: (near initialization for `dummymlpitype') pils.c:352: warning: excess elements in struct initializer pils.c:352: warning: (near initialization for `dummymlpitype') pils.c: In function `NewPILPluginType': pils.c:359: error: syntax error before "PILPluginType" pils.c:365: error: dereferencing pointer to incomplete type pils.c:367: error: dereferencing pointer to incomplete type pils.c:368: error: dereferencing pointer to incomplete type pils.c:369: error: dereferencing pointer to incomplete type pils.c:369: warning: implicit declaration of function `g_hash_table_new' pils.c:369: error: `g_str_hash' undeclared (first use in this function) pils.c:369: error: (Each undeclared identifier is reported only once pils.c:369: error: for each function it appears in.) pils.c:369: error: `g_str_equal' undeclared (first use in this function) pils.c:370: warning: implicit declaration of function `g_hash_table_insert' pils.c:370: error: dereferencing pointer to incomplete type pils.c:371: error: dereferencing pointer to incomplete type pils.c:372: error: dereferencing pointer to incomplete type pils.c: In function `DelPILPluginType': pils.c:380: error: dereferencing pointer to incomplete type pils.c:384: warning: implicit declaration of function `g_hash_table_foreach_remove' pils.c:384: error: dereferencing pointer to incomplete type pils.c:385: warning: implicit declaration of function `g_hash_table_destroy' pils.c:385: error: dereferencing pointer to incomplete type pils.c:386: error: dereferencing pointer to incomplete type pils.c:386: error: dereferencing pointer to incomplete type pils.c:387: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:399: error: syntax error before "RmAPILPlugin" pils.c:400: error: syntax error before "piname" pils.c:404: warning: return type defaults to `int' pils.c:404: warning: function declaration isn't a prototype pils.c: In function `RmAPILPlugin': pils.c:405: error: `plugin' undeclared (first use in this function) pils.c:408: error: `piname' undeclared (first use in this function) pils.c:410: warning: implicit declaration of function `g_assert' pils.c:413: error: dereferencing pointer to incomplete type pils.c:420: error: `TRUE' undeclared (first use in this function) pils.c: In function `RemoveAPILPlugin': pils.c:427: error: `gpointer' undeclared (first use in this function) pils.c:427: error: syntax error before "key" pils.c:430: error: dereferencing pointer to incomplete type pils.c:433: warning: implicit declaration of function `g_hash_table_lookup_extended' pils.c:433: error: dereferencing pointer to incomplete type pils.c:434: error: `key' undeclared (first use in this function) pils.c:436: warning: implicit declaration of function `g_hash_table_remove' pils.c:436: error: dereferencing pointer to incomplete type pils.c:442: warning: implicit declaration of function `g_assert_not_reached' pils.c:444: warning: implicit declaration of function `g_hash_table_size' pils.c:444: error: dereferencing pointer to incomplete type pils.c: In function `NewPILPluginUniv': pils.c:454: error: syntax error before "PILPluginUniv" pils.c:457: error: `G_SEARCHPATH_SEPARATOR_S' undeclared (first use in this function) pils.c:465: warning: implicit declaration of function `g_path_is_absolute' pils.c:469: error: dereferencing pointer to incomplete type pils.c:470: warning: implicit declaration of function `g_strdup_printf' pils.c:471: warning: assignment makes pointer from integer without a cast pils.c:478: error: dereferencing pointer to incomplete type pils.c:478: warning: implicit declaration of function `g_strsplit' pils.c:481: error: dereferencing pointer to incomplete type pils.c:481: error: `g_str_hash' undeclared (first use in this function) pils.c:481: error: `g_str_equal' undeclared (first use in this function) pils.c:482: error: dereferencing pointer to incomplete type pils.c:483: error: dereferencing pointer to incomplete type pils.c: In function `DelPILPluginUniv': pils.c:499: error: dereferencing pointer to incomplete type pils.c:500: error: dereferencing pointer to incomplete type pils.c:501: error: dereferencing pointer to incomplete type pils.c:503: error: dereferencing pointer to incomplete type pils.c:504: warning: implicit declaration of function `g_strfreev' pils.c:504: error: dereferencing pointer to incomplete type pils.c:505: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:518: error: syntax error before "RmAPILPluginType" pils.c:519: error: syntax error before "pitname" pils.c:523: warning: return type defaults to `int' pils.c:523: warning: function declaration isn't a prototype pils.c: In function `RmAPILPluginType': pils.c:524: error: `pitype' undeclared (first use in this function) pils.c:526: error: dereferencing pointer to incomplete type pils.c:527: error: `pitname' undeclared (first use in this function) pils.c:530: error: dereferencing pointer to incomplete type pils.c:539: error: `TRUE' undeclared (first use in this function) pils.c: In function `RemoveAPILPluginType': pils.c:544: error: dereferencing pointer to incomplete type pils.c:545: error: `gpointer' undeclared (first use in this function) pils.c:545: error: syntax error before "key" pils.c:546: error: dereferencing pointer to incomplete type pils.c:547: error: dereferencing pointer to incomplete type pils.c:547: error: `key' undeclared (first use in this function) pils.c:549: error: dereferencing pointer to incomplete type pils.c: In function `InterfaceManager_plugin_init': pils.c:566: error: dereferencing pointer to incomplete type pils.c:575: error: dereferencing pointer to incomplete type pils.c:578: error: dereferencing pointer to incomplete type pils.c:583: error: dereferencing pointer to incomplete type pils.c:588: error: dereferencing pointer to incomplete type pils.c:617: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:657: error: syntax error before "key" pils.c:658: warning: function declaration isn't a prototype pils.c: In function `PILSetDebugLeveltoPlugin': pils.c:659: error: `plugin' undeclared (first use in this function) pils.c:660: error: `Helper' undeclared (first use in this function) pils.c: At top level: pils.c:666: error: syntax error before "gpointer" pils.c:667: warning: function declaration isn't a prototype pils.c: In function `PILSetDebugLevelbyType': pils.c:668: error: `Helper' undeclared (first use in this function) pils.c:671: error: `plugintype' undeclared (first use in this function) pils.c:674: warning: implicit declaration of function `g_hash_table_foreach' pils.c:674: error: dereferencing pointer to incomplete type pils.c:677: warning: implicit declaration of function `g_hash_table_lookup' pils.c:677: error: dereferencing pointer to incomplete type pils.c:678: warning: initialization makes pointer from integer without a cast pils.c: In function `PILSetDebugLevel': pils.c:695: error: dereferencing pointer to incomplete type pils.c:701: error: `GHFunc' undeclared (first use in this function) pils.c:701: error: syntax error before "PILSetDebugLevelbyType" pils.c:704: error: dereferencing pointer to incomplete type pils.c:705: warning: initialization makes pointer from integer without a cast pils.c: In function `PILGetDebugLevel': pils.c:720: error: dereferencing pointer to incomplete type pils.c:720: warning: assignment makes pointer from integer without a cast pils.c:721: error: dereferencing pointer to incomplete type pils.c:721: warning: assignment makes pointer from integer without a cast pils.c: In function `NewPILInterface': pils.c:763: error: dereferencing pointer to incomplete type pils.c:764: warning: assignment makes pointer from integer without a cast pils.c:768: error: syntax error before "PILInterface" pils.c:779: warning: assignment makes pointer from integer without a cast pils.c:780: error: dereferencing pointer to incomplete type pils.c:782: error: dereferencing pointer to incomplete type pils.c:790: error: dereferencing pointer to incomplete type pils.c: In function `NewPILInterfaceType': pils.c:816: error: syntax error before "PILInterfaceType" pils.c:820: error: dereferencing pointer to incomplete type pils.c:821: error: dereferencing pointer to incomplete type pils.c:822: error: dereferencing pointer to incomplete type pils.c:822: error: `g_str_hash' undeclared (first use in this function) pils.c:822: error: `g_str_equal' undeclared (first use in this function) pils.c:823: error: dereferencing pointer to incomplete type pils.c:824: error: dereferencing pointer to incomplete type pils.c:825: error: dereferencing pointer to incomplete type pils.c:828: error: dereferencing pointer to incomplete type pils.c:828: warning: assignment makes pointer from integer without a cast pils.c:830: error: dereferencing pointer to incomplete type pils.c:831: warning: assignment makes pointer from integer without a cast pils.c:832: error: dereferencing pointer to incomplete type pils.c:841: error: dereferencing pointer to incomplete type pils.c: In function `DelPILInterfaceType': pils.c:847: error: dereferencing pointer to incomplete type pils.c:850: error: dereferencing pointer to incomplete type pils.c:864: error: dereferencing pointer to incomplete type pils.c:868: error: dereferencing pointer to incomplete type pils.c:869: error: `gpointer' undeclared (first use in this function) pils.c:869: error: syntax error before "key" pils.c:873: error: dereferencing pointer to incomplete type pils.c:873: error: dereferencing pointer to incomplete type pils.c:875: error: dereferencing pointer to incomplete type pils.c:876: error: `key' undeclared (first use in this function) pils.c:876: error: `iftype' undeclared (first use in this function) pils.c:881: error: dereferencing pointer to incomplete type pils.c:881: error: dereferencing pointer to incomplete type pils.c:882: error: dereferencing pointer to incomplete type pils.c:883: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:896: error: syntax error before "RmAPILInterface" pils.c:897: error: syntax error before "ifname" pils.c:901: warning: return type defaults to `int' pils.c:901: warning: function declaration isn't a prototype pils.c: In function `RmAPILInterface': pils.c:902: error: `intf' undeclared (first use in this function) pils.c:920: error: `FALSE' undeclared (first use in this function) pils.c:922: error: `ifname' undeclared (first use in this function) pils.c:935: error: `TRUE' undeclared (first use in this function) pils.c: In function `RemoveAPILInterface': pils.c:941: error: `gpointer' undeclared (first use in this function) pils.c:941: error: syntax error before "key" pils.c:947: error: dereferencing pointer to incomplete type pils.c:948: error: `key' undeclared (first use in this function) pils.c:950: error: dereferencing pointer to incomplete type pils.c:956: error: dereferencing pointer to incomplete type pils.c:960: error: dereferencing pointer to incomplete type pils.c: In function `ifmgr_register_interface': pils.c:974: error: dereferencing pointer to incomplete type pils.c:995: error: dereferencing pointer to incomplete type pils.c:995: warning: comparison between pointer and integer pils.c: At top level: pils.c:1004: error: syntax error before "RemoveAllClients" pils.c:1005: warning: return type defaults to `int' pils.c:1005: warning: no previous prototype for `RemoveAllClients' pils.c: In function `RemoveAllClients': pils.c:1011: error: `FALSE' undeclared (first use in this function) pils.c:1014: error: `TRUE' undeclared (first use in this function) pils.c: In function `FindIF': pils.c:1100: error: dereferencing pointer to incomplete type pils.c:1101: error: dereferencing pointer to incomplete type pils.c:1101: warning: assignment makes pointer from integer without a cast pils.c:1104: error: dereferencing pointer to incomplete type pils.c:1104: warning: return makes pointer from integer without a cast pils.c: At top level: pils.c:1144: error: syntax error before "gboolean" pils.c:1144: warning: no semicolon at end of struct or union pils.c:1146: error: syntax error before '}' token pils.c:1148: error: syntax error before "IfForEachClientHelper" pils.c:1148: error: syntax error before "key" pils.c:1149: warning: type defaults to `int' in declaration of `IfForEachClientHelper' pils.c:1149: warning: function declaration isn't a prototype pils.c:1149: warning: data definition has no type or storage class pils.c:1152: error: syntax error before "IfForEachClientHelper" pils.c:1152: error: syntax error before "unused" pils.c:1153: warning: return type defaults to `int' pils.c:1153: warning: function declaration isn't a prototype pils.c: In function `IfForEachClientHelper': pils.c:1154: error: `v' undeclared (first use in this function) pils.c:1156: error: `iftype' undeclared (first use in this function) pils.c:1162: error: dereferencing pointer to incomplete type pils.c:1162: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:1169: error: syntax error before "gboolean" pils.c:1170: error: `IfForEachClientRemove' declared as function returning a function pils.c:1170: warning: function declaration isn't a prototype pils.c:1170: error: syntax error before "void" pils.c:1175: error: `ifname' used prior to declaration pils.c:1178: error: variable `h' has initializer but incomplete type pils.c:1178: error: `f' undeclared here (not in a function) pils.c:1178: warning: excess elements in struct initializer pils.c:1178: warning: (near initialization for `h') pils.c:1178: warning: excess elements in struct initializer pils.c:1178: warning: (near initialization for `h') pils.c:1181: error: syntax error before "if" pils.c:1205: error: syntax error before '->' token pils.c:1206: warning: type defaults to `int' in declaration of `g_hash_table_foreach_remove' pils.c:1206: warning: function declaration isn't a prototype pils.c:1206: warning: data definition has no type or storage class pils.c: In function `PILLog': pils.c:1233: error: `GLogLevelFlags' undeclared (first use in this function) pils.c:1233: error: syntax error before "flags" pils.c:1236: error: `flags' undeclared (first use in this function) pils.c:1236: error: `G_LOG_LEVEL_ERROR' undeclared (first use in this function) pils.c:1238: error: `G_LOG_LEVEL_CRITICAL' undeclared (first use in this function) pils.c:1242: error: `G_LOG_LEVEL_WARNING' undeclared (first use in this function) pils.c:1245: error: `G_LOG_LEVEL_INFO' undeclared (first use in this function) pils.c:1247: error: `G_LOG_LEVEL_DEBUG' undeclared (first use in this function) pils.c:1251: warning: implicit declaration of function `g_logv' pils.c:1251: error: `G_LOG_DOMAIN' undeclared (first use in this function) pils.c: In function `PILPluginPath': pils.c:1289: error: dereferencing pointer to incomplete type pils.c:1299: error: `G_DIR_SEPARATOR_S' undeclared (first use in this function) pils.c:1302: warning: assignment makes pointer from integer without a cast pils.c: In function `PILLoadPlugin': pils.c:1400: error: dereferencing pointer to incomplete type pils.c:1400: warning: assignment makes pointer from integer without a cast pils.c:1403: error: dereferencing pointer to incomplete type pils.c:1403: warning: assignment makes pointer from integer without a cast pils.c:1447: warning: assignment makes pointer from integer without a cast pils.c:1471: error: dereferencing pointer to incomplete type pils.c:1483: error: dereferencing pointer to incomplete type pils.c: In function `PILRegisterInterface': pils.c:1524: error: dereferencing pointer to incomplete type pils.c:1525: error: dereferencing pointer to incomplete type pils.c:1526: error: dereferencing pointer to incomplete type pils.c:1535: error: dereferencing pointer to incomplete type pils.c:1535: warning: assignment makes pointer from integer without a cast pils.c:1542: error: dereferencing pointer to incomplete type pils.c:1543: warning: assignment makes pointer from integer without a cast pils.c:1547: error: dereferencing pointer to incomplete type pils.c:1547: warning: assignment makes pointer from integer without a cast pils.c:1549: warning: implicit declaration of function `g_warning' pils.c:1557: error: dereferencing pointer to incomplete type pils.c:1557: warning: assignment makes pointer from integer without a cast pils.c:1562: error: dereferencing pointer to incomplete type pils.c:1563: warning: assignment makes pointer from integer without a cast pils.c: In function `PILunregister_interface': pils.c:1623: error: dereferencing pointer to incomplete type pils.c:1631: error: dereferencing pointer to incomplete type pils.c:1637: error: dereferencing pointer to incomplete type pils.c:1644: error: dereferencing pointer to incomplete type pils.c:1649: error: dereferencing pointer to incomplete type pils.c: In function `NewPILInterfaceUniv': pils.c:1675: error: syntax error before "PILInterfaceUniv" pils.c:1687: error: dereferencing pointer to incomplete type pils.c:1689: error: dereferencing pointer to incomplete type pils.c:1690: error: dereferencing pointer to incomplete type pils.c:1692: error: dereferencing pointer to incomplete type pils.c:1692: error: `g_str_hash' undeclared (first use in this function) pils.c:1692: error: `g_str_equal' undeclared (first use in this function) pils.c: In function `DelPILInterfaceUniv': pils.c:1702: error: dereferencing pointer to incomplete type pils.c:1710: error: dereferencing pointer to incomplete type pils.c:1714: error: dereferencing pointer to incomplete type pils.c:1714: warning: assignment makes pointer from integer without a cast pils.c:1721: error: dereferencing pointer to incomplete type pils.c:1722: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:1735: error: syntax error before "RmAPILInterfaceType" pils.c:1736: error: syntax error before "typename" pils.c:1740: warning: return type defaults to `int' pils.c:1740: warning: function declaration isn't a prototype pils.c: In function `RmAPILInterfaceType': pils.c:1741: error: `iftype' undeclared (first use in this function) pils.c:1742: error: dereferencing pointer to incomplete type pils.c:1748: error: dereferencing pointer to incomplete type pils.c:1752: error: `typename' undeclared (first use in this function) pils.c:1755: error: `notused' undeclared (first use in this function) pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1755: error: dereferencing pointer to incomplete type pils.c:1760: error: `FALSE' undeclared (first use in this function) pils.c:1766: error: `TRUE' undeclared (first use in this function) pils.c: In function `RemoveAPILInterfaceType': pils.c:1772: error: dereferencing pointer to incomplete type pils.c:1773: error: `gpointer' undeclared (first use in this function) pils.c:1773: error: syntax error before "key" pils.c:1777: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1780: error: dereferencing pointer to incomplete type pils.c:1782: error: dereferencing pointer to incomplete type pils.c:1785: error: dereferencing pointer to incomplete type pils.c:1786: error: dereferencing pointer to incomplete type pils.c:1786: error: `key' undeclared (first use in this function) pils.c:1788: error: dereferencing pointer to incomplete type pils.c: In function `PILPluginTypeListPlugins': pils.c:1871: error: dereferencing pointer to incomplete type pils.c:1879: error: dereferencing pointer to incomplete type pils.c:1881: error: `GString' undeclared (first use in this function) pils.c:1881: error: `path' undeclared (first use in this function) pils.c:1886: warning: implicit declaration of function `g_string_new' pils.c:1889: warning: implicit declaration of function `g_string_append_c' pils.c:1889: error: `G_DIR_SEPARATOR' undeclared (first use in this function) pils.c:1890: warning: comparison between pointer and integer pils.c:1890: warning: implicit declaration of function `g_string_append' pils.c:1890: warning: comparison between pointer and integer pils.c:1891: warning: implicit declaration of function `g_string_free' pils.c:1914: warning: implicit declaration of function `g_malloc' pils.c:1914: warning: cast does not match function type pils.c:1916: warning: implicit declaration of function `g_realloc' pils.c:1917: warning: cast does not match function type pils.c:1925: warning: assignment makes pointer from integer without a cast pils.c: In function `PILListPlugins': pils.c:1952: error: dereferencing pointer to incomplete type pils.c:1952: warning: assignment makes pointer from integer without a cast pils.c: At top level: pils.c:1981: error: syntax error before "key" pils.c:1982: warning: function declaration isn't a prototype pils.c: In function `PILValidatePlugin': pils.c:1983: error: `key' undeclared (first use in this function) pils.c:1984: error: `plugin' undeclared (first use in this function) pils.c:1997: error: dereferencing pointer to incomplete type pils.c:1998: error: `pitype' undeclared (first use in this function) pils.c: At top level: pils.c:2002: error: syntax error before "key" pils.c:2003: warning: function declaration isn't a prototype pils.c: In function `PILValidatePluginType': pils.c:2004: error: `key' undeclared (first use in this function) pils.c:2005: error: `pitype' undeclared (first use in this function) pils.c:2008: error: dereferencing pointer to incomplete type pils.c:2009: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2010: error: dereferencing pointer to incomplete type pils.c:2011: error: dereferencing pointer to incomplete type pils.c:2012: error: dereferencing pointer to incomplete type pils.c:2013: error: dereferencing pointer to incomplete type pils.c:2014: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:2017: error: syntax error before "key" pils.c:2018: warning: function declaration isn't a prototype pils.c: In function `PILValidatePluginUniv': pils.c:2021: error: dereferencing pointer to incomplete type pils.c:2022: error: dereferencing pointer to incomplete type pils.c:2023: error: dereferencing pointer to incomplete type pils.c:2024: error: dereferencing pointer to incomplete type pils.c:2025: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:2028: error: syntax error before "key" pils.c:2029: warning: function declaration isn't a prototype pils.c: In function `PILValidateInterface': pils.c:2030: error: `key' undeclared (first use in this function) pils.c:2031: error: `interface' undeclared (first use in this function) pils.c:2034: error: dereferencing pointer to incomplete type pils.c:2035: error: `iftype' undeclared (first use in this function) pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c:2038: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:2044: error: syntax error before "key" pils.c:2045: warning: function declaration isn't a prototype pils.c: In function `PILValidateInterfaceType': pils.c:2046: error: `key' undeclared (first use in this function) pils.c:2047: error: `iftype' undeclared (first use in this function) pils.c:2048: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2049: error: dereferencing pointer to incomplete type pils.c:2050: error: dereferencing pointer to incomplete type pils.c:2051: error: dereferencing pointer to incomplete type pils.c:2052: error: dereferencing pointer to incomplete type pils.c:2053: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2054: error: dereferencing pointer to incomplete type pils.c:2056: error: dereferencing pointer to incomplete type pils.c: At top level: pils.c:2059: error: syntax error before "key" pils.c:2060: warning: function declaration isn't a prototype pils.c: In function `PILValidateInterfaceUniv': pils.c:2063: error: dereferencing pointer to incomplete type pils.c:2064: error: dereferencing pointer to incomplete type pils.c:2065: error: dereferencing pointer to incomplete type pils.c:2066: error: dereferencing pointer to incomplete type pils.c: In function `PILCallLog': pils.c:2099: warning: implicit declaration of function `g_strdup_vprintf' pils.c:2099: warning: assignment makes pointer from integer without a cast pils.c: At top level: pils.c:280: error: storage size of `IFManagerImports' isn't known pils.c:346: error: storage size of `dummymlpitype' isn't known pils.c:1178: error: storage size of `h' isn't known pils.c:1170: warning: `IfForEachClientRemove' declared `static' but never defined gmake[2]: *** [pils.lo] Error 1 gmake[2]: Leaving directory `/var/tmp/portage/heartbeat-1.2.3/work/heartbeat-1.2.3/lib/pils' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/var/tmp/portage/heartbeat-1.2.3/work/heartbeat-1.2.3/lib' make: *** [all-recursive] Error 1 !!! ERROR: sys-cluster/heartbeat-1.2.3 failed. !!! Function src_compile, Line 32, Exitcode 2 !!! compile problem !!! If you need support, post the topmost build error, NOT this status message. Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686) ================================================================= System uname: 2.6.9-gentoo-r4 i686 AMD Athlon(tm) MP 2800+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="apm arts avi berkdb bitmap-fonts crypt cups encode f77 foomaticdb fortran gdbm gif gpm gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
Have you removed some glib files. Try to re-emerge glib and see if the problem persist. (the package depends om glib as it should, so only problem I can see are lost files)
This is a fresh install of gentoo so no files have been removed as far as I know. I re-emerged glib and still recieve the error. I have an another server that is identical to the one having the problem. Emerging heartbeat results in the same error as the first server. Any other suggestions. Does it make any diffrence that this is a SMP box?
Which versions of glib do you have? seems like heartbeat uses glib-1.2 series... *yucky old stuff* gcc -DHAVE_CONFIG_H -I. -I. -I../../linux-ha -I../../include -I../../include -I../../include -I../../linux-ha -I../../linux-ha -I../../libltdl -I../../libltdl -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/libxml2 -O2 -march=athlon -msse -m3dnow -mmmx -fomit-frame-pointer -mfpmath=sse -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Werror -ggdb3 -O2 -march=athlon -msse -m3dnow -mmmx -fomit-frame-pointer -mfpmath=sse -fno-strict-aliasing -Wall -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wpointer-arith -Wwrite-strings -Wcast-qual -Wcast-align -Wbad-function-cast -Winline -Wmissing-format-attribute -Wformat=2 -Wformat-security -Wformat-nonliteral -Wno-long-long -Werror -ggdb3 -MT pils.lo -MD -MP -MF .deps/pils.Tpo -c pils.c -fPIC -DPIC -o .libs/pils.o
It should be including glib-1.2/glib.h or glib-2.0/glib.h depending on what it needs, not just "glib.h."
heartbeat uses glib1.x emerge glib-1.2.10-r5.ebuild before it and it should compile
ebuild should depend on glib 1.x series, or configure patched to check for glib-2.0 in the pkg-config check, where it looks for glib (before testing glib-config). I did a quick test, and there are tons of automake/autoconf files that needs updating, but it should be done.
Created attachment 46985 [details, diff] glib-2.0 AIS event LRM CRM SWIG/perl - removed from configure, since they require additional source-code in the tree, and thereby triggers automake to rerun when trying to make (personally I'm starting to hate automake by now) configure requires glib-2.0 a bunch of GSource changes, if they work I don't know. This patch is ment as an start
fixed glib dep in cvs