Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65693 - php-cgi emerge fails while checking sablotron version
Summary: php-cgi emerge fails while checking sablotron version
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 74265 98811 (view as bug list)
Depends on: 74589
Blocks:
  Show dependency tree
 
Reported: 2004-09-28 08:49 UTC by Timo Gurr (RETIRED)
Modified: 2005-07-13 12:51 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
last lines from config.log from php (php.log,1.60 KB, text/plain)
2004-10-05 09:10 UTC, Roman Pertl
Details
config.log from php (config.log,112.92 KB, text/plain)
2004-10-06 02:53 UTC, Roman Pertl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Timo Gurr (RETIRED) gentoo-dev 2004-09-28 08:49:51 UTC
app-text/sablotron is installed but the configure process of php-cgi complains about it missing after checking the version of sablotron.

Reproducible: Always
Steps to Reproduce:
1.mlsrv ~ # emerge -s sablotron
Searching...
[ Results for search key : sablotron ]
[ Applications found : 1 ]

*  app-text/sablotron
      Latest version available: 1.0.1
      Latest version installed: 1.0.1
      Size of downloaded files: 474 kB
      Homepage:    http://www.gingerall.com/charlie-bin/get/webGA/act/sablotron.act
      Description: An XSLT Parser in C++
      License:     MPL-1.1


mlsrv ~ #

2.emerge php-cgi
3.

Actual Results:  
checking for memcpy... (cached) yes
checking for memmove... (cached) yes
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... configure: error: Sablotron version 0.96 or
greater required.

!!! ERROR: dev-php/php-cgi-4.3.9 failed.
!!! Function econf, Line 441, Exitcode 1
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.

mlsrv ~ # 

Expected Results:  
php-cgi should emerge without errors
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-09-29 11:44:00 UTC
attach the config.log from php's build directory.
i'm willing to bet that you need to run revdep-rebuild (and/or re-merge some libraries).
Comment 2 Roman Pertl 2004-10-04 07:05:47 UTC
same problem here, emerging php-cgi without java and xml2 use-flags resolved the problem for me
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-04 13:44:40 UTC
Roman: You need to run revdep-rebuild, your libraries are not consistant.
Comment 4 Roman Pertl 2004-10-05 04:16:49 UTC
I've already run revdep-rebuild. It detected ethereal (was build with gtk, but gtk is not installed anymore) and blackdown-jdk. I also rebuild sablotron. After I read your advice I ran revdep-rebuild again and it finds blackdown-jdk again and agin because of missing Xfree it seems to me. Problem is still there.




Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-05 05:43:36 UTC
sounds like it isn't picking up sabltotron.
wipe the revdep-rebuild cache ~/.revdep* and try it again.
also, attach your PHP config.log
Comment 6 Roman Pertl 2004-10-05 09:10:21 UTC
Created attachment 41149 [details]
last lines from config.log from php
Comment 7 Roman Pertl 2004-10-05 09:11:17 UTC
deleted .revdep*, no change
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-05 14:07:57 UTC
please attach the entire config.log, not just the end of it.
Comment 9 Timo Gurr (RETIRED) gentoo-dev 2004-10-05 15:24:14 UTC
"and it finds blackdown-jdk again and again" exactly the same problem here.
I'll try to attach the config.log as soon as possibly, too.
Comment 10 Roman Pertl 2004-10-06 02:53:42 UTC
Created attachment 41211 [details]
config.log from php
Comment 11 Roman Pertl 2004-10-06 02:57:17 UTC
sorry, but I am new to bugreporting, so I didn't know you need the whole config.log. One thing that could be related but I don't think so:
I had Xfree and Gnome installed some time ago on this computer, but then I transfered it to a server and unmerged xfree and all gnome-packages. Maybe this helps you.
Comment 12 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-10-06 04:14:25 UTC
look in /usr/include/sablot.h and provide the value of SAB_VERSION.
If it evaluates to more than 0.96, check the consistancy of EACH library listed in the linking list for the final gcc command that failed.

