this is an issue with the new libxml2, as it broke backwards compat. This is fixed in my latest version but I'm waiting for dpkg 1.15+ so that I can release it. --- TS http://www.southofheaven.org/ Life begins and ends with chaos, live between the chaos!
On 2013-08-28, at 6:00 AM, Gereon Frahling <[email protected]> wrote: > Hi! > I tried to install php5 on my Mountain Lion machine, but it keeps failing > with the following error: > > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1898:21: error: > incomplete definition of type 'struct _xmlBuf' > ret = buf->buffer->use; > > I have no idea how to fix it, perhaps you can help? > > Best regards, > Gereon > > > > /bin/sh /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/libtool > --silent --preserve-dup-deps --mode=compile cc -Iext/dom/ > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/ -DPHP_ATOM_INC > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/include > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/main > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4 > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/ext/date/lib > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/date/lib > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/ereg/regex > -I/sw/include/libxml2 -I/sw/include -I/sw/include/enchant > -I/usr/X11R6/include -I/sw/include/freetype2 -I/sw/include/c-client > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/mbstring/libmbfl > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/ext/mbstring/libmbfl > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/mbstring/libmbfl/mbfl > -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/ext/mbstring/li bmbfl/mbfl -I/sw/include/mysql -I/sw/include/pspell -I/sw/include/tidy -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/TSRM -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/Zend -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/main -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/TSRM -I/sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/apache2-build/ -I/sw/include -no-cpp-precomp -I/sw/include -g -O2 -fvisibility=hidden -c /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c -o ext/dom/node.lo > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:219:30: warning: > passing 'char [2]' to parameter of type 'const xmlChar *' (aka 'const > unsigned char *') converts between pointers to integer types with different > sign [-Wpointer-sign] > qname = xmlStrcat(qname, ":"); > ^~~ > /sw/include/libxml2/libxml/xmlstring.h:88:57: note: passing argument to > parameter 'add' here > const xmlChar *add); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:221:9: warning: > assigning to 'char *' from 'xmlChar *' (aka 'unsigned char *') converts > between pointers to integer types with different sign [-Wpointer-sign] > str = qname; > ^ ~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:229:23: warning: > passing 'char [6]' to parameter of type 'const xmlChar *' (aka 'const > unsigned char *') converts between pointers to integer types with different > sign [-Wpointer-sign] > qname = xmlStrdup("xmlns"); > ^~~~~~~ > /sw/include/libxml2/libxml/xmlstring.h:41:58: note: passing argument to > parameter 'cur' here > xmlStrdup (const xmlChar *cur); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:230:30: warning: > passing 'char [2]' to parameter of type 'const xmlChar *' (aka 'const > unsigned char *') converts between pointers to integer types with different > sign [-Wpointer-sign] > qname = xmlStrcat(qname, ":"); > ^~~ > /sw/include/libxml2/libxml/xmlstring.h:88:57: note: passing argument to > parameter 'add' here > const xmlChar *add); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:232:9: warning: > assigning to 'char *' from 'xmlChar *' (aka 'unsigned char *') converts > between pointers to integer types with different sign [-Wpointer-sign] > str = qname; > ^ ~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:308:8: warning: > assigning to 'char *' from 'xmlChar *' (aka 'unsigned char *') converts > between pointers to integer types with different sign [-Wpointer-sign] > str = xmlNodeGetContent(nodep); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:311:8: warning: > assigning to 'char *' from 'xmlChar *' (aka 'unsigned char *') converts > between pointers to integer types with different sign [-Wpointer-sign] > str = xmlNodeGetContent(nodep->children); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:363:32: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > xmlNodeSetContentLen(nodep, Z_STRVAL_P(newval), > Z_STRLEN_P(newval) + 1); > ^~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend/zend_operators.h:432:29: > note: expanded from macro 'Z_STRVAL_P' > #define Z_STRVAL_P(zval_p) Z_STRVAL(*zval_p) > ^~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend/zend_operators.h:417:26: > note: expanded from macro 'Z_STRVAL' > #define Z_STRVAL(zval) (zval).value.str.val > ^~~~~~~~~~~~~~~~~~~~ > /sw/include/libxml2/libxml/tree.h:1057:22: note: passing argument to > parameter 'content' here > const xmlChar *content, > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:809:49: warning: > passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type > 'const char *' converts between pointers to integer types with different sign > [-Wpointer-sign] > (!strcmp (prefix, "xml") && > strcmp(strURI, XML_XML_NAMESPACE)) || > > ^~~~~~~~~~~~~~~~~ > /sw/include/libxml2/libxml/tree.h:140:5: note: expanded from macro > 'XML_XML_NAMESPACE' > (const xmlChar *) "http://www.w3.org/XML/1998/namespace" > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/include/string.h:87:39: note: passing argument to parameter here > int strcmp(const char *, const char *); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:811:23: warning: > passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type > 'const char *' converts between pointers to integer types with different sign > [-Wpointer-sign] > strcmp (strURI, DOM_XMLNS_NAMESPACE)) > || > ^~~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/xml_common.h:61:5: note: > expanded from macro 'DOM_XMLNS_NAMESPACE' > (const xmlChar *) "http://www.w3.org/2000/xmlns/" > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /usr/include/string.h:87:39: note: passing argument to parameter here > int strcmp(const char *, const char *); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:812:53: warning: > passing 'const xmlChar *' (aka 'const unsigned char *') to parameter of type > 'const char *' converts between pointers to integer types with different sign > [-Wpointer-sign] > (nodep->type == XML_ATTRIBUTE_NODE && > !strcmp (nodep->name, "xmlns"))) { > > ^~~~~~~~~~~ > /usr/include/string.h:87:25: note: passing argument to parameter here > int strcmp(const char *, const char *); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:929:6: warning: > assigning to 'char *' from 'xmlChar *' (aka 'unsigned char *') converts > between pointers to integer types with different sign [-Wpointer-sign] > str = xmlNodeGetContent(nodep); > ^ ~~~~~~~~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1630:76: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > if (lookupp != NULL && (nsptr = > xmlSearchNsByHref(lookupp->doc, lookupp, uri))) { > > ^~~ > /sw/include/libxml2/libxml/tree.h:988:22: note: passing argument to parameter > 'href' here > const xmlChar *href); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1665:41: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > if (nsptr && xmlStrEqual(nsptr->href, uri)) { > ^~~ > /sw/include/libxml2/libxml/xmlstring.h:79:57: note: passing argument to > parameter 'str2' here > const xmlChar *str2); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1699:41: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > nsptr = xmlSearchNs(nodep->doc, nodep, prefix); > ^~~~~~ > /sw/include/libxml2/libxml/tree.h:984:22: note: passing argument to parameter > 'nameSpace' here > const xmlChar *nameSpace); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1791:39: warning: > passing 'char [33]' to parameter of type 'const xmlChar *' (aka 'const > unsigned char *') converts between pointers to integer types with different > sign [-Wpointer-sign] > xpathobjp = xmlXPathEvalExpression("(.//. | .//@* | > .//namespace::*)", ctxp); > > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > /sw/include/libxml2/libxml/xpath.h:522:46: note: passing argument to > parameter 'str' here > xmlXPathEvalExpression (const xmlChar *str, > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1832:32: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > xmlXPathRegisterNs(ctxp, > prefix, Z_STRVAL_PP(tmpns)); > ^~~~~~ > /sw/include/libxml2/libxml/xpathInternals.h:426:23: note: passing argument to > parameter 'prefix' here > const xmlChar *prefix, > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1832:40: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > xmlXPathRegisterNs(ctxp, > prefix, Z_STRVAL_PP(tmpns)); > > ^~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend/zend_operators.h:447:30: > note: expanded from macro 'Z_STRVAL_PP' > #define Z_STRVAL_PP(zval_pp) Z_STRVAL(**zval_pp) > ^~~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend/zend_operators.h:417:26: > note: expanded from macro 'Z_STRVAL' > #define Z_STRVAL(zval) (zval).value.str.val > ^~~~~~~~~~~~~~~~~~~~ > /sw/include/libxml2/libxml/xpathInternals.h:427:23: note: passing argument to > parameter 'ns_uri' here > const xmlChar *ns_uri); > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1839:38: warning: > passing 'char *' to parameter of type 'const xmlChar *' (aka 'const unsigned > char *') converts between pointers to integer types with different sign > [-Wpointer-sign] > xpathobjp = xmlXPathEvalExpression(xquery, ctxp); > ^~~~~~ > /sw/include/libxml2/libxml/xpath.h:522:46: note: passing argument to > parameter 'str' here > xmlXPathEvalExpression (const xmlChar *str, > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1862:39: warning: > assigning to 'xmlChar *' (aka 'unsigned char *') from 'char *' converts > between pointers to integer types with different sign [-Wpointer-sign] > inclusive_ns_prefixes[nscount++] = > Z_STRVAL_PP(tmpns); > ^ > ~~~~~~~~~~~~~~~~~~ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1898:21: error: > incomplete definition of type 'struct _xmlBuf' > ret = buf->buffer->use; > ~~~~~~~~~~~^ > /sw/include/libxml2/libxml/tree.h:104:16: note: forward declaration of > 'struct _xmlBuf' > typedef struct _xmlBuf xmlBuf; > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1900:40: error: > incomplete definition of type 'struct _xmlBuf' > RETVAL_STRINGL((char *) buf->buffer->content, > ret, 1); > ~~~~~~~~~~~^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend/zend_API.h:611:69: note: > expanded from macro 'RETVAL_STRINGL' > #define RETVAL_STRINGL(s, l, duplicate) ZVAL_STRINGL(return_value, s, > l, duplicate) > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/Zend/zend_API.h:571:20: note: > expanded from macro 'ZVAL_STRINGL' > const char *__s=(s); int __l=l; \ > ^ > /sw/include/libxml2/libxml/tree.h:104:16: note: forward declaration of > 'struct _xmlBuf' > typedef struct _xmlBuf xmlBuf; > ^ > /sw/src/fink.build/php5-5.4.4-2.3/php-5.4.4/ext/dom/node.c:1945:8: warning: > assigning to 'char *' from 'xmlChar *' (aka 'unsigned char *') converts > between pointers to integer types with different sign [-Wpointer-sign] > value = xmlGetNodePath(nodep); > ^ ~~~~~~~~~~~~~~~~~~~~~ > 21 warnings and 2 errors generated. > make: *** [ext/dom/node.lo] Error 1 > ### execution of /tmp/fink.UmYxM failed, exit code 2 > ### execution of /tmp/fink.GNQip failed, exit code 2 > Removing runtime build-lock... > Removing build-lock package... > /sw/bin/dpkg-lockwait -r fink-buildlock-php5-5.4.4-2.3 > (Reading database ... 33370 files and directories currently installed.) > Removing fink-buildlock-php5-5.4.4-2.3 ... > Failed: phase compiling: php5-5.4.4-2.3 failed > > Before reporting any errors, please run "fink selfupdate" and try again. > > If you continue to have issues, please check to see if the FAQ on Fink's > website solves the problem. If not, ask on one (not both, please) of > these mailing lists: > > The Fink Users List <[email protected]> > The Fink Beginners List <[email protected]>, > > with a carbon copy to the maintainer: > > Justin F. Hallett <[email protected]> > > Note that this is preferable to emailing just the maintainer directly, > since most fink package maintainers do not have access to all possible > hardware and software configurations. > > Please try to include the complete error message in your report. This > generally consists of a compiler line starting with e.g. "gcc" or "g++" > followed by the actual error output from the compiler. > > Also include the following system information: > Package manager version: 0.35.1 > Distribution version: selfupdate-rsync Wed Aug 28 13:42:00 2013, 10.8, x86_64 > Trees: local/main stable/main > Xcode.app: 4.6.3 > Xcode command-line tools: 4.6.0.0.1.1365549073 > php5-5.4.4-2.3 is set to build with only one job. > ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Fink-users mailing list [email protected] List archive: http://news.gmane.org/gmane.os.macosx.fink.user Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-users
