dkindlund / honeyclient

MITRE HoneyClient Project
http://www.honeyclient.org
GNU General Public License v2.0
8 stars 4 forks source link

Fail to install Bundle::HoneyClient::Util due to XML:Parser make problem #176

Closed dkindlund closed 14 years ago

dkindlund commented 14 years ago

I have problem on installing Bundle::HoneyClient::Util, the dialog shows that all required modules is ready except XML:Parser, the error message as below:

... LWP is up to date (5.808). Running install for module 'XML::Parser' Running make for M/MS/MSERGEANT/XML-Parser-2.36.tar.gz Has already been unwrapped into directory /home/hclhost/honeyclient/cpan/build/XML-Parser-2.36-8s5W4L Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible XML::XPath is up to date (1.13). ...

I am using CentOS 5 and perl version 5.8.8 built for i386-linux-thread-multi and download the source file to install. How can I solve this problem?

dkindlund commented 14 years ago

Author: kindlund It looks like the installation of XML::Parser appears to have failed.

Try manually installing XML::Parser, by typing the following at the CPAN prompt:

{{{ cpan> install XML::Parser }}}

If that fails, please include the corresponding error message, in order for us to troubleshoot further.

Xeno: Any thoughts on this?

Thanks,

-- Darien

dkindlund commented 14 years ago

Author: xkovah I would need the actual error in order to debug it, and the problem is that that message looks to be from the second time you tried to install (since it "Has already been unwrapped"), not the first time it failed. This causes CPAN to elide the error message which was printed out the first time, and just print the less helpful "Could not make: Unknown error".

Please go to /home/hclhost/honeyclient/cpan/build/XML-Parser-2.36-8s5W4L and type "make clean" and "make" and reply via the web interface with the result.

Thanks

Xeno

dkindlund commented 14 years ago

Author: anonymous I try to attach the error output but rejected, so I just paste at the bottom. You see unknown symbols may due to unicode. I have tried to config CPAN to use term_is_latin [0] and term_is_latin [1] but still have this problem.

I also use svn to download the latest version reve 1654 but still fail. Please help us to fix this issue

Error output:


