ID: 8603
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Sablotron XSL
Assigned To: 
Comments:

Please try the latest CVS snapshot from http://snaps.php.net/ as this should be fixed 
now.

And if your sablot version is 0.50 you need to have
the external expat libarary installed in your system.

Then you have to use --with-expat-dir=/path/to/expat/install
in your configure line.

Reopen this bug report if this doesn't work.

--Jani

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

[2001-01-08 19:15:28] [EMAIL PROTECTED]
debug.log
CONFIGURE:   './configure' '--with-apxs=/usr/sbin/apxs' '--enable-track-vars' 
'--enable-trans-sid' '--disable-debug' '--with-zlib=/usr/local/lib' 
'--with-sablot=/usr/local/lib'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -DLINUX=2 -DEAPI -DUSE_EXPAT
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/include/apache  -I$(top_builddir)/Zend 
-I/root/tar/php-4.0.4/ext/mysql/libmysql -I/usr/local/include
LDFLAGS:     -Wl,-rpath,/usr/local/lib -L/usr/local/lib
LIBS:       -lxmltok -lxmlparse -lsablot -lresolv -lm -ldl -lcrypt -lnsl  -lresolv
DLIBS:      
SAPI:       apache
PHP_RPATHS:  /usr/local/lib
uname -a:   Linux ns1.abi.tconline.net 2.2.12-20smp #1 SMP Mon Sep 27 10:34:45 EDT 
1999 i686 unknown

gcc -o conftest -g -O2  -DLINUX=2 -DEAPI -DUSE_EXPAT  -Wl,-rpath,/usr/local/lib 
-L/usr/local/lib conftest.c -lxmltok -lxmlparse -lsablot -lresolv -lm -ldl -lcrypt 
-lnsl  -lresolv 1>&5
/usr/local/lib/libsablot.so: undefined reference to `XML_ParserCreateNS'
/usr/local/lib/libsablot.so: undefined reference to `XML_SetCommentHandler'
/usr/local/lib/libsablot.so: undefined reference to `XML_SetNamespaceDeclHandler'
collect2: ld returned 1 exit status
---------------------------------------------------
---------------------------------------------------
I hope this is the part you want from config.log
If not let me know and I will post the rest, or rerun w/o one of the two to see the 
difference. Just let me know what I can do to help. Thanks.

#if BYTE_ORDER != BIG_ENDIAN
 not big endian
#endif
; return 0; }
configure:42676: checking for XML support
configure:43087: checking for YAZ support
configure:43437: checking whether to include YP support
configure:43634: checking whether to include zlib support
configure:43835: checking for gzgets in -lz
configure:43854: gcc -o conftest -g -O2  -DLINUX=2 -DEAPI -DUSE_EXPAT 
-DXML_BYTE_ORDER=12 -L/usr/lib  -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.c 
-lz  -lxmltok -lxmlparse -lsablot -lresolv -lm -ldl -lcrypt -lnsl  -lresolv 1>&5
/usr/local/lib/libsablot.so: undefined reference to `XML_ParserCreateNS'
/usr/local/lib/libsablot.so: undefined reference to `XML_SetCommentHandler'
/usr/local/lib/libsablot.so: undefined reference to `XML_SetNamespaceDeclHandler'
collect2: ld returned 1 exit status
configure: failed program was:
#line 43843 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char gzgets();

int main() {
gzgets()
; return 0; }


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

[2001-01-08 18:38:15] [EMAIL PROTECTED]
Can you paste the appropriate piece of config.log into this bugreport?

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

[2001-01-08 18:29:43] [EMAIL PROTECTED]
The configure line did not include --with-apxs which it shaould have.

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

[2001-01-08 18:27:22] [EMAIL PROTECTED]
Reproduce: Compile flags --with-zlib --with-sablot
Configure line:
./configure 
--enable-track-vars 
--enable-trans-sid 
--disable-debug 
--with-zlib=/usr/local/lib 
--with-sablot=/usr/local/lib
php.ini not relevant
gdb backtrace: Not a php crash

Description:
On this system if zlib and sablot are configured together the configure always fails 
with this error:
"Zlib module requires zlib >= 1.0.9."
The prior build phpinfo() reports zlib enabled with a version of 1.1.3 and I found no 
problems with it. Just to make sure I compiled zlib again from the source and got the 
same error. Either zlib or sablot will configure and make seperately but not together 
and not in any order. I tried the sablot linux binary w/o the expat from sourceforge. 
With the expat. Compiling the source from sablot with the expat. All bailed at the 
same place when compiled with zlib and all but the binary worked without it.

I have seen mention on the list of configures with the above that have not had this 
problem. Is this a known compiler issue? 
P.S. First time to try compiling sablot.

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


Full Bug description available at: http://bugs.php.net/?id=8603


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to