php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14075 PHP/Apache compile with domxml
Submitted: 2001-11-15 17:33 UTC Modified: 2001-12-21 12:49 UTC
From: evan at cache dot net Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0.6 OS: RedHat 7.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: evan at cache dot net
New email:
PHP Version: OS:

 

 [2001-11-15 17:33 UTC] evan at cache dot net
PHP Configure:

/configure --prefix=/usr --with-config-file-path=/etc 
--disable-debug --enable-pic --enable-shared 
--enable-inline-optimization --with-exec-dir=/usr/bin 
--with-regex=system --with-gettext --with-gd 
--with-jpeg-dir=/usr --with-png --with-zlib --with-db2 
--with-db3 --with-gdbm --enable-debugger 
--enable-magic-quotes --enable-safe-mode --enable-sockets 
--enable-sysvsem --enable-sysvshm --enable-track-vars 
--enable-yp --enable-ftp --enable-wddx --with-mysql 
--without-oracle --without-oci8 --with-xml 
--with-apache=/home/evan/CMS/apache_1.3.22 --with-dom

Apache Configure:

./configure --with-layout=Apache --prefix=/vars/www 
--activate-module=src/modules/php4/libphp4.a

PHP makes fine as does libxml2(I also tried a RH7.1 rpm). 
I also had to do a ln -s to get --with-dom to work 
(originally I pointed --with-dom=/path/to/XML which 
produced identical results as below).
The following is the output of Apache make:


===> src
make[1]: Entering directory `/home/evan/CMS/apache_1.3.22'
make[2]: Entering directory 
`/home/evan/CMS/apache_1.3.22/src'
===> src/os/unix
make[3]: Nothing to be done for `all'.
<=== src/os/unix
===> src/ap
make[3]: Nothing to be done for `all'.
<=== src/ap
===> src/main
make[3]: Nothing to be done for `all'.
<=== src/main
===> src/lib
<=== src/lib
===> src/modules
===> src/modules/standard
make[4]: Nothing to be done for `all'.
<=== src/modules/standard
===> src/modules/php4
make[4]: Nothing to be done for `all'.
<=== src/modules/php4
<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 
-I/home/evan/CMS/php-4.0.6 -I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=22 -I/home/evan/CMS/php-4.0.6 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/main 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/Zend 
-I/home/evan/CMS/php-4.0.6/TSRM 
-I/home/evan/CMS/php-4.0.6/TSRM -I/home/evan/CMS/php-4.0.6 
-DNO_DL_NEEDED `./apaci`    \
      -o httpd buildmark.o modules.o 
modules/standard/libstandard.a modules/php4/libphp4.a 
main/libmain.a ./os/unix/libos.a ap/libap.a    
-Wl,-rpath,/home/evan/CMS/XML/lib  -rdynamic 
-L/home/evan/CMS/XML/lib -Lmodules/php4 -L../modules/php4 
-L../../modules/php4 -lmodphp4  -lpam  -ldl -lgd -ljpeg 
-lz -lxml -ldb -ldb2 -lgdbm -lz -lcrypt -lresolv -lm -ldl 
-lnsl  -lresolv   -lm -lcrypt -lexpat
make[2]: Leaving directory 
`/home/evan/CMS/apache_1.3.22/src'
make[1]: Leaving directory `/home/evan/CMS/apache_1.3.22'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_new_context':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1607: 
undefined reference to `xmlXPtrNewContext'
modules/php4/libphp4.a(php_domxml.o): In function 
`php_xpathptr_eval':
/home/evan/CMS/php-4.0.6/ext/domxml/php_domxml.c:1670: 
undefined reference to `xmlXPtrEval'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[1]: *** [build-std] Error 2
make: *** [build] Error 2

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-15 18:07 UTC] evan at cache dot net
Just want to mention my versions:
libxml2-2.4.10-1
apache-1.3.22
php4.0.6
RedHat 7.1

 [2001-11-15 19:29 UTC] sniper@php.net
You have most likely not installed the -devel rpm for libxml. And it also seems like the configure finds some
old version of libxml. Please try the latest CVS snapshot
from http://snaps.php.net/ as it has some fixes in it
for domxml.

--Jani

 [2001-11-16 16:45 UTC] evan at cache dot net
Just wanted to mention I compiled from source on all of the packages, namely, libxml2.4.10, apache1.3.22, and php4.0.6 and gave explicit path directions for libxml2 when using --with-dom=/path/to/xml/source, which I had just built. The oddity here is that when make-ing php there were no issues but when I attempted apache the make fails (in reality php had the same problem apache did, but was mysteriously fixed when I rebuild php again). Unfortunately, this is my nth rebuild of all of the above and I still have had no success. I am in the process of getting the most recent php tarball and will try to find the libxml-devel rpm (the source?) as I haven't tried that approach yet.
 [2001-11-29 10:37 UTC] mfischer@php.net
As sniper already said, please try a a recent snapshot from snaps.php.net or http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.
 [2001-12-21 12:49 UTC] sander@php.net
No feedback. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 11:01:29 2025 UTC