Expat.xs:1683: error: expected ‘;’ before ‘enthndlr’ Expat.xs:1685: error: ‘parser’ undeclared (first use in this function) Expat.xs:1685: warning: ISO C90 forbids mixed declarations and code Expat.xs:1687: error: ‘CallbackVector’ has no member named ‘entdcl_sv’ Expat.xs:1687: error: ‘CallbackVector’ has no member named ‘entdcl_sv’ Expat.xs:1687: error: ‘CallbackVector’ has no member named ‘entdcl_sv’ Expat.xs:1687: error: ‘CallbackVector’ has no member named ‘entdcl_sv’ Expat.xs:1687: error: ‘CallbackVector’ has no member named ‘entdcl_sv’ Expat.xs:1687: error: ‘CallbackVector’ has no member named ‘entdcl_sv’ Expat.xs:1689: error: ‘enthndlr’ undeclared (first use in this function) Expat.xs:1691: warning: implicit declaration of function ‘XML_SetEntityDeclHandler’ Expat.c: In function ‘XS_XMLParserExpat_SetElementDeclHandler’: Expat.c:2004: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2004: error: expected ‘;’ before ‘parser’ Expat.c:2005: warning: ISO C90 forbids mixed declarations and code Expat.xs:1701: error: ‘XML_ElementDeclHandler’ undeclared (first use in this function) Expat.xs:1701: error: expected ‘;’ before ‘eldeclhndlr’ Expat.xs:1703: error: ‘parser’ undeclared (first use in this function) Expat.xs:1703: warning: ISO C90 forbids mixed declarations and code Expat.xs:1705: error: ‘CallbackVector’ has no member named ‘eledcl_sv’ Expat.xs:1705: error: ‘CallbackVector’ has no member named ‘eledcl_sv’ Expat.xs:1705: error: ‘CallbackVector’ has no member named ‘eledcl_sv’ Expat.xs:1705: error: ‘CallbackVector’ has no member named ‘eledcl_sv’ Expat.xs:1705: error: ‘CallbackVector’ has no member named ‘eledcl_sv’ Expat.xs:1705: error: ‘CallbackVector’ has no member named ‘eledcl_sv’ Expat.xs:1707: error: ‘eldeclhndlr’ undeclared (first use in this function) Expat.xs:1709: warning: implicit declaration of function ‘XML_SetElementDeclHandler’ Expat.c: In function ‘XS_XMLParserExpat_SetAttListDeclHandler’: Expat.c:2038: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2038: error: expected ‘;’ before ‘parser’ Expat.c:2039: warning: ISO C90 forbids mixed declarations and code Expat.xs:1719: error: ‘XML_AttlistDeclHandler’ undeclared (first use in this function) Expat.xs:1719: error: expected ‘;’ before ‘attdeclhndlr’ Expat.xs:1721: error: ‘parser’ undeclared (first use in this function) Expat.xs:1721: warning: ISO C90 forbids mixed declarations and code Expat.xs:1723: error: ‘CallbackVector’ has no member named ‘attdcl_sv’ Expat.xs:1723: error: ‘CallbackVector’ has no member named ‘attdcl_sv’ Expat.xs:1723: error: ‘CallbackVector’ has no member named ‘attdcl_sv’ Expat.xs:1723: error: ‘CallbackVector’ has no member named ‘attdcl_sv’ Expat.xs:1723: error: ‘CallbackVector’ has no member named ‘attdcl_sv’ Expat.xs:1723: error: ‘CallbackVector’ has no member named ‘attdcl_sv’ Expat.xs:1725: error: ‘attdeclhndlr’ undeclared (first use in this function) Expat.xs:1727: warning: implicit declaration of function ‘XML_SetAttlistDeclHandler’ Expat.c: In function ‘XS_XMLParserExpat_SetDoctypeHandler’: Expat.c:2072: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2072: error: expected ‘;’ before ‘parser’ Expat.c:2073: warning: ISO C90 forbids mixed declarations and code Expat.xs:1737: error: ‘XML_StartDoctypeDeclHandler’ undeclared (first use in this function) Expat.xs:1737: error: expected ‘;’ before ‘dtsthndlr’ Expat.xs:1739: error: ‘parser’ undeclared (first use in this function) Expat.xs:1739: warning: ISO C90 forbids mixed declarations and code Expat.xs:1742: error: ‘CallbackVector’ has no member named ‘doctyp_sv’ Expat.xs:1742: error: ‘CallbackVector’ has no member named ‘doctyp_sv’ Expat.xs:1742: error: ‘CallbackVector’ has no member named ‘doctyp_sv’ Expat.xs:1742: error: ‘CallbackVector’ has no member named ‘doctyp_sv’ Expat.xs:1742: error: ‘CallbackVector’ has no member named ‘doctyp_sv’ Expat.xs:1742: error: ‘CallbackVector’ has no member named ‘doctyp_sv’ Expat.xs:1744: error: ‘dtsthndlr’ undeclared (first use in this function) Expat.xs:1746: warning: implicit declaration of function ‘XML_SetStartDoctypeDeclHandler’ Expat.xs:1740: warning: unused variable ‘set’ Expat.c: In function ‘XS_XMLParserExpat_SetEndDoctypeHandler’: Expat.c:2107: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2107: error: expected ‘;’ before ‘parser’ Expat.c:2108: warning: ISO C90 forbids mixed declarations and code Expat.xs:1756: error: ‘XML_EndDoctypeDeclHandler’ undeclared (first use in this function) Expat.xs:1756: error: expected ‘;’ before ‘dtendhndlr’ Expat.xs:1758: error: ‘parser’ undeclared (first use in this function) Expat.xs:1758: warning: ISO C90 forbids mixed declarations and code Expat.xs:1760: error: ‘CallbackVector’ has no member named ‘doctypfin_sv’ Expat.xs:1760: error: ‘CallbackVector’ has no member named ‘doctypfin_sv’ Expat.xs:1760: error: ‘CallbackVector’ has no member named ‘doctypfin_sv’ Expat.xs:1760: error: ‘CallbackVector’ has no member named ‘doctypfin_sv’ Expat.xs:1760: error: ‘CallbackVector’ has no member named ‘doctypfin_sv’ Expat.xs:1760: error: ‘CallbackVector’ has no member named ‘doctypfin_sv’ Expat.xs:1762: error: ‘dtendhndlr’ undeclared (first use in this function) Expat.xs:1764: warning: implicit declaration of function ‘XML_SetEndDoctypeDeclHandler’ Expat.c: In function ‘XS_XMLParserExpat_SetXMLDeclHandler’: Expat.c:2141: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2141: error: expected ‘;’ before ‘parser’ Expat.c:2142: warning: ISO C90 forbids mixed declarations and code Expat.xs:1775: error: ‘XML_XmlDeclHandler’ undeclared (first use in this function) Expat.xs:1775: error: expected ‘;’ before ‘xmldechndlr’ Expat.xs:1777: error: ‘parser’ undeclared (first use in this function) Expat.xs:1777: warning: ISO C90 forbids mixed declarations and code Expat.xs:1779: error: ‘CallbackVector’ has no member named ‘xmldec_sv’ Expat.xs:1779: error: ‘CallbackVector’ has no member named ‘xmldec_sv’ Expat.xs:1779: error: ‘CallbackVector’ has no member named ‘xmldec_sv’ Expat.xs:1779: error: ‘CallbackVector’ has no member named ‘xmldec_sv’ Expat.xs:1779: error: ‘CallbackVector’ has no member named ‘xmldec_sv’ Expat.xs:1779: error: ‘CallbackVector’ has no member named ‘xmldec_sv’ Expat.xs:1781: error: ‘xmldechndlr’ undeclared (first use in this function) Expat.xs:1783: warning: implicit declaration of function ‘XML_SetXmlDeclHandler’ Expat.c: In function ‘XS_XMLParserExpat_SetBase’: Expat.c:2175: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2175: error: expected ‘;’ before ‘parser’ Expat.c:2176: warning: ISO C90 forbids mixed declarations and code Expat.xs:1803: warning: implicit declaration of function ‘XML_SetBase’ Expat.xs:1803: error: ‘parser’ undeclared (first use in this function) Expat.c: In function ‘XS_XMLParserExpat_GetBase’: Expat.c:2208: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2208: error: expected ‘;’ before ‘parser’ Expat.c:2209: warning: ISO C90 forbids mixed declarations and code Expat.xs:1812: warning: implicit declaration of function ‘XML_GetBase’ Expat.xs:1812: error: ‘parser’ undeclared (first use in this function) Expat.xs:1812: warning: initialization makes pointer from integer without a cast Expat.c:2209: warning: unused variable ‘RETVAL’ Expat.c: In function ‘XS_XMLParserExpat_PositionContext’: Expat.c:2241: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2241: error: expected ‘;’ before ‘parser’ Expat.c:2242: warning: ISO C90 forbids mixed declarations and code Expat.xs:1829: warning: implicit declaration of function ‘XML_GetInputContext’ Expat.xs:1829: error: ‘parser’ undeclared (first use in this function) Expat.xs:1829: warning: initialization makes pointer from integer without a cast Expat.c: In function ‘XS_XMLParserExpat_DefaultCurrent’: Expat.c:2367: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2367: error: expected ‘;’ before ‘parser’ Expat.xs:1920: error: ‘parser’ undeclared (first use in this function) Expat.xs:1922: warning: implicit declaration of function ‘XML_DefaultCurrent’ Expat.xs:1920: warning: unused variable ‘cbv’ Expat.c: In function ‘XS_XMLParserExpat_RecognizedString’: Expat.c:2392: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2392: error: expected ‘;’ before ‘parser’ Expat.c:2393: warning: ISO C90 forbids mixed declarations and code Expat.xs:1930: error: ‘XML_DefaultHandler’ undeclared (first use in this function) Expat.xs:1930: error: expected ‘;’ before ‘dflthndl’ Expat.xs:1931: error: ‘parser’ undeclared (first use in this function) Expat.xs:1931: warning: ISO C90 forbids mixed declarations and code Expat.xs:1933: error: ‘CallbackVector’ has no member named ‘dflt_sv’ Expat.xs:1934: error: ‘dflthndl’ undeclared (first use in this function) Expat.xs:1937: error: ‘CallbackVector’ has no member named ‘recstring’ Expat.xs:1938: error: ‘CallbackVector’ has no member named ‘recstring’ Expat.xs:1941: error: ‘CallbackVector’ has no member named ‘no_expand’ Expat.xs:1948: error: ‘CallbackVector’ has no member named ‘no_expand’ Expat.xs:1953: error: ‘CallbackVector’ has no member named ‘recstring’ Expat.c: In function ‘XS_XMLParserExpat_GetErrorCode’: Expat.c:2441: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2441: error: expected ‘;’ before ‘parser’ Expat.c:2442: warning: ISO C90 forbids mixed declarations and code Expat.c:2445: warning: implicit declaration of function ‘XML_GetErrorCode’ Expat.c:2445: error: ‘parser’ undeclared (first use in this function) Expat.c: In function ‘XS_XMLParserExpat_GetCurrentLineNumber’: Expat.c:2464: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2464: error: expected ‘;’ before ‘parser’ Expat.c:2465: warning: ISO C90 forbids mixed declarations and code Expat.c:2468: warning: implicit declaration of function ‘XML_GetCurrentLineNumber’ Expat.c:2468: error: ‘parser’ undeclared (first use in this function) Expat.c: In function ‘XS_XMLParserExpat_GetCurrentColumnNumber’: Expat.c:2487: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2487: error: expected ‘;’ before ‘parser’ Expat.c:2488: warning: ISO C90 forbids mixed declarations and code Expat.c:2491: warning: implicit declaration of function ‘XML_GetCurrentColumnNumber’ Expat.c:2491: error: ‘parser’ undeclared (first use in this function) Expat.c: In function ‘XS_XMLParserExpat_GetCurrentByteIndex’: Expat.c:2510: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2510: error: expected ‘;’ before ‘parser’ Expat.c:2511: warning: ISO C90 forbids mixed declarations and code Expat.c:2514: warning: implicit declaration of function ‘XML_GetCurrentByteIndex’ Expat.c:2514: error: ‘parser’ undeclared (first use in this function) Expat.c: In function ‘XS_XMLParserExpat_GetSpecifiedAttributeCount’: Expat.c:2533: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2533: error: expected ‘;’ before ‘parser’ Expat.c:2534: warning: ISO C90 forbids mixed declarations and code Expat.c:2537: warning: implicit declaration of function ‘XML_GetSpecifiedAttributeCount’ Expat.c:2537: error: ‘parser’ undeclared (first use in this function) Expat.xs: In function ‘XS_XMLParserExpat_ErrorString’: Expat.xs:1983: warning: implicit declaration of function ‘XML_ErrorString’ Expat.xs:1983: warning: initialization makes pointer from integer without a cast Expat.c:2558: warning: unused variable ‘targ’ Expat.c:2557: warning: unused variable ‘RETVAL’ Expat.c: In function ‘XS_XMLParserExpat_OriginalString’: Expat.c:2717: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2717: error: expected ‘;’ before ‘parser’ Expat.c:2718: warning: ISO C90 forbids mixed declarations and code Expat.xs:2091: error: ‘parser’ undeclared (first use in this function) Expat.xs:2091: warning: initialization makes pointer from integer without a cast Expat.xs:2093: warning: implicit declaration of function ‘XML_GetCurrentByteCount’ Expat.c: In function ‘XS_XMLParserExpat_SetStartCdataHandler’: Expat.c:2751: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2751: error: expected ‘;’ before ‘parser’ Expat.c:2752: warning: ISO C90 forbids mixed declarations and code Expat.xs:2109: error: ‘parser’ undeclared (first use in this function) Expat.xs:2110: error: ‘XML_StartCdataSectionHandler’ undeclared (first use in this function) Expat.xs:2110: error: expected ‘;’ before ‘scdhndl’ Expat.xs:2113: error: ‘CallbackVector’ has no member named ‘startcd_sv’ Expat.xs:2113: error: ‘CallbackVector’ has no member named ‘startcd_sv’ Expat.xs:2113: error: ‘CallbackVector’ has no member named ‘startcd_sv’ Expat.xs:2113: error: ‘CallbackVector’ has no member named ‘startcd_sv’ Expat.xs:2113: error: ‘CallbackVector’ has no member named ‘startcd_sv’ Expat.xs:2113: error: ‘CallbackVector’ has no member named ‘startcd_sv’ Expat.xs:2115: error: ‘scdhndl’ undeclared (first use in this function) Expat.xs:2117: warning: implicit declaration of function ‘XML_SetStartCdataSectionHandler’ Expat.c: In function ‘XS_XMLParserExpat_SetEndCdataHandler’: Expat.c:2785: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2785: error: expected ‘;’ before ‘parser’ Expat.c:2786: warning: ISO C90 forbids mixed declarations and code Expat.xs:2127: error: ‘parser’ undeclared (first use in this function) Expat.xs:2128: error: ‘XML_EndCdataSectionHandler’ undeclared (first use in this function) Expat.xs:2128: error: expected ‘;’ before ‘ecdhndl’ Expat.xs:2131: error: ‘CallbackVector’ has no member named ‘endcd_sv’ Expat.xs:2131: error: ‘CallbackVector’ has no member named ‘endcd_sv’ Expat.xs:2131: error: ‘CallbackVector’ has no member named ‘endcd_sv’ Expat.xs:2131: error: ‘CallbackVector’ has no member named ‘endcd_sv’ Expat.xs:2131: error: ‘CallbackVector’ has no member named ‘endcd_sv’ Expat.xs:2131: error: ‘CallbackVector’ has no member named ‘endcd_sv’ Expat.xs:2133: error: ‘ecdhndl’ undeclared (first use in this function) Expat.xs:2135: warning: implicit declaration of function ‘XML_SetEndCdataSectionHandler’ Expat.c: In function ‘XS_XMLParserExpat_UnsetAllHandlers’: Expat.c:2819: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2819: error: expected ‘;’ before ‘parser’ Expat.xs:2144: error: ‘parser’ undeclared (first use in this function) Expat.xs:2147: error: ‘CallbackVector’ has no member named ‘ns’ Expat.xs:2148: error: ‘CallbackVector’ has no member named ‘p’ Expat.xs:2149: error: ‘XML_StartNamespaceDeclHandler’ undeclared (first use in this function) Expat.xs:2149: error: expected ‘)’ before numeric constant Expat.xs:2154: error: ‘XML_StartElementHandler’ undeclared (first use in this function) Expat.xs:2154: error: expected ‘)’ before numeric constant Expat.xs:2158: error: ‘XML_UnknownEncodingHandler’ undeclared (first use in this function) Expat.xs:2158: error: expected ‘)’ before numeric constant Expat.c: In function ‘XS_XMLParserExpat_ElementIndex’: Expat.c:2857: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2857: error: expected ‘;’ before ‘parser’ Expat.c:2858: warning: ISO C90 forbids mixed declarations and code Expat.xs:2167: error: ‘parser’ undeclared (first use in this function) Expat.xs:2168: error: ‘CallbackVector’ has no member named ‘st_serial_stack’ Expat.xs:2168: error: ‘CallbackVector’ has no member named ‘st_serial_stackptr’ Expat.c: In function ‘XS_XMLParserExpat_SkipUntil’: Expat.c:2884: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2884: error: expected ‘;’ before ‘parser’ Expat.c:2885: warning: ISO C90 forbids mixed declarations and code Expat.xs:2179: error: ‘parser’ undeclared (first use in this function) Expat.xs:2180: error: ‘CallbackVector’ has no member named ‘st_serial’ Expat.xs:2182: error: ‘CallbackVector’ has no member named ‘skip_until’ Expat.c: In function ‘XS_XMLParserExpat_Do_External_Parse’: Expat.c:2912: error: ‘XML_Parser’ undeclared (first use in this function) Expat.c:2912: error: expected ‘;’ before ‘parser’ Expat.c:2913: warning: ISO C90 forbids mixed declarations and code Expat.xs:2194: error: ‘parser’ undeclared (first use in this function) Expat.xs:2205: warning: unused variable ‘pret’ Expat.xs:2194: warning: unused variable ‘cbv’ Expat.xs:2192: warning: unused variable ‘type’ make[1]: * [Expat.o] Error 1 make[1]: Leaving directory `/home/hclhost/honeyclient/cpan/build/XML-Parser-2.36-BX14yo/Expat' make: * [subdirs] Error 2


dkindlund commented 14 years ago

Author: kindlund Hi,

It looks like the problem you're having is a generic problem compiling XML::Parser. Have you checked the bug reports listed on the package website? It's possible that someone else has encountered the same issue that you're describing:

http://rt.cpan.org/Public/Dist/Display.html?Name=XML-Parser

Additionally, let us know what version of gcc you're using, by typing:

{{{ gcc --version }}}

Thanks,

-- Darien

dkindlund commented 14 years ago

Author: anonymous Hi,

I'm using gcc version 4.1.2 20070626

dkindlund commented 14 years ago

Author: anonymous After search internet, I try several solution and found out the problem and solution. The problem due to missing expat library, if you are using rpm installation, need to install expat-devel rpm package. I can install XML::Parser successfully but I do not know the installation of HoneyClient::Util and HoneyClient::Manager. I can't see the /usr/bin/make install -- OK after 2 install command. But I find Util.pm and Manager.pm in /usr/lib/perl5/site_perl/5.8.8/Bundle/HoneyClient/ . Would you verify it?

dkindlund commented 14 years ago

Author: kindlund Okay, we had listed the expat dependency in Step 7 of this section: http://www.honeyclient.org/trac/wiki/UserGuide#InstallandConfigureLinux

To clarify, Bundle::HoneyClient::Util and Bundle::HoneyClient::Manager only install the necessary dependencies needed for the rest of the HoneyClient code to run properly.

If you cannot find Util.pm or Manager.pm inside /usr/lib/perl5/site_perl/5.8.8/Bundle/Honeyclient, do not worry.

In fact, when you run the code, you will use the Util.pm and Manager.pm that is located in /home/hclhost/honeyclient/lib/HoneyClient/.

Please let us know if you run into any other problems.

Thanks,

-- Darien

dkindlund commented 14 years ago

Author: kindlund Closing ticket, since there are no updates from reporter.