ID: 16519
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: linux redhat 7.2
PHP Version: 4.1.2
New Comment:
I installed the same j2sdk you have, and configured with
this configure line:
# ./configure --with-java=/usr/java/j2sdk1.4.0/
# make
and it worked just fine. (both latest CVS and RC3)
Please try with the same configure line I have (and clean sources)
Previous Comments:
------------------------------------------------------------------------
[2002-04-13 18:04:08] [EMAIL PROTECTED]
Hi,
compiled php-4.2.0RC3 on my local linux box with the same errors.
configure runs well, but make creates the
following output:
Making all in java
make[2]: Wechsel in das Verzeichnis Verzeichnis
�/opt/src/php-4_2_0RC3/ext/java�make[3]: Wechsel in das
Verzeichnis Verzeichnis �/opt/src/php-4_2_0RC3/ext/java�/bin/sh
/opt/src/php-4_2_0RC3/libtool --silent
--mode=compile gcc -I. -I/opt/src/php-4_2_0RC3/ext/java
-I/opt/src/php-4_2_0RC3/main -I/opt/src/php-4_2_0RC3
-I/opt/src/php-4_2_0RC3/Zend -I/opt/src/php-4_2_0RC3/ext/mysql/libmysql
-I/opt/src/php-4_2_0RC3/ext/xml/expat -I/usr/java/j2sdk1.4.0//include
-I/usr/java/j2sdk1.4.0//include/linux
-I/opt/src/php-4_2_0RC3/TSRM -g -O2 -prefer-pic -DJNI_12 -D_REENTRANT
'-DJAVALIB="/usr/java/j2sdk1.4.0//./jre/lib/i386/libjava.so"' -c java.c
&& touch java.slo
/opt/src/php-4_2_0RC3/build/shtool mkdir -p net/php
javac net/php/reflect.java
/usr/bin/jar cf php_java.jar net/php/*.class net/php/*.properties
net/php/*.class: no such file or directory
make[3]: *** [php_java.jar] Fehler 2
make[3]: Verlassen des Verzeichnisses Verzeichnis
�/opt/src/php-4_2_0RC3/ext/java�
make[2]: *** [all-recursive] Fehler 1
make[2]: Verlassen des Verzeichnisses Verzeichnis
�/opt/src/php-4_2_0RC3/ext/java�
make[1]: *** [all-recursive] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis
�/opt/src/php-4_2_0RC3/ext�
make: *** [all-recursive] Fehler 1
this is exactly the same as with php4.1.2. System is a standart
automatically
updated redhat7.2 system. Automatically means, using redhat up2date.
Kernel is .31 at the moment - system is newly installed, all I changed
was removing the php4.0.6 rpms, installing java from current sun rpms
and trying to compile java with the following script:
./configure --with-zlib-dir\
--enable-pcntl \
--sbindir=/opt/sbin \
--bindir=/opt/bin \
--exec-prefix=/opt \
--libexecdir=/opt/libexec \
--datadir=/opt/share \
--libdir=/opt/lib \
--program-suffix=4 \
--with-gd=/usr \
--enable-sigchild \
--with-png-dir=/usr/local \
--with-mysql \
--enable-shmop\
--with-gdbm\
--with-java=/usr/java/j2sdk1.4.0/\
--enable-ftp
Checking showed the same as before:
in ext/java is a subdirectory structure:
net/php/net/php
where it should only be
net/php
the additional directories are created by the makefile in ext/java, or
better by the line
javac net/php/reflect.java
which creates the reflect.class file to net/php/net/php/reflect.class
instead of net/php/reflect.class...
will try on snapshot version tomorrow;)
good night,
flim
------------------------------------------------------------------------
[2002-04-12 18:18:46] [EMAIL PROTECTED]
I can not reproduce this with PHP 4.2.0RC3 or latest CVS.
Please try them: http://www.php.net/~derick/ (for the RC3)
http://snaps.php.net/ (snapshots)
--Jani
------------------------------------------------------------------------
[2002-04-09 16:51:56] [EMAIL PROTECTED]
Hi,
line 25 of the makefile in ext/java causes a folder construction like
net/php/net/php and put the compiled class in that deepest folder. This
causes the compiler to stop as it cannot find the file...and if you
move it manually it can't remove the folders;)
this should solve it though (unless you want to train your users;=))
pushd net/php
javac reflect.java
popd
regards,
flim
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16519&edit=1