From: [EMAIL PROTECTED]
Operating system: RedHat Linux 7.1 -- Customized
PHP version: 4.1.2
PHP Bug Type: Compile Failure
Bug description: ext/java/Makefile is broken, here is a fix
Contents of /ftp/pub/linux/apache_modules/php.4.1.2.config.run:{
#!/bin/bash
./configure --with-apxs=/usr/sbin/apxs --with-mod_charset
--enable-force-cgi-redirect \
--enable-discard-path --with-java --with-openssl=shared --enable-sigchild
--enable-magic-quotes\
--with-zlib --enable-bcmath=shared --with-bz2 --enable-calendar=shared
--with-gdbm --with-ndbm --with-db2 \
--with-db3 --enable-dbase=shared --enable-dba=shared --enable-dbx=shared
--enable-exif=shared --enable-filepro=shared --enable$
--enable-gd-native-ttf --with-ttf --with-gettext --with-imap
--with-iconv=shared --with-imap-ssl \
--with-ldap=shared --enable-mailparse=shared --enable-mbstring=shared
--with-mysql=/usr --with-unixODBC=shared --with-pgsql=s$
--with-pspell=shared --with-qtdom=shared --with-ncurses=shared
--enable-trans-sid --with-snmp=shared --enable-ucd-snmp-hack \
--enable-sockets --enable-sysvsem --enable-sysvshm --enable-yp
--enable-versioning \
--with-kerberos=shared --with-shared --with-experimental-zts
--enable-shared --with-interbase=shared,/opt/interbase
}
Contents of fixed file (ext/java/Makefile):{
# from @php.4.1.2.tar.gz >unzip>tar>/ext/java
# By @Dexter of Cancer Software a.k.a. Radu - Eosif Mihailescu
# Added "-d." to "javac" line below to make it build under RedHat & Kaffe
# Some ppl were lame enough not to able to write a ".java.class:" line
:-D
# Also, the configure script forgot to add the "-L/usr/kerberos/lib" line
as well ...
top_srcdir = /home/ftp/pub/i386-linux/apache_modules/php-4.1.2
top_builddir = /home/ftp/pub/i386-linux/apache_modules/php-4.1.2
srcdir = /home/ftp/pub/i386-linux/apache_modules/php-4.1.2/ext/java
builddir = /home/ftp/pub/i386-linux/apache_modules/php-4.1.2/ext/java
VPATH = /home/ftp/pub/i386-linux/apache_modules/php-4.1.2/ext/java
LTLIBRARY_SHARED_NAME = libphp_java.la
LTLIBRARY_SOURCES = java.c
LTLIBRARY_DEPENDENCIES = php_java.jar
LTLIBRARY_LDFLAGS = $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)
-L/usr/kerberos/lib
LTLIBRARY_SHARED_LIBADD = $(LTLIBRARY_DEPENDENCIES) $(EXTRA_LIBS)
EXTRA_CFLAGS = $(JAVA_CFLAGS)
EXTRA_INCLUDES = $(JAVA_INCLUDE)
make_shared = yes
include $(top_srcdir)/build/dynlib.mk
php_java.jar : reflect.java
$(mkinstalldirs) net/php
@cp $(srcdir)/reflect.java net/php
@echo library=php_java>net/php/reflect.properties
javac -d. net/php/reflect.java # bug in author of Makefile!
@test ! -f reflect.class || mv reflect.class net/php # bug in KJC
javac
$(JAVA_JAR) php_java.jar net/php/*.class net/php/*.properties
@rm net/php/reflect.*
@rmdir net/php
@rmdir net
}
Other details:{
Using Kaffe as JavaVM
}
Contact:{
<[EMAIL PROTECTED]> ; ICQ: 27762040
}
Regards,
Dexter
--
Edit bug report at http://bugs.php.net/?id=17285&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17285&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17285&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17285&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17285&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17285&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17285&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17285&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17285&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17285&r=globals