php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31028 Configure thinks my Sablotron 1.0 version is older then version 0.96
Submitted: 2004-12-08 22:14 UTC Modified: 2005-01-15 06:37 UTC
From: meuk at zwaremetalen dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.10RC2 OS: Gentoo Linux
Private report: No CVE-ID: None
 [2004-12-08 22:14 UTC] meuk at zwaremetalen dot com
Description:
------------
When doing a configure I get the following error:

checking for XSLT Sablotron backend... /usr
checking for libexpat dir for Sablotron XSL support... /usr
checking for iconv dir for Sablotron XSL support... no
checking for JavaScript for Sablotron XSL support... no
checking for sablot-config... found
checking for Sablotron version... configure: error: Sablotron version 0.96 or greater required.

My configure statement:
./configure  --with-mysql=/opt/mysql41 --enable-track-vars --disable-debug --with-apache=../apache_1.3.33 --with-openssl=/usr --with-xml --with-ldap --with-ttf --with-gd=/opt/libgd2 --enable-gd-imgstrttf --with-mcrypt=/usr --with-mhash=/usr --enable-ftp --with-dom --with-expat-dir=/usr --with-xslt-sablot=/usr --enable-xslt --with-freetype-dir=/usr --enable-gd-native-ttf --with-curl=/usr --with-zlib --with-zlib-dir=/usr --with-imap=/usr --with-imap-ssl=/usr --with-gettext --with-bz2 --enable-javascript --with-jpeg-dir=/usr --with-png-dir=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --enable-xslt --with-iconv --with-ming=/usr --with-java=/opt/j2sdk1.4.2

But my Sablotron version is 1.0. Check here:
iridium php-4.3.10RC2 # /usr/bin/sablot-config --version
1.0



Expected result:
----------------
I expect configure to accept my sablotron version. 1.0 is greater than 0.96


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-08 22:27 UTC] derick@php.net
Please provide a link to your config.log file so that we can check it.
 [2004-12-09 09:11 UTC] meuk at zwaremetalen dot com
You can find it here:

http://www.hildebrand.tv/php/config.log
 [2004-12-16 13:13 UTC] sniper@php.net
Are you sure you have only one (1) sablotron version installed in your system? What does "/usr/bin/sablot-config --version" output ?

Does this work:

# rm config.cache
# ./configure --disable-all --with-xslt-sablot --enable-xslt


 [2004-12-16 15:00 UTC] meuk at zwaremetalen dot com
I already added that output in my initial post. And I am sure that I have one install of sablotron on my machine. I even tried to install php on another machine (also GentooLinux) and I had the same problem there. 

Installing Sablotron 1.0.1 gives the same problem. 

> Does this work:
> # rm config.cache
> # ./configure --disable-all --with-xslt-sablot --enable-xslt

....
checking whether to enable xslt support... yes
checking for XSLT Sablotron backend... yes
checking for libexpat dir for Sablotron XSL support... no
checking for iconv dir for Sablotron XSL support... no
checking for JavaScript for Sablotron XSL support... no
checking for Sablotron libraries in the default path... found in /usr
checking for sablot-config... found
checking for Sablotron version... >= 0.96
checking for iconv... yes
checking for SablotSetEncoding in -lsablot... yes
checking for SablotGetOptions in -lsablot... yes
....

That seems to work. Strange that it doesn't work if I set the directory where it should find it.
 [2004-12-16 19:43 UTC] meuk at zwaremetalen dot com
Something strange is happening here.

If I do the original configure statement but without the option "--with-jpeg-dir=/usr" it works perfectly. If I add the option  again it gives me the sablot version error.
 [2004-12-21 08:02 UTC] sniper@php.net
Exactly HOW do you install sablotron?

 [2004-12-21 09:00 UTC] meuk at zwaremetalen dot com
I used gentoos packagemanager "emerge" to install Sablotron.

Somehow I have the idea it isn't really a sablotron issue. Maybe it has something to do with the combination of configure parameters. Replacing certain parameters which have nothing to do with Sabloton can result in the Sablot-version-error.

I will do a manual install of sablotron to check if the gentoo packagemanager has done something strange.
 [2004-12-21 09:10 UTC] meuk at zwaremetalen dot com
I've just done a manual install of sablotron. Did the configure again but then with the option --with-xslt-sablot=/opt/sablot and still I get the same error. So it has nothing to do with Gentoo.
 [2004-12-22 05:10 UTC] sniper@php.net
What is the shortest possible configure line with which you can reproduce this?

 [2004-12-22 11:46 UTC] meuk at zwaremetalen dot com
This configure is a lot smaller and throws the error:

./configure  \
--with-apache=../apache_1.3.33 \
--with-gd=/opt/libgd2 \
--with-xslt-sablot=/usr \
--enable-xslt \
--with-jpeg-dir=/usr \
--with-java=/opt/j2sdk1.4.2
 [2005-01-07 17:31 UTC] gentoo at slave dot umbr dot cas dot cz
My problem was in missing libjvm.so. I use blackdown-jre on my Gentoo and I have setup for LDPATH only for /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/{,native_threads,classic}.  But the libjvm.so is in /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/{client,server} directories. And while configuring php-cgi, it links with some library, which requires libjvm.so. And I had a problem that there was neither lib/i386/client nor lib/i386/server in /etc/ld.so.conf. I have updated my system, now I have these paths in ld.so.conf and configure script works.
Problem was while compilation C program to get version of Sabltron (see end of config.log). Try to copy this C program to some file, delete #include "conftest.h" and try to compile using the last gcc command in config.log and than try to run the result of compilation. It should say what library it is missing. I hope it will help.
 [2005-01-14 09:26 UTC] meuk at zwaremetalen dot com
My problem has nothing to do with Java. I can make a configure statement without the option "--with-java=/opt/j2sdk1.4.2" and still get the sablotron error. It is just one part of the few combinations which make the error occur.

Why don't you try my previous configure statement and tell me what results you get?
 [2005-01-15 06:37 UTC] sniper@php.net
Reading comprehension:

"Problem was while compilation C program to get version of 
Sabltron (see end of config.log). Try to copy this C program 
to some file, delete #include "conftest.h" and try to compile 
using the last gcc command in config.log and than try to run 
the result of compilation. It should say what library it is 
missing. I hope it will help."

And FYI: All your configure lines (with fixed paths) work fine on my system(s). Your /etc/ld.so.conf file is propably missing some paths. This still isn't PHP bug.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 02:01:29 2024 UTC