Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15816 - Emerging PHP 4.3.x fails to configure with java
Summary: Emerging PHP 4.3.x fails to configure with java
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 15936 15988 16004 16058 16083 16234 16289 16309 16407 16433 16458 17136 17815 17904 17939 18082 18202 18985 19389 19781 21999 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-02-16 19:34 UTC by Peter Colijn
Modified: 2004-01-13 15:14 UTC (History)
21 users (show)

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


Attachments
config.log file from ebuild process (config.log,64.90 KB, text/plain)
2003-02-16 19:36 UTC, Peter Colijn
Details
diff to resolve php build with java support enabled (diff,618 bytes, patch)
2003-02-27 13:12 UTC, John De Ryckere
Details | Diff
diff to resolve php build with java support enabled (diff,618 bytes, patch)
2003-02-27 13:12 UTC, John De Ryckere
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Colijn 2003-02-16 19:34:40 UTC
I just did an emerge rsync today (16/02/2003) and then an emerge -u world. This
brought in php-4.3.0-r4 (I'm currently using 4.3.0-r3). During the configure
stage of the install, I get the following error:

checking for fork... no
configure: error: pcntl: fork() not supported by this platform

See attachment for config.log file.

Reproducible: Always
Steps to Reproduce:
1. emerge rsync, as of 15/02/2003
2. emerge php (on a system with ACCEPT_KEYWORDS="~x86")

Actual Results:  
The emerge process failed with an error about fork() being unsupported.

Expected Results:  
The emerge process should have succeeded, resulting in a new version of PHP
being installed.

My USE settings:
X gtk2 xft2 freetype smooth dvd apache2 -kde -qt -qtmt -arts -cups

I am also have
ACCEPT_KEYWORDS="~x86"

in my /etc/make.conf file.
Comment 1 Peter Colijn 2003-02-16 19:36:23 UTC
Created attachment 8345 [details]
config.log file from ebuild process
Comment 2 SpanKY gentoo-dev 2003-02-19 09:01:19 UTC
*** Bug 15988 has been marked as a duplicate of this bug. ***
Comment 3 SpanKY gentoo-dev 2003-02-19 12:56:10 UTC
*** Bug 16004 has been marked as a duplicate of this bug. ***
Comment 4 Martin Holzer (RETIRED) gentoo-dev 2003-02-19 15:38:36 UTC
same with 4.3.1
Comment 5 SpanKY gentoo-dev 2003-02-20 03:31:43 UTC
*** Bug 16058 has been marked as a duplicate of this bug. ***
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-02-20 12:09:50 UTC
*** Bug 16083 has been marked as a duplicate of this bug. ***
Comment 7 Guy 2003-02-21 06:29:29 UTC
The problem is that when you do an 'emerge -pu world' and you're using blackdown-jdk, the new blackdown-jdk emerge is broken.

php has java as a dependency so the emerge php won't go through to completion.

The new blackdown-jdk emerge is _NOT_ updating the java envirnonmental variables.

The broken blackdown-jdk ebuild is:

blackdown-jdk-1.4.1.ebuild

=====================================================================================

checking for hwapi support... no
checking for Hyperwave support... no
checking for iconv support... no
checking for IMAP support... no
checking for Informix support... no
checking for Ingres II support... no
checking for InterBase support... no
checking for IRCG support... no
checking for Java support... yes
checking Java Jar location... configure: error: Unable to locate /opt/blackdown-jdk-1.4.1_beta/bin

!!! ERROR: dev-php/php-4.3.1 failed.
!!! Function src_compile, Line 183, Exitcode 1
!!! bad ./configure

dragon kde #

dragon root # env
MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man:/usr/X11R6/man:/opt/blackdown-jdk-1.4.1_beta/man
INFODIR=/usr/share/info:/usr/X11R6/info
HOSTNAME=dragon.lamasondufeu.com
SHELL=/bin/bash
TERM=xterm
QTDIR=/usr/qt/3
MOZILLA_FIVE_HOME=/usr/lib/mozilla
FRACTDIR=/usr/share/xfractint
USER=root
KDEDIR=/usr/kde/3.1
CONFIG_PROTECT_MASK=/etc/gconf
PAGER=/usr/bin/less
XINITRC=/etc/X11/xinit/xinitrc
MAIL=/var/spool/mail/root
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.2:/opt/ati/bin:/opt/Acrobat5:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1_beta/bin:/opt/blackdown-jdk-1.4.1_beta/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/usr/qt/2/bin
INPUTRC=/etc/inputrc
PWD=/root
JAVA_HOME=/opt/blackdown-jdk-1.4.1_beta
JAVAC=/opt/blackdown-jdk-1.4.1_beta/bin/javac
EDITOR=/bin/nano
KDEDIRS=/usr
QMAKESPEC=linux-g++
PS1=\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]
CXX=g++
JDK_HOME=/opt/blackdown-jdk-1.4.1_beta
SHLVL=1
HOME=/root
LESS=-R
LOGNAME=root
CVS_RSH=ssh
CLASSPATH=/opt/blackdown-jdk-1.4.1_beta/jre/lib/rt.jar:.
LESSOPEN=|lesspipe.sh %s
VIMRUNTIME=/usr/share/vim/vim61
INFOPATH=/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info
CC=gcc
DISPLAY=:0
CONFIG_PROTECT=/usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config
_=/usr/bin/env
dragon root # emerge -p blackdown-jdk

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] dev-java/blackdown-jdk-1.4.1       <==================== NOTE!!!!!!!!!!!!!!

