Do I need to use "--enable-xslt" as this bug report seems to indicate?

<http://www.php.net/bugs.php?id=8412&edit=1>

Or are these enough to enable Sablotron and get XSLT processing properly:

--with-sablot
--with-xslt-sablot
--with-expat-dir=/usr

It appears to be basically functional - transforms work just fine with
static .xsl and .xml files - but I am seeing a few segfaults at other times.

I tried removing "--with-sablot" and adding "--enable-xslt" but then I get
this error:

Fatal error: Call to undefined function: xslt_run() in
/home/darron/public_html/baby/xslt.php on line 37

When I try to use all four - it doesn't compile:

--enable-xslt
--with-sablot
--with-xslt-sablot
--with-expat-dir=/usr

Making all in .
make[1]: Entering directory `/home/darron/php-4.0.6'
/bin/sh /home/darron/php-4.0.6/libtool --silent --mode=compile gcc  -I.
-I/home/darron/php-4.0.6/ -I/home/darron/php-4.0.6/main
-I/home/darron/php-4.0.6 -I/usr/local/apache_1.3.19/include
-I/home/darron/php-4.0.6/Zend -I/usr/include/freetype
-I/usr/local/src/imap-4.5/c-client -I/usr/local/include
-I/usr/local/mysql-3.23.38/include/mysql -I/usr/local/pdflib-4/include
-I/usr/local/include/pspell -I/home/darron/php-4.0.6/TSRM  -DLINUX=22
-DMOD_SSL=208102 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -DSHARED_CORE
-DSUPPORT_UTF8 -g -O2  -c stub.c
/bin/sh /home/darron/php-4.0.6/libtool --silent --mode=link gcc  -I.
-I/home/darron/php-4.0.6/ -I/home/darron/php-4.0.6/main
-I/home/darron/php-4.0.6 -I/usr/local/apache_1.3.19/include
-I/home/darron/php-4.0.6/Zend -I/usr/include/freetype
-I/usr/local/src/imap-4.5/c-client -I/usr/local/include
-I/usr/local/mysql-3.23.38/include/mysql -I/usr/local/pdflib-4/include
-I/usr/local/include/pspell -I/home/darron/php-4.0.6/TSRM  -DLINUX=22
-DMOD_SSL=208102 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -DSHARED_CORE
-DSUPPORT_UTF8 -g -O2   -o libphp4.la -rpath /home/darron/php-4.0.6/libs
-avoid-version -L/usr/lib/lib -L/usr/local/src/imap-4.5/c-client
-L/usr/local/lib -L/usr/local/mysql-3.23.38/lib/mysql
-L/usr/local/pdflib-4/lib -L/usr/local/pgsql-7.1.2/lib  -R /usr/lib/lib -R
/usr/local/src/imap-4.5/c-client-R /usr/local/lib -R
/usr/local/mysql-3.23.38/lib/mysql -R /usr/local/pdflib-4/lib -R
/usr/local/pgsql-7.1.2/lib stub.lo  Zend/libZend.la sapi/apache/libsapi.la
main/libmain.la regex/libregex.la ext/zlib/libzlib.la
ext/calendar/libcalendar.la ext/curl/libcurl.la ext/ftp/libftp.la
ext/gd/libgd.la ext/gettext/libgettext.la ext/imap/libimap.la
ext/ldap/libldap.la ext/mcrypt/libmcrypt.la ext/mhash/libmhash.la
ext/ming/libming.la ext/mysql/libmysql.la ext/pcre/libpcre.la
ext/pdf/libpdf.la ext/pgsql/libpgsql.la ext/posix/libposix.la
ext/pspell/libpspell.la ext/sablot/libsablot.la ext/session/libsession.la
ext/sockets/libsockets.la ext/standard/libstandard.la ext/swf/libswf.la
ext/wddx/libwddx.la ext/xml/libxml.la ext/xslt/libxslt.la TSRM/libtsrm.la
-lpam -lc-client -ldl -lexpat -lexpat -lsablot-lexpat -lswf -lexpat -lexpat
-lsablot -lpspell -lpq -lpdf -ltiff -lpng -ljpeg -lz -lmysqlclient -lz
-lming -lmhash -lmcrypt -lltdl -lldap -llber -lpam -lgd -lt1 -lttf -lpng -lz
-ljpeg -lcurl -ldl -lcrypto -lssl -lz -lcrypt -lresolv -lm -ldl -lnsl
-lresolv
ext/xslt/.libs/libxslt.al(sablot.lo): In function `php_if_xslt_create':
/home/darron/php-4.0.6/ext/xslt/sablot.c:156: multiple definition of
`php_if_xslt_create'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:572: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_create' changed from 313
to 207 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function
`php_if_xslt_set_error_handler':
/home/darron/php-4.0.6/ext/xslt/sablot.c:329: multiple definition of
`php_if_xslt_set_error_handler'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:1084: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_set_error_handler' changed
from 722 to 133 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function `php_if_xslt_set_base':
/home/darron/php-4.0.6/ext/xslt/sablot.c:347: multiple definition of
`php_if_xslt_set_base'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:968: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_set_base' changed from 312
to319 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function
`php_if_xslt_set_encoding':
/home/darron/php-4.0.6/ext/xslt/sablot.c:372: multiple definition of
`php_if_xslt_set_encoding'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:951: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_set_encoding' changed from
323 to 319 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function `php_if_xslt_process':
/home/darron/php-4.0.6/ext/xslt/sablot.c:425: multiple definition of
`php_if_xslt_process'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:497: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_process' changed from 707
to 1150 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function `php_if_xslt_error':
/home/darron/php-4.0.6/ext/xslt/sablot.c:532: multiple definition of
`php_if_xslt_error'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:1017: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_error' changed from 515 to
211 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function `php_if_xslt_errno':
/home/darron/php-4.0.6/ext/xslt/sablot.c:515: multiple definition of
`php_if_xslt_errno'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:1060: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_errno' changed from 141 to
133 in sablot.lo
ext/xslt/.libs/libxslt.al(sablot.lo): In function `php_if_xslt_free':
/home/darron/php-4.0.6/ext/xslt/sablot.c:553: multiple definition of
`php_if_xslt_free'
ext/sablot/.libs/libsablot.al(sablot.lo):/home/darron/php-4.0.6/ext/sablot/s
ablot.c:813: first defined here
/usr/bin/ld: Warning: size of symbol `php_if_xslt_free' changed from 131 to
125in sablot.lo
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/darron/php-4.0.6'
make: *** [all-recursive] Error 1

