php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36404 configure script cannot complete libxml build
Submitted: 2006-02-15 22:20 UTC Modified: 2006-04-18 01:00 UTC
Votes:8
Avg. Score:4.8 ± 0.7
Reproduced:7 of 7 (100.0%)
Same Version:6 (85.7%)
Same OS:2 (28.6%)
From: davecenker at cfl dot rr dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.1.2 OS: Solaris 8
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: davecenker at cfl dot rr dot com
New email:
PHP Version: OS:

 

 [2006-02-15 22:20 UTC] davecenker at cfl dot rr dot com
Description:
------------
I am having difficulties getting past the libxml build check when configuring PHP.  I have installed libxml version 2.6.23 and am attempting to run the configure script for PHP version 5.1.2.  I have seen other bug reports similar to this, but none of the recommended fixes seem to address my problem.

Below is the complete configure commandline:

./configure --with-apxs=/home/dcenker/AMP/apache/bin/apxs --with-mysqli=/home/dcenker/AMP/mysql/bin/mysql_config --enable-mbstring --enable-soap --with-libxml-dir=/home/dcenker/libxml

where /home/dcenker/libxml/bin contains the xml2-config executable.  The last few lines of the config.log file are as follows:

Any help in resolving this installation issue would be greatly appreciated.  If you need any additional information, please let me know.  Thank you.

Actual result:
--------------
<<<begin config.log excerpt>>>

configure:18440: checking whether to enable LIBXML support
configure:18487: checking libxml2 install dir
configure:18647: checking whether libxml build works
configure:18674: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucbli
b -L/usr/ucblib -R/apps/gcc-3.0.4/lib/gcc-lib/sparc-sun-solaris2.7/3.0.4 -L/apps/
gcc-3.0.4/lib/gcc-lib/sparc-sun-solaris2.7/3.0.4 -R/home/dcenker/libxml/lib -L/ho
me/dcenker/libxml/lib conftest.c

         -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm -lsocket -lnsl 1>
&5
configure: failed program was:
#line 18663 "configure"
#include "confdefs.h"


    char xmlInitParser();
    int main() {
      xmlInitParser();
      return 0;
    }

<<<end config.log excerpt>>>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-02-16 21:18 UTC] tony2001@php.net
Please upload whole config.log somewhere and provide the link here.
 [2006-02-16 22:11 UTC] davecenker at cfl dot rr dot com
http://www.badongo.com/file.php?file=PHP+Configuration+Log__2006-02-16_config.log

Above is the link to the entire config.log file.  Please let me know if you are unable to retrieve it.  Thank you.
 [2006-03-15 02:42 UTC] goraja at gmail dot com
I tried with 5.0.4, 5.1.0, 5.1.2 and from latest snapshots too. All the time I am stuck with the same problem. No help anywhere in web.
 [2006-04-10 13:03 UTC] sniper@php.net
Make sure the path to the libraries is in your LD_LIBRARY_PATH environment variable.
 [2006-04-14 07:42 UTC] ceo at l-i-e dot com
I'm on FreeBSD, so maybe the fix is different, but:
export LD_LIBRARY_PATH=/usr/local/lib
did not seem to affect it...

I checked that
libxml2 is in /usr/local/lib

I'm compiling from CVS, in a different directory, for development purposes.
 [2006-04-18 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-04-26 07:14 UTC] goraja at gmail dot com
After installaing MySQL from the downloaded MySQL source code (compile and install);  the libxml2 problem disappeared on solaris 8 . Previously I had binary install where libxml2 error was consistent.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 23:01:31 2024 UTC