dragon root #

Comment 8 Tom P. 2003-02-21 08:45:07 UTC
I don't use "~x86" , have blackdown 1.3.1-r7 and still get related error.  See bug 15936
Comment 9 Guy 2003-02-21 11:09:50 UTC
Regarding comment #8

Definite point.

[sigh]

Looks like multiple problems. I just haven't run into the 'fork' problem (yet).

;-)

[/sigh]
Comment 10 Tom P. 2003-02-22 00:11:14 UTC
I found some strange results searching for this bug.  Hope this will give someone some
ideas.

I captured the ouput of the ebuild for php-4.3.1 and php-4.3.0-r3.  r3 builds fine and
4.3.1 doesn't on the same machine.  There are very few differences in the builds so this
should narrow it down some.  The only thing that could contribute is I recently unmerged
and emerged blackdown-jdk,jre (mozilla probs).  These  1.3.1-r7 ebuilds have some kind of problem
 -see bug 15936.  Could this ebuild or maybe another messed up some env includes or something
to cause the following?

The problem isn't with fcntl - just because the build fails there.  Look at the
following diff of the ebuilt output.  Why does 4.3.1's configure come up with 'size
of char = 0'!!!!!!!!!!  Also long long,ulong,uint,ushort are bogus???  No wonder the build
fails during the fcntl check.

===================================================================================
# diff '/var/tmp/portage/4.3.0-r3.txt'  '/var/tmp/portage/4.3.1.txt'
1c1
< >>> Checking php-4.3.0.tar.bz2's mtime...
---
> >>> Checking php-4.3.1.tar.bz2's mtime...
17a18
> java
322c323,326
< checking for Java support... no
---
> checking for Java support... yes
> checking Java Jar location... /opt/blackdown-jdk-1.3.1/bin/jar cf
> checking Java C location... /opt/blackdown-jdk-1.3.1/bin/javac
> checking Checking for libjava... /opt/blackdown-jdk-1.3.1/jre/lib/i386
339c343
< checking size of char... 1
---
> checking size of char... 0
342c346
< checking size of long long... 8
---
> checking size of long long... 0
346c350
< checking for type ulong... yes
---
> checking for type ulong... no
348,349c352,353
< checking for type uint... yes
< checking for type ushort... yes
---
> checking for type uint... no
> checking for type ushort... no
=======================================================================================
next is where fcntl fails and the build stops
Comment 11 Wayne Davison 2003-02-22 06:36:48 UTC
Same problem here.  The config.log reveals that the problem is the failing of
the link of the fork-checking program.  All the missing symbols are in the
libhpi.so library in /opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads.
I kludged around this by adding this line into the ebuild file right before
the ./configure line:

export LIBS="-L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -lhpi $LIBS"

The build is still running on my system, though, so we'll see how things go.
It seems to me that there must be a better fix than the above kludge.
Comment 12 Tom P. 2003-02-22 10:59:00 UTC
Some help to narrow more.maybe.