Roman:
Did you re-merge EVERYTHING that linked against gnome and X libs after you removed them? revdep-rebuild should catch 99.99% of them, but it's been known to miss one or two before.
Comment 13 Roman Pertl 2004-10-10 13:40:03 UTC
I'm pretty sure that I've rebuild all libs, because this gentoo-install was a server, then I wanted to turn it into a workstation, but then I changed my mind again. After unmerging X and gnome, I've successfull cumpliled php-cgi-4.3.8, but now that doesn't work anymore too.

But now I'm running php 5.0.2 and AFAIK sablotron is not needed anymore with PHP5.

BTW: /usr/include/sablot.h:
/* version info */
#define SAB_VERSION "1.0"
#define SAB_DATE "August 8, 2003"

I've also looked down into the problem: It seems to be related to java.

Output from revdep-rebuild:
  broken /usr/X11R6/lib/X11/xkb/xkbcomp (requires libXext.so.6 libX11.so.6)
  broken /opt/blackdown-jdk-1.4.1/jre/lib/i386/libjavaplugin_jni.so (requires libawt.so libXt.so.6 libX11.so.6)
  broken /opt/blackdown-jdk-1.4.1/jre/lib/i386/libjawt.so (requires libawt.so libjava.so libjvm.so)
  broken /opt/blackdown-jdk-1.4.1/jre/lib/i386/libfontmanager.so (requires libawt.so libjava.so libjvm.so)
  broken /opt/blackdown-jdk-1.4.1/jre/lib/i386/awt_robot (requires libXt.so.6 libSM.so.6 libICE.so.6 libXext.so.6 libXtst.so.6 libX11.so.6)
  broken /opt/blackdown-jdk-1.4.1/jre/lib/i386/libawt.so (requires libmlib_image.so libjvm.so libXp.so.6 libXt.so.6 libSM.so.6 libICE.so.6 libXext.so.6 libXtst.so.6 libX11.so.6 libjava.so)
  broken /opt/blackdown-jdk-1.4.1/jre/plugin/i386/netscape4/javaplugin.so (requires libXt.so.6 libX11.so.6)
  broken /opt/blackdown-jdk-1.4.1/jre/plugin/i386/mozilla/javaplugin_oji.so (requires libxpcom.so libXt.so.6 libX11.so.6)
 done.

The last line of the config.log said that the comand failed:
gcc -o test.out -march=athlon -O3 -pipe -funroll-loops  -I/usr/include  -ltiff -L/usr/lib -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.1/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.1/jre/lib/i386 -L/opt/blackdown-jdk-1.4.1/jre/lib/i386 conftest.c -lexpat -lpspell -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lmhash -lmcrypt -lltdl -ljava -lcrypt -lpam -lexslt -lxml2 -lxslt -lz -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl  -lxmlparse -lxmltok -lxml2 -lz -lm

Then:
./test.out
./test.out: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory

Using the above comand without "-ljava" returns no error when executing ./test.out.
Comment 14 Steffen Weber 2004-10-20 04:05:34 UTC
USE="-java" emerge php-cgi indeed works! :)
Comment 15 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-11-28 14:53:13 UTC
emerge your blackdown-jdk again, then re-select it with java-config, then source /etc/profile and try to emerge php-cgi again.
Comment 16 Marc Richter 2004-12-13 12:22:13 UTC
*** Bug 74265 has been marked as a duplicate of this bug. ***
Comment 17 Heinrich Nirschl 2004-12-16 09:11:58 UTC
I have the same problem with dev-php/php-cgi-4.3.10. I have dev-java/sun-jdk-1.4.2.06 installed.
Comment 18 Lindsay Haisley 2004-12-17 15:43:32 UTC
Same problem here.  The failing command:

