From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.0.4pl1
PHP Bug Type:     Compile Failure
Bug description:  Compile fails with java support.  Possibly due to compile script 
error?

Configure was run with the following options.

./configure --with-mysql --enable-inline-optimization --with-ldap=/usr/local 
--disable-debug --enable-track-vars --with-apxs=/usr/sbin/apxs --disable-short-tags 
--prefix=/usr --with-config-file-path=/etc/httpd --enable-safe-mode 
--with-exec-dir=/usr/bin --with-zlib --with-java=/usr/local/java --with-gd 
--with-png-dir --with-jpeg-dir --with-t1lib --enable-freetype-4bit-antialias-hack

The jdk1.2.2 file from java was used and an alias placed from /usr/local/jdk1.2.2 to 
/usr/local/java.  Then make was run and the following error was produced.

--- Begin Compile error ---
/root/httpdserver/php-4.0.4pl1/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] Error 2
make[3]: Leaving directory `/root/httpdserver/php-4.0.4pl1/ext/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/httpdserver/php-4.0.4pl1/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/httpdserver/php-4.0.4pl1/ext'
make: *** [all-recursive] Error 1

--- End Compile error ---

I was able to complete the compile phase through the following steps.
>From the php4.0.4pl1 dir I ran the following commands

cd ./ext/java/net/php/net/php/
cp reflect.class ../../
cd ../../../../../../
make

I then got a second error

--- Begin error ---
rmdir: net/php: Directory not empty
make[3]: *** [php_java.jar] Error 1
--- End error ---

I then ran the following commands.

cd ext/java/net/php/
rm -rf net
cd ../../../../

After rerunning make this time everything worked without a problem.  Hopefully this 
can be fixed in a later release.

Thanks for the kickin piece of software.


-- 
Edit Bug report at: http://bugs.php.net/?id=8705&edit=1



-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to