I untared php-3.2.1 and run multiple  ./configure with various options.  Any run with --with-java=/opt/blackdown-jdk-1.3.1 as passed by the ebuild will result in char len 0.  Any run without it char len =1.  The configure will continue in any case except with --enable-pcntl which seems to flag the problem by failing during the configure stage.  Without pcntl make will fail similar to this:

gcc -I/usr/portage/distfiles/php-4.3.1/ext/mysql/libmysql -Iext/mysql/ -I/usr/portage/distfiles/php-4.3.1/ext/mysql/ -DPHP_ATOM_INC -I/usr/portage/distfiles/php-4.3.1/include -I/usr/portage/distfiles/php-4.3.1/main -I/usr/portage/distfiles/php-4.3.1 -I/usr/portage/distfiles/php-4.3.1/Zend -I/usr/portage/distfiles/php-4.3.1/ext/xml/expat  -I/usr/portage/distfiles/php-4.3.1/TSRM  -g -O2  -c /usr/portage/distfiles/php-4.3.1/ext/mysql/libmysql/libmysql.c -o ext/mysql/libmysql/libmysql.o  && echo > ext/mysql/libmysql/libmysql.lo
In file included from /usr/portage/distfiles/php-4.3.1/ext/mysql/libmysql/libmysql.c:4:
/usr/portage/distfiles/php-4.3.1/ext/mysql/libmysql/global.h:260: warning: redefinition of `uint'
/usr/include/sys/types.h:152: warning: `uint' previously declared here
/usr/portage/distfiles/php-4.3.1/ext/mysql/libmysql/global.h:261: warning: redefinition of `ushort'
/usr/include/sys/types.h:151: warning: `ushort' previously declared here
In file included from /usr/portage/distfiles/php-4.3.1/ext/mysql/libmysql/libmysql.c:11:
Comment 13 Martin Holzer (RETIRED) gentoo-dev 2003-02-23 14:35:08 UTC
*** Bug 16234 has been marked as a duplicate of this bug. ***
Comment 14 Aaron Stone 2003-02-23 15:18:47 UTC
My bug, 16234, just got marked as a dupe of this bug. Because I posted a lot of
information in my bug, a) please read it while figuring this one out and b) notice
that -lreadline needs -lncurses in the link line or else it will have unresolved
symbols (this is the cause of two more bugs later on in the configure sequence).

I also read anecdotally on the PHP bugzilla that this might be fixed in their CVS
tree already. Someone might want to see if they've updated their configure script
in CVS and just patch it into the 4.3.1 ebuild process...
Comment 15 Aaron Stone 2003-02-23 17:21:55 UTC
Isn't this a kicker? Probably supports the everything is all f-up theory, since
it looks like the script knows that -lreadline needs the tgetent, and is looking
for it in both -lncurses and -ltermcap, but not finding it...

checking for readline support... yes
checking for tgetent in -lncurses... no
checking for tgetent in -ltermcap... no
checking for readline in -lreadline -lncurses... yes

(I applied my patch to force -lreadline to include -lncurses,
as seen in the last line there)
Comment 16 Martin Holzer (RETIRED) gentoo-dev 2003-02-24 13:00:20 UTC
*** Bug 16289 has been marked as a duplicate of this bug. ***
Comment 17 Martin Holzer (RETIRED) gentoo-dev 2003-02-24 15:34:36 UTC
*** Bug 16309 has been marked as a duplicate of this bug. ***
Comment 18 Ryan Phillips (RETIRED) gentoo-dev 2003-02-24 15:58:20 UTC
*** Bug 15936 has been marked as a duplicate of this bug. ***
Comment 19 Ryan Phillips (RETIRED) gentoo-dev 2003-02-24 16:51:19 UTC
I checked out the current CVS and build the configure... there is another bug in this version.
Comment 20 Ryan Phillips (RETIRED) gentoo-dev 2003-02-24 16:57:13 UTC
built*
Comment 21 Martin Holzer (RETIRED) gentoo-dev 2003-02-26 14:42:10 UTC
*** Bug 16407 has been marked as a duplicate of this bug. ***
Comment 22 SpanKY gentoo-dev 2003-02-26 20:52:36 UTC
*** Bug 16433 has been marked as a duplicate of this bug. ***
Comment 23 SpanKY gentoo-dev 2003-02-27 05:10:07 UTC
*** Bug 16458 has been marked as a duplicate of this bug. ***
Comment 24 Rodney Amato 2003-02-27 06:04:06 UTC
For anyone looking for a quick and easy work around until a more permanent solution is found so you can do an update world without having it die on php every time you can try the following command which works for me

