error(s) compiling DOM xml module...

[email protected] (Jesse Griffis) Mon, 5 Jun 2000 14:33:58 -0400
Newsgroups php.version4
Message-ID <[email protected]>
Hi there,

I'm running a development server that has been reliably serving up PHP3
pages for quite a while.  PHP4 is out, and I figure "Pretty cool, I'll try
out the DOM XML stuff that they just did".  Unfortunately, PHP4 won't
compile with DOM enabled.  Here's the details (please feel free to slap me
around if I miss something vital--I'm not that proficient in fixing this
kind of thing):

uname -a:
Linux ns2.andalon.net 2.2.12-20 #1 Mon Sep 27 10:40:35 EDT 1999 i686 unknown
(In fact, feel free to check out: ns2.andalon.net/phpinfo.php...it's working
nicely. :))

It's running RedHat 6.1.
Seeing as the DOM XML docs say you need gnome's XML library, these RPMs seem
to be the relevant ones:
(the (-devel) part means I have the 'user' and devel rpms installed)
gnome-core(-devel)-1.0.54-2
gnome-libs(-devel)-1.0.54-1
libxml(-devel)-1.8.7-1

Here's a copy of the make output (the relevant parts anyway):
Making all in domxml
make[2]: Entering directory `/home/jesse/tmp/php-4.0.0/ext/domxml'
make[3]: Entering directory `/home/jesse/tmp/php-4.0.0/ext/domxml'
/bin/sh /home/jesse/tmp/php-4.0.0/libtool --silent --mode=compile gcc
-DHAVE_CON
FIG_H -I. -I/home/jesse/tmp/php-4.0.0/ext/domxml -I/home/jesse/tmp/php-4.0.0
-I/
usr/include/apache -I/home/jesse/tmp/php-4.0.0/Zend
-I/home/jesse/tmp/php-4.0.0
-I/usr/src/mck-3.2/c-api -I/home/jesse/tmp/php-4.0.0/ext/mysql/libmysql
-I/opt/s
ybase-11.9.2/include -I/home/jesse/tmp/php-4.0.0/ext/xml/expat/xmltok
-I/home/je
sse/tmp/php-4.0.0/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -g -O2 -Wall
-c d
omxml.c
domxml.c: In function `php_if_domxml_children':
domxml.c:554: structure has no member named `children'
domxml.c:556: structure has no member named `children'
domxml.c:521: warning: `last' might be used uninitialized in this function
domxml.c: In function `php_if_domxml_attributes':
domxml.c:710: warning: implicit declaration of function `node_attributes'
domxml.c:683: warning: unused variable `attr'
domxml.c: In function `php_if_domxml_rootnew':
domxml.c:767: structure has no member named `children'
domxml.c:739: warning: `last' might be used uninitialized in this function
domxml.c: In function `php_if_domxml_root':
domxml.c:830: structure has no member named `children'
domxml.c:802: warning: `node' might be used uninitialized in this function
domxml.c: At top level:
domxml.c:1197: warning: `node_attributes' was declared implicitly `extern'
and l
ater `static'
domxml.c:710: warning: previous declaration of `node_attributes'
domxml.c: In function `node_attributes':
domxml.c:1222: structure has no member named `children'
domxml.c: In function `node_children':
domxml.c:1280: structure has no member named `children'
domxml.c:1235: warning: unused variable `namespace'
domxml.c: In function `php_if_xmltree':
domxml.c:1318: structure has no member named `children'
domxml.c:1294: warning: unused variable `attributes'
domxml.c:1294: warning: unused variable `proot'
domxml.c:1296: warning: `root' might be used uninitialized in this function
domxml.c: At top level:
domxml.c:33: warning: `le_domxmlnsp' defined but not used
domxml.c:39: warning: `domxmltestnode_class_entry_ptr' defined but not used
domxml.c:85: warning: `php_domxmltestnode_class_functions' defined but not
used
domxml.c:1158: warning: `node_namespace' defined but not used
make[3]: *** [domxml.lo] Error 1
make[3]: Leaving directory `/home/jesse/tmp/php-4.0.0/ext/domxml'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/jesse/tmp/php-4.0.0/ext/domxml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/jesse/tmp/php-4.0.0/ext'
make: *** [all-recursive] Error 1


And that's about all I can think of to toss out there.  Something to do with
a missing function somewhere?

Anyway, any help would be greatly appreciated...

Jesse

-[Jesse Griffis]-
-[Developer Geek]--[Andalon.com]-
-[Phone 716.636.4665]-
-[[email protected]]-