From:             mrowe at pointsystems dot com
Operating system: Solaris 9
PHP version:      4.3.4
PHP Bug Type:     XSLT related
Bug description:  configure works, but make breaks when --enable-xslt and 
--with-xslt-sablot

Description:
------------
Configure works just fine, but make seems to find a parse error in the
distributed php Sablotron libs.



Here's my configure line:



./configure \

--with-iconv=/usr/local \

--with-expat=/usr/local \

--with-mysql \

--with-openssl \

--with-apxs=/usr/local/apache/bin/apxs \

--with-config-file-path=/usr/local/apache/conf \

--with-zlib \

--with-ldap \

--with-dom \

--with-xml \

--with-pear \

--with-t1lib \

--with-freetype-dir=/usr \

--disable-debug \

--with-curl \

--with-xmlrpc   \

--enable-xslt \

--with-xslt-sablot=/usr/local



Here's the relevant info from the make:



/bin/sh /raid/people/psystems/download/php-4.3.4/libtool --silent
--preserve-dup-deps --mode=compile gcc  -Iext/xslt/
-I/raid/people/psystems/download/php-4.3.4/ext/xslt/ -DPHP_ATOM_INC
-I/raid/people/psystems/download/php-4.3.4/include
-I/raid/people/psystems/download/php-4.3.4/main
-I/raid/people/psystems/download/php-4.3.4
-I/raid/people/psystems/download/php-4.3.4/Zend -I/usr/local/include
-I/usr/include/libxml2
-I/raid/people/psystems/download/php-4.3.4/ext/xml/expat 
-D_POSIX_PTHREAD_SEMANTICS -I/raid/people/psystems/download/php-4.3.4/TSRM
 -g -O2  -prefer-pic -c
/raid/people/psystems/download/php-4.3.4/ext/xslt/sablot.c -o
ext/xslt/sablot.lo

In file included from
/raid/people/psystems/download/php-4.3.4/ext/xslt/sablot.c:36:

/raid/people/psystems/download/php-4.3.4/include/php_sab_info.h:1:18:
missing terminating " character

In file included from
/raid/people/psystems/download/php-4.3.4/ext/xslt/sablot.c:36:

/raid/people/psystems/download/php-4.3.4/include/php_sab_info.h:2: error:
parse error before ':' token

/raid/people/psystems/download/php-4.3.4/include/php_sab_info.h:3:19:
missing terminating " character

In file included from /usr/include/fcntl.h:24,

                 from
/raid/people/psystems/download/php-4.3.4/ext/xslt/sablot.c:44:

/usr/include/sys/fcntl.h:180: error: parse error before '}' token

*** Error code 1

make: Fatal error: Command failed for target `ext/xslt/sablot.lo'





If i take out the last two options in the configure (--enable-xslt and
--with-xslt-sablot), make and make install work fine.



I've tried the latest stable snapshot, and I've tried the 4.3.4
distribution.  Both exhibit similar behavior.



I've seen some similar errors where users suggest to try and set LDFLAGS
equal to -lstdc++.  This wasn't much help, as I continued to receive
similar errors.



I've also seen errors due to old versions of gcc.  I'm using version
3.3.2.



Thanks,

Matt


-- 
Edit bug report at http://bugs.php.net/?id=27531&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27531&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27531&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27531&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27531&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27531&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27531&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27531&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27531&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27531&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27531&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27531&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27531&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27531&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27531&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27531&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27531&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27531&r=float

Reply via email to