ID:               30156
 Updated by:       [EMAIL PROTECTED]
 Reported By:      jtaisto at iocenter dot net
-Status:           Open
+Status:           Bogus
-Bug Type:         PHP options/info functions
+Bug Type:         Compile Failure
 Operating System: Solaris 9
 PHP Version:      5.0.1
 New Comment:

Not PHP bug.



Previous Comments:
------------------------------------------------------------------------

[2004-12-15 11:04:04] riese at freenet dot de

after a bit of hacking in configure changing the line with
testcompiling for this issue to
if { (eval echo configure:18092: \"$ac_link\") 1>5; (eval $ac_link)
2>6; } ...

i found out, the link-error occuring was 

"cannot find -lz"

prob was solved after i installed zlib-devel packages

hope that helps

Stephan

------------------------------------------------------------------------

[2004-10-05 15:18:32] rgski at hotmail dot com

Problem Fixed:

At first going through the configure script, the finding was:
(around line 18071)

LIBS="
       $LIBXML_SHARED_LIBADD
      $LIBS"

Which we thought could have been the issue, (returns/spaces)
but we knew better that it shouldn't matter. We changed it
to:

LIBS="$LIBXML_SHARED_LIBADD $LIBS" 

And of course we still got the error.  After coping out the
small source and running the gcc (found in the config.log) 
it compiled fine, but wasn't finding the correct library.

We added /usr/local/lib/sparcv9 to the LD_LIBRARY_PATH and
the configure ran fine.  I am not sure why the CFLAGS or LDFLAGS were
not picked up properly for only this instance.
(-m64 and -mcpu=v9 should automatically source the sparcv9 libs)

But reguardless of that, it works and it's time to move on.

Good luck.

Rob

------------------------------------------------------------------------

[2004-10-05 14:16:32] rgski at hotmail dot com

I have this exact issue with trying to compile 64bit PHP on Soalris9. 
All other components have been compiled 64bit as well, however, finding
this error may lead me to believe that this may not be a php issue. 
Why? I am trying to compile php5.0.2 and get the exact error at the
same exact location.  It still could be a php issue though, I am not
sure.  I'm still digging into the issue here.

Sol9 w/ most recent patch cluster
gcc 3.4.2
libtool 1.5.10 (I know it's not tested via php team. ;-)
libxml2 2.6.14
libxml 1.8.17
php 5.0.2
apache-ssl 1.3.31 (1.55 ssl)

------------------------------------------------------------------------

[2004-09-22 14:36:58] jtaisto at iocenter dot net

configure exits with this:

Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... /u1/xml/libxml2-2.6.13/sparcv9
checking whether libxml build works... no
configure: error: build test failed.  Please check the config.log for
details.


The last lines in the config.log say:

configure:17846: checking whether to enable LIBXML support
configure:17893: checking libxml2 install dir
configure:18053: checking whether libxml build works
configure:18080: gcc -o conftest -O2 -m64 -mcpu=ultrasparc
-mtune=ultrasparc -pthreads  -D_POSIX_PTHREAD_SEMANTICS
-D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -R/usr/ucblib -L/usr/ucblib
-R/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2
-L/usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2
-R/u1/xml/libxml2-2.6.13/sparcv9/lib
-L/u1/xml/libxml2-2.6.13/sparcv9/lib conftest.c 
          
         -lresolv -lm -ldl -lnsl -lsocket  -lgcc -lxml2 -lz -lm
-lsocket -lnsl 1>&5
configure: failed program was:
#line 18069 "configure"
#include "confdefs.h"

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

------------------------------------------------------------------------

[2004-09-19 17:58:00] [EMAIL PROTECTED]

What does config.log say about the reason for the failure?

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/30156

-- 
Edit this bug report at http://bugs.php.net/?id=30156&edit=1

Reply via email to