env USE="-java" emerge --update dev-php/php 

Comment 25 John De Ryckere 2003-02-27 13:12:03 UTC
Created attachment 8782 [details, diff]
diff to resolve php build with java support enabled

I've made this modification locally and php compiles and installs fine.
Briefly, the existing ebuild tries to force the home of java to $JDK_HOME, on
gentoo env-update does not set this variable in /etc/profile.env. $JAVA_HOME is
this location so I modified the ebuild script to reference this instead. It may
be more correct to append JDK_HOME to /etc/profiles.env if it's a variable that
is normally set as part of the java development environment.
Comment 26 John De Ryckere 2003-02-27 13:12:26 UTC
Created attachment 8783 [details, diff]
diff to resolve php build with java support enabled

I've made this modification locally and php compiles and installs fine.
Briefly, the existing ebuild tries to force the home of java to $JDK_HOME, on
gentoo env-update does not set this variable in /etc/profile.env. $JAVA_HOME is
this location so I modified the ebuild script to reference this instead. It may
be more correct to append JDK_HOME to /etc/profiles.env if it's a variable that
is normally set as part of the java development environment.
Comment 27 SpanKY gentoo-dev 2003-03-03 04:38:17 UTC
ok, added your patch the php ebuilds, enjoy ;)
Comment 28 Aaron Stone 2003-03-03 10:55:27 UTC
Did anybody bother to notice how many other bugs were marked as 
duplicates of this one, but had absolutely nothing to do with Java!?
For example, my bug was about readline and ncurses. Now I'll check
and see if this Java patch fixes those, since it is the resolution,
per se, but better watch out or this one's getting re-opened :-P
Comment 29 SpanKY gentoo-dev 2003-03-03 12:45:15 UTC
actually, i'd bet money that every single bug (except yours :D) was this bug
Comment 30 Aaron Stone 2003-03-03 14:09:53 UTC
Well wouldn't ya know, it *IS* Java related!
Here, check this out from config.log:

configure:40511: checking for ldap_parse_reference
configure:40539: distcc gcc -o conftest -O2 -mcpu=i686 -pipe   -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/blackdown-jdk-1.3.1/
jre/lib/i386/classic -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/server -L/opt/blackdown-
jdk-1.3.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_t
hreads -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386 -L/opt/blackdown-jdk-1.3.1/jre/lib/i386 conftest.c -lldap -llber -lt1 -lttf -lX11 -lXp
m -lpng -lz -ljpeg -lz -ldb -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcrypt -lxml2 -lz -lm 1>&5
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_post'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_waitpid'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_pthread_sigmask'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `fork1'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_wait'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 40516 "configure"


configure:40511: checking for ldap_start_tls_s
configure:40539: distcc gcc -o conftest -O2 -mcpu=i686 -pipe   -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/blackdown-jdk-1.3.1/
jre/lib/i386/classic -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/server -L/opt/blackdown-
jdk-1.3.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_t
hreads -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386 -L/opt/blackdown-jdk-1.3.1/jre/lib/i386 conftest.c -lldap -llber -lt1 -lttf -lX11 -lXp
m -lpng -lz -ljpeg -lz -ldb -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcrypt -lxml2 -lz -lm 1>&5
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_post'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_waitpid'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_pthread_sigmask'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `fork1'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_wait'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 40516 "configure"
#include "confdefs.h"


