php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17285 ext/java/Makefile is broken, here is a fix
Submitted: 2002-05-17 05:27 UTC Modified: 2002-09-09 10:29 UTC
From: rmihailescu at lumina dot ro Assigned:
Status: Closed Package: Java related
PHP Version: 4.1.2 OS: RedHat Linux 7.1 -- Customized
Private report: No CVE-ID: None
 [2002-05-17 05:27 UTC] rmihailescu at lumina dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-17 21:21 UTC] sniper@php.net
I thought I fixed this already..please try this snapshot:

http://snaps.php.net/php4-latest.tar.gz

 [2002-09-09 10:29 UTC] kalowsky@php.net
Fixed in CVS
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Nov 30 04:03:23 2021 UTC