gcc -o conftest -O2 -mcpu=pentium4 -march=pentium4 -fprefetch-loop-arrays -pipe  -L/usr/lib  -L/usr/X11R6/lib -ltiff -L/usr/lib -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads -Wl,-rpath,/opt/blackdown-jdk-1.4.2.01/jre/lib/i386 -L/opt/blackdown-jdk-1.4.2.01/jre/lib/i386 conftest.c -lpspell -lpdf -lz -ltiff -lpng -ljpeg -lmysqlclient -lming -lm -lmhash -lmcrypt -lltdl -ljava -lcrypt -lpam -lexslt -lxml2 -lxslt -lz -ldb-4.0 -ldb-4.0 -lndbm -lgdbm -lcurl -lcrack -lbz2 -lz -lssl -lcrypto -lresolv -lm -lnsl  -lxmlparse -lxmltok -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lnetsnmp -lcrypto -lelf -lm 1>&5
./conftest: error while loading shared libraries: libjvm.so: cannot open shared object file: No such file or directory

I note that there is a libjvm.so in the spec'd library search dir /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/server, however it's not explicitly invoked referenced in this gcc invocation, so it must be a secondary reference or dependency.
vishnu:~$ locate libjava.so
/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/libjava.so
/opt/blackdown-jdk-1.4.1/jre/lib/i386/libjava.so
vishnu:~$ ldd /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/libjava.so
        linux-gate.so.1 =>  (0xffffe000)
        libjvm.so => not found
        libverify.so => /opt/blackdown-jdk-1.4.2.01/jre/lib/i386/libverify.so (0x4003e000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x40050000)
        libdl.so.2 => /lib/libdl.so.2 (0x40065000)
        libc.so.6 => /lib/libc.so.6 (0x40069000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
        libjvm.so => not found

So there are issues with libjava.so.  I've re-emerged blackdown-jdk and run 
java-config -S blackdown-jdk; /usr/sbin/env-update && source /etc/profile but I still get the same missing lib.  Looks like there may be a symlink missing somewhere.

Comment 19 Surakshan Mendis 2004-12-17 15:49:18 UTC
Same with:
with dev-php/php-cgi-4.3.10. I have dev-java/sun-jdk-1.4.2.06 installed.

gets passed the sablotron check with USE="-java"

I've unmerged sun-jdk-1.4.2.06 and re merged it.
I've then set it again using java-config and done a env-update and sourced the profile to no avail.

repdev-rebuild only wanted to kdeartwork, and ximian-openoffice

Ideas whats with the check, or java?
Comment 20 Lindsay Haisley 2004-12-17 16:02:27 UTC
ld.so.cache apparently doesn't reference a directory containing libjvm.so.  I assume this should be generated from /etc/ld.so.conf, which is created by env-update.  Looking in /etc/env.d/20java I see:

LDPATH="/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/:/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/native_threads/:/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/classic/"

Which doesn't reference such a directory either.  /etc/env.d/20java is generated by java-config.  Where does this lead us ??
Comment 21 Lindsay Haisley 2004-12-17 16:08:45 UTC
Also, note that, in /etc/env.d/20java, the referenced path element in LDPATH "/opt/blackdown-jdk-1.4.2.01/jre/lib/i386/classic/" doesn't exist.
Comment 22 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-12-17 17:04:21 UTC
did nobody here read the bug I put in the bugzilla depend for this?
It has the solution for the JDK problem.
A similar fix may be needed for sun-jdk.
Comment 23 Lindsay Haisley 2004-12-17 17:14:36 UTC
No, nobody did, which includes me.  Why don't you reference the bug # or URL for this here.
Comment 24 Lindsay Haisley 2004-12-17 17:37:15 UTC
Robin, you left out a "$" in your patch.

+ADDLDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/classic/:{JAVA_HOME}/jre/lib/@PLATFORM@/server/"

Should be ....

+ADDLDPATH="${JAVA_HOME}/jre/lib/@PLATFORM@/:${JAVA_HOME}/jre/lib/@PLATFORM@/native_threads/:${JAVA_HOME}/jre/lib/@PLATFORM@/classic/:${JAVA_HOME}/jre/lib/@PLATFORM@/server/"
Comment 25 Lindsay Haisley 2004-12-17 21:55:30 UTC
So the fix for this bug, until it gets incorporated into stable, is as follows:

1) Apply Robin's patch (bug #74589) noting my small addendum, to /usr/portage/dev-java/blackdown-jdk/files/blackdown-jdk-1.4.2.01