configure:47097: checking size of char
configure:47116: distcc gcc -o conftest -O2 -mcpu=i686 -pipe   -Wl,-rpath,/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-rpath,/opt/blackdown-jdk-1.3.1/
jre/lib/i386/classic -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/classic -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/server -L/opt/blackdown-
jdk-1.3.1/jre/lib/i386/server -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_threads -L/opt/blackdown-jdk-1.3.1/jre/lib/i386/native_t
hreads -Wl,-rpath,/opt/blackdown-jdk-1.3.1/jre/lib/i386 -L/opt/blackdown-jdk-1.3.1/jre/lib/i386 conftest.c -lmhash -lldap -llber -lt1 -lttf -l
X11 -lXpm -lpng -lz -ljpeg -lz -ldb -lgdbm -lbz2 -lz -lcrypt -lssl -lcrypto -lresolv -lm -ldl -lnsl  -lcrypt -lxml2 -lz -lm 1>&5
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_post'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_waitpid'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_pthread_sigmask'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `fork1'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_wait'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_init'
collect2: ld returned 1 exit status
configure: failed program was:
#line 47105 "configure"
Comment 31 SpanKY gentoo-dev 2003-03-03 17:19:51 UTC
*** Bug 16234 has been marked as a duplicate of this bug. ***
Comment 32 SpanKY gentoo-dev 2003-03-09 10:07:06 UTC
still seems to need tweaking ...
Comment 33 SpanKY gentoo-dev 2003-03-09 10:07:30 UTC
*** Bug 17136 has been marked as a duplicate of this bug. ***
Comment 34 Martin Holzer (RETIRED) gentoo-dev 2003-03-19 12:30:49 UTC
*** Bug 17815 has been marked as a duplicate of this bug. ***
Comment 35 Martin Holzer (RETIRED) gentoo-dev 2003-03-21 07:23:37 UTC
*** Bug 17904 has been marked as a duplicate of this bug. ***
Comment 36 Martin Holzer (RETIRED) gentoo-dev 2003-03-22 08:31:20 UTC
*** Bug 17939 has been marked as a duplicate of this bug. ***
Comment 37 Martin Holzer (RETIRED) gentoo-dev 2003-03-26 11:04:22 UTC
*** Bug 18202 has been marked as a duplicate of this bug. ***
Comment 38 Arnaud Belarbi 2003-03-26 11:10:37 UTC
I've used :

env USE="-java" emerge --update dev-php/php 


and the install was completed successfully
Comment 39 John Robinson 2003-04-03 00:28:59 UTC
I've just looked at this briefly, but the "Unable to locate /opt/blackdown-jdk-1.4.1/bin" problem was solved for me with an update to php 4.3.1's configure script. Line 37500 reads ``if test "$PHP_JAVA" = "yes"; then''; it should read ``else if test "$PHP_JAVA" = "yes"; then'', since otherwise it is only executed if $PHP_JAVA is already equal to "no", which is obviously bogus. 

Fixing the ebuild to use JAVA_HOME probably avoids this by getting the configure script to go straight to the last else statement in that section (line 37511), which tests -x $PHP_JAVA/bin/jar directly.
Comment 40 Martin Holzer (RETIRED) gentoo-dev 2003-04-07 15:39:40 UTC
*** Bug 18082 has been marked as a duplicate of this bug. ***
Comment 41 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-04-07 15:43:29 UTC
If nobody else has picked this up by wednesday, I'll resolve it then. (That's the 1 day break in my finals).
Comment 42 Martin Holzer (RETIRED) gentoo-dev 2003-04-07 17:41:25 UTC
this has to be fixed before 1.4

feel free to fix it
Comment 43 Fredrik Jagenheim 2003-04-08 11:44:06 UTC
I think the main problem here is that it's several bugs (although java related) that's been slapped together here.

I can only speak of the problem I've seen; namely that ./configure fails when it tries to check for 'Java Jar':
checking Java Jar location...
configure: error: Unable to locate /opt/blackdown-jre-1.3.1/bin

While, obviously the directory '/opt/blackdown-jre-1.3.1/bin' exists:
mystique:fredde:/opt/blackdown-jre-1.3.1/bin>ls
JavaPluginControlPanel*  i386/          java@     [...]

The /problem/ is that the configure, as it actually says, checks for the 'jar' binary here. The 'jar' program is not part of the JRE, but actually a part of JDK:
mystique:fredde:/opt/blackdown-jdk-1.3.1/bin>ls jar
jar@

To fix this, I guess two things needs to be changed:
1) Get the ebuild to use '$JDK_HOME' instead of '$JAVA_HOME'.
2) Get java-config to fill in 'JDK_HOME' in /etc/env.d/20java

