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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rmihailescu at lumina dot ro
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 05:01:28 2025 UTC