php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9614 libxml 2.3.x series does not work. Config doesn't check for this.
Submitted: 2001-03-07 23:11 UTC Modified: 2001-04-10 10:52 UTC
From: ktohg at tritarget dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0.4pl1 OS: Linux 2.2.18 (Slack 7.1)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ktohg at tritarget dot com
New email:
PHP Version: OS:

 

 [2001-03-07 23:11 UTC] ktohg at tritarget dot com
When you run configure --with-dom it only checks that you have the libxml library >= 2.2.7. However the libxml 2.3.x series doesn't work with PHP and causes undefined symbols (Either during linking or when Apache loads the module)

I used the following configure options:
./configure  --with-apxs=/usr/apache/bin/apxs --with-zlib --with-regex=system --with-readline --with-pdflib --with-mysql=/home/mysql --with-gettext --enable-ftp --with-gd=../gd-1.8.4 --with-bz2 --enable-calendar --with-dom --with-java=/usr/local/jdk1.3

Here is a simplistic patch that does a poor job of checking that the 2.3.x series is not in use.

*** ext/domxml/config.m4.orig	Wed Mar  7 22:56:54 2001
--- ext/domxml/config.m4	Wed Mar  7 23:00:36 2001
***************
*** 4,19 ****
  AC_DEFUN(PHP_DOM_CHECK_VERSION,[
    old_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="-I$DOMXML_DIR/include"
!   AC_MSG_CHECKING(for libxml version)
    AC_EGREP_CPP(yes,[
    #include <libxml/xmlversion.h>
    #if LIBXML_VERSION >= 20207
    yes
    #endif
    ],[
!     AC_MSG_RESULT(>= 2.2.7)
    ],[
!     AC_MSG_ERROR(libxml version 2.2.7 or greater required.)
    ])
    CPPFLAGS=$old_CPPFLAGS
  ])
--- 4,21 ----
  AC_DEFUN(PHP_DOM_CHECK_VERSION,[
    old_CPPFLAGS=$CPPFLAGS
    CPPFLAGS="-I$DOMXML_DIR/include"
!   AC_MSG_CHECKING([for libxml - version >= 2.2.7, < 2.3.x])
    AC_EGREP_CPP(yes,[
    #include <libxml/xmlversion.h>
    #if LIBXML_VERSION >= 20207
+   #if LIBXML_VERSION < 20300
    yes
    #endif
+   #endif
    ],[
!     AC_MSG_RESULT(yes)
    ],[
!     AC_MSG_ERROR([libxml version 2.2.7 or greater (but not 2.3.x series) required.])
    ])
    CPPFLAGS=$old_CPPFLAGS
  ])

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-16 19:53 UTC] sniper@php.net
Please try with the latest CVS snapshot from http://snaps.php.net/ as I?m using libxml 2.3.4 and it compiles with the latest CVS just fine.

--Jani

 [2001-04-10 10:52 UTC] sniper@php.net
This should be fixed. But if this happens also with soon to 
be released PHP 4.0.5, reopen this bug report.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 04:01:38 2024 UTC