Comment 44 Fredrik Jagenheim 2003-04-08 11:58:18 UTC
Heh, never mind my point #2;
'/usr/bin/java-config --set-system-vm=blackdown-jdk-1.3.1' took care of that.

Still, the ebuild should check if JDK_HOME is set, and if it isn't; prompt the user to switch system-vm. :)
Comment 45 Fredrik Jagenheim 2003-04-08 12:32:10 UTC
The next hurdle:

checking for fork... no
configure: error: pcntl: fork() not supported by this platform

(This is the one I reported months ago)

Due to blackdown-jdk can't find a couple of references:
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_sem_post'
/opt/blackdown-jdk-1.3.1/jre/lib/i386/libjava.so: undefined reference to `jdk_waitpid'
[ + a few others ]

Could it be a problem with using gcc3 and old version of blackdown java?

I'm emerging the latest blackdown-jdk now and see if it behaves the same...
Comment 46 Fredrik Jagenheim 2003-04-08 13:29:01 UTC
I can confirm success with blackdown-jdk-1.4.1...

I did notice that 'java' has disappeared from the IUSE variable for the php-ebuild, though. Intentional?
Comment 47 Martin Holzer (RETIRED) gentoo-dev 2003-04-08 13:31:14 UTC
*** Bug 18985 has been marked as a duplicate of this bug. ***
Comment 48 Michael Bloink 2003-04-11 15:50:28 UTC
Using the sun-jdk-1.4.1.02 instead of blackdown fixes this bug for me.
Comment 49 Martin Holzer (RETIRED) gentoo-dev 2003-04-16 05:25:56 UTC
*** Bug 19389 has been marked as a duplicate of this bug. ***
Comment 50 Whit Blauvelt 2003-04-21 20:31:23 UTC
Just got this on a process started this Sunday, on an otherwise up-to-date system (but hadn't 
installed Apache or mod_ssl or php on it before). Is there a current best work-around for this? I 
do _not_ have PHP calling any Java - if Java's buggy how about having PHP without it? My 
impression is people either use one or the other, very rarely both.  
 
It stalled with: 
 
configure: error: pcntl: fork() not supported by this platform 
 
!!! ERROR: dev-php/php-4.3.1 failed. 
!!! Function econf, Line 273, Exitcode 1 
!!! econf failed 
 
And farther up I see: 
checking Java Jar location... /opt/blackdown-jdk-1.3.1/bin/jar cf 
checking Java C location... /opt/blackdown-jdk-1.3.1/bin/javac 
checking Checking for libjava... /opt/blackdown-jdk-1.3.1/jre/lib/i386 
 
Hmm ... where's the switch to disable this? 
 
 
 
 
Comment 51 delta407 2003-04-21 21:01:30 UTC
Quick workaround: add "-java" to your USE variables while emerging php. 
Comment 52 Martin Holzer (RETIRED) gentoo-dev 2003-04-22 13:29:26 UTC
*** Bug 19781 has been marked as a duplicate of this bug. ***
Comment 53 David E.Miller 2003-04-22 16:35:35 UTC
Follow up from duplicate bug# 19781
based on comments in this bug below accomplished:

# emerge blackdown-jdk
# env USE="-java" emerge dev-php/php

php-4.3.1 appears to have been successfully built as a result

php 4.3.1 would not emerge without using the above

Additionally, I had to use:

# env USE="-java" emerge dev-php/mod_php 

in order to get an error free emerge for mod_php-4.3.1








Comment 54 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-05-14 18:55:55 UTC
Fixed in new PHP eclass to be released very soon.
When it is, please test it ASAP.
Comment 55 Martin Holzer (RETIRED) gentoo-dev 2003-05-31 09:39:57 UTC
*** Bug 21999 has been marked as a duplicate of this bug. ***
Comment 56 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2003-09-26 17:05:59 UTC
closing old bugs.
Comment 57 SpanKY gentoo-dev 2004-01-13 11:01:43 UTC
*** Bug 38082 has been marked as a duplicate of this bug. ***
Comment 58 Martin Holzer (RETIRED) gentoo-dev 2004-01-13 15:14:06 UTC
*** Bug 38082 has been marked as a duplicate of this bug. ***