2) # emerge blackdown-jdk

3) # java-config --set-system-vm=blackdown-jdk

4) # env-update && source /etc/profile

5) # emerge php-cgi

Java support should now be built into php-cgi with no errors.
Comment 26 Sebastian Bergmann (RETIRED) gentoo-dev 2005-05-06 02:29:38 UTC
Reading the comments I assume this issue to be fixed.

Please reopen if the problem persists with PHP 4.3.11.
Comment 27 Heinrich Nirschl 2005-05-06 22:24:57 UTC
Hmm, there is still the same problem with sun-jdk:

checking for memmove... (cached) yes
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... configure: error: Sablotron version 0.96 or greater required.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/php-cgi-4.3.11/work/php-4.3.11/config.log

!!! ERROR: dev-php/php-cgi-4.3.11 failed.
!!! Function econf, Line 485, Exitcode 0

Versions:
[ebuild   Rf  ] dev-java/sun-jdk-1.4.2.08
[ebuild   R   ] dev-php/php-cgi-4.3.11

Comment 28 Jakub Moc (RETIRED) gentoo-dev 2005-07-13 02:43:22 UTC
*** Bug 98853 has been marked as a duplicate of this bug. ***
Comment 29 Jakub Moc (RETIRED) gentoo-dev 2005-07-13 02:44:01 UTC
This is still/again broken with 4.4.0, reopening.
Comment 30 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 06:58:23 UTC
USE="java" emerge php-cgi gives me working CLI and CGI binaries with Java and
Sablotron support for PHP 4.3.11 and PHP 4.4.0.
Comment 31 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 06:58:46 UTC
*** Bug 98811 has been marked as a duplicate of this bug. ***
Comment 32 Heinrich Nirschl 2005-07-13 08:45:15 UTC
(In reply to comment #30)
> USE="java" emerge php-cgi gives me working CLI and CGI binaries with Java and
> Sablotron support for PHP 4.3.11 and PHP 4.4.0.

I guess, it only fails with the sun-jdk, did you try with that?
Comment 33 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 08:50:22 UTC
No, I tried with the blackdown-jvm.
Comment 34 Gustavo Zacarias (RETIRED) gentoo-dev 2005-07-13 08:51:34 UTC
FYI it fails with blackdown on sparc (and there's no other JVM).
Comment 35 Heinrich Nirschl 2005-07-13 09:35:07 UTC
(In reply to comment #33)
> No, I tried with the blackdown-jvm.

I don't think this issue is resolved. The bug should be reopened.
Comment 36 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 09:40:14 UTC
The original bug report was about "USE=java emerge php-cgi does not work with
blackdown-jdk on x86". I cannot reproduce that and thus closed this bug.

Now if you have problems like "USE=java emerge php-cgi does not work with
blackdown-jdk on sparc" or "USE=java emerge php-cgi does not work with sun-jdk
on x86", please open a new bug report for these issues. Thank you.
Comment 37 Heinrich Nirschl 2005-07-13 09:47:22 UTC
Ok, I reopened Bug 98853. Thanks.
Comment 38 Thom Mason 2005-07-13 11:48:24 UTC
This is not just a java related problem. I can switch it on and off by changing the xml2 USE flag (at least for php and modphp ebuilds).  Using -xml2 I now have working php-4.4.0
Comment 39 Sebastian Bergmann (RETIRED) gentoo-dev 2005-07-13 12:51:35 UTC
PHP 4.3.11, 4.4.0, 5.0.4, and 5.1.0 Beta 3 build fine for me on x86 with both
-xml2 and +xml2.