I tried to update to 4.0.7-cvs but it didn't ./buildconf properly for some
reason. Any tips would be great - I'm really excited about using PHP to do
XSLT.

I'm running:
Linux 2.2.19
Mandrake 7.1
expat-1.95.2
Sablotron 0.65

I've got PHP 4.0.6 compiled and working properly with this configure script:

./configure \
--with-apxs=/usr/local/apache_1.3.19/bin/apxs \
--with-mysql=/usr/local/mysql-3.23.38 \
--with-pgsql=/usr/local/pgsql-7.1.2 \
--enable-ftp \
--with-curl \
--with-zlib \
--with-pspell \
--with-ldap \
--with-pdflib=/usr/local/pdflib-4 \
--with-imap=/usr/local/src/imap-4.5 \
--with-zlib-dir=/usr/lib \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-gd \
--with-ttf \
--with-t1lib \
--with-xml \
--with-swf=/usr/local \
--with-ming \
--with-sablot \
--with-xslt-sablot \
--with-expat-dir=/usr \
--with-java=/usr/local/jdk \
--with-gettext \
--with-mcrypt \
--with-mhash \
--enable-wddx \
--enable-sockets \
--enable-calendar \
--enable-trans-sid \
--enable-track-vars=yes \
--enable-magic-quotes=yes
-- 
darron froese
new media technologist
sutton javelin corporate communications
t  403.716.0351
f  403.265.7662
e  [EMAIL PROTECTED]


-- 
PHP General 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