ID:               27531
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mrowe at pointsystems dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         XSLT related
 Operating System: Solaris 9
 PHP Version:      4.3.4
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

That file should be all in one line, with \n between them, here's mine
with latest CVS snapshot:



#define SAB_INFO "Cflags: -g -O2\nLibs: -L/www/sablot-1.0/lib
-lexpat\nPrefix: /www/sablot-1.0"




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

[2004-03-09 19:29:49] mrowe at pointsystems dot com

there are 4 lines in the file:



first line:



#define SAB_INFO "Cflags: -g -O2 -I/usr/local/include
-I/usr/local/include



second line:



Libs: -L/usr/local/lib -liconv -lexpat



third line:



Prefix: /usr/local"



fourth line is blank, with no whitespace.



thanks,

matt

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

[2004-03-09 19:00:30] [EMAIL PROTECTED]

Was that all in one line? Didn't it have any \n in it?



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

[2004-03-09 12:20:29] mrowe at pointsystems dot com

here is the content of
/raid/people/psystems/download/php-4.3.4/include/php_sab_info.h:





#define SAB_INFO "Cflags: -g -O2 -I/usr/local/include
-I/usr/local/include

Libs: -L/usr/local/lib -liconv -lexpat

Prefix: /usr/local"

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

[2004-03-09 08:39:25] [EMAIL PROTECTED]

Please paste the contents of this file:

/raid/people/psystems/download/php-4.3.4/include/php_sab_info.h



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

[2004-03-08 18:16:14] mrowe at pointsystems dot com

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 this bug report at http://bugs.php.net/?id=27531&edit=1

Reply via email to