php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31196 Fail on xml
Submitted: 2004-12-20 11:08 UTC Modified: 2005-01-12 12:48 UTC
From: alexfung3 at yahoo dot com dot hk Assigned:
Status: Closed Package: Compile Failure
PHP Version: 5.0.3 OS: Solaris 9 x86
Private report: No CVE-ID: None
 [2004-12-20 11:08 UTC] alexfung3 at yahoo dot com dot hk
Description:
------------
I try to run configure but get the error.
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for details.

I have already install bison, flex, zlib, libxml2, libiconv and apache2.  

Pleae help to solve my problem, I have stick on the problem for days.  Thanks very much.


Reproduce code:
---------------
Here is part of the config.log
configure:17978: checking whether libxml build works
configure:18005: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib -R/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3.2 -L/opt/sfw/gcc-3/lib/gcc-lib/i386-pc-solaris2.9/3.3.2 -R/usr/local/lib -L/usr/local/lib conftest.c 
          
         -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm -lsocket -lnsl 1>&5
configure: failed program was:
#line 17994 "configure"
#include "confdefs.h"

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

Expected result:
----------------
Complete successful.

Actual result:
--------------
build test failed.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-20 23:14 UTC] chregu@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

please show your whole ./configure line

Furthermore try using the option --with-libxml-dir=/path/to/where/libxml/is/installed

the path is for example /usr/ or /usr/local

check where xml2-config is and try this path (without bin/xml2-config)
 [2004-12-29 18:34 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2005-01-12 01:23 UTC] jjchung at so-net dot net dot tw
Me too.
My platform are FreeBSD 5.3.
 [2005-01-12 12:48 UTC] alexfung3 at yahoo dot com dot hk
It compile successfully after I add gcc path to LD_LIBRARY_PATH (LD_LIBRARY_PATH=/opt/sfw/gcc-3/lib)
Thanks very much.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 19:01:34 2024 UTC