From: Mike Sassak Date: 2002-03-25T09:46:12+09:00 Subject: Re: trouble compiling xmlparser Did you install expat via RPM's? And if so, did you make sure to install the expat-devel RPM? The error below "XML_Function undeclared" etc. is usually a result of missing header files. -mike On Sun, 2002-03-24 at 18:38, Michael Hale wrote: > I am trying to get xmlparser setup on my linux box. I installed > expat, then downloaded the source for xmlparser and ran the following > commands, but after running make I get the following error and I am > unable to continue. Any suggestions? > > cd xmlparser > ruby extconf.rb --with-xmlparse-lib=/usr/local/lib/libexpat.so > make > > gcc -fPIC -g -O2 -I/usr/src/xmlparser/expat/xmlparse > -I/usr/src/xmlparser/expat/xmltok -DNEW_EXPAT -DXML_DTD -I. > -I/usr/local/lib/ruby/1.6/i686-linux -I. -I/usr/local/include > -DHAVE_XMLPARSE_H -DHAVE_XML_SETNOTSTANDALONEHANDLER > -DHAVE_XML_SETPARAMENTITYPARSING -DHAVE_XML_SETDOCTYPEDECLHANDLER -c > -o xmlparser.o xmlparser.c > xmlparser.c: In function `XMLParser_new': > xmlparser.c:1299: warning: assignment makes pointer from integer > without a cast > xmlparser.c: In function `XMLParser_parse': > xmlparser.c:1365: `XML_StartCdataSectionHandler' undeclared (first use > in this function) > xmlparser.c:1365: (Each undeclared identifier is reported only once > xmlparser.c:1365: for each function it appears in.) > xmlparser.c:1365: parse error before `startC' > xmlparser.c:1366: `XML_EndCdataSectionHandler' undeclared (first use > in this function) > xmlparser.c:1367: `XML_StartNamespaceDeclHandler' undeclared (first > use in this function) > xmlparser.c:1368: `XML_EndNamespaceDeclHandler' undeclared (first use > in this function) > xmlparser.c:1371: `XML_StartDoctypeDeclHandler' undeclared (first use > in this function) > xmlparser.c:1372: `XML_EndDoctypeDeclHandler' undeclared (first use in > this function) > xmlparser.c:1437: `startC' undeclared (first use in this function) > xmlparser.c:1439: `endC' undeclared (first use in this function) > xmlparser.c:1444: `startNS' undeclared (first use in this function) > xmlparser.c:1446: `endNS' undeclared (first use in this function) > xmlparser.c:1454: `startDoctype' undeclared (first use in this > function) > xmlparser.c:1456: `endDoctype' undeclared (first use in this function) > xmlparser.c: In function `Init_xmlparser': > xmlparser.c:1896: `XML_PARAM_ENTITY_PARSING_NEVER' undeclared (first > use in this function) > xmlparser.c:1898: `XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE' > undeclared (first use in this function) > xmlparser.c:1900: `XML_PARAM_ENTITY_PARSING_ALWAYS' undeclared (first > use in this function) > make: *** [xmlparser.o] Error 1