#17285 [Fbk->Csd]: ext/java/Makefile is broken, here is a fix
| From: | kalowsky@php.net | Date: | Mon, 09 Sep 2002 15:29:52 +0000 |
| Subject: | #17285 [Fbk->Csd]: ext/java/Makefile is broken, here is a fix | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-18803@lists.php.net to get a copy of this message | ||
ID: 17285
Updated by: kalowsky@php.net
Reported By: rmihailescu@lumina.ro
-Status: Feedback
+Status: Closed
Bug Type: Java related
Operating System: RedHat Linux 7.1 -- Customized
PHP Version: 4.1.2
New Comment:
Fixed in CVS
Previous Comments:
------------------------------------------------------------------------
[2002-06-17 21:21:29] sniper@php.net
I thought I fixed this already..please try this snapshot:
http://snaps.php.net/php4-latest.tar.gz
------------------------------------------------------------------------
[2002-05-17 05:27:00] rmihailescu@lumina.ro
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:{
<rmihailescu@lumina.ro> ; ICQ: 27762040
}
Regards,
Dexter
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17285&edit=1