php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16519 makefile error
Submitted: 2002-04-09 16:51 UTC Modified: 2002-08-21 01:00 UTC
From: flim at flim dot de Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 4.1.2 OS: linux redhat 7.2
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
15 + 40 = ?
Subscribe to this entry?

 
 [2002-04-09 16:51 UTC] flim at flim dot de
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-12 18:18 UTC] sniper@php.net
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-13 18:04 UTC] flim at flim dot de
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-13 23:21 UTC] sniper@php.net
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)


 [2002-08-21 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 05 09:01:27 2024 UTC