Bug #16671 Updated: configuire -with-java and -with-zlib will cause make to fail
| From: | PLancashire at Columbia dot com | Date: | Mon, 22 Apr 2002 14:33:48 +0000 |
| Subject: | Bug #16671 Updated: configuire -with-java and -with-zlib will cause make to fail | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5558@lists.php.net to get a copy of this message | ||
ID: 16671
Updated by: PLancashire@Columbia.com
Reported By: PLancashire@Columbia.com
Status: Open
Bug Type: Compile Failure
Operating System: Solaris 2.8
PHP Version: 4.1.2
New Comment:
Well after a few hours I found it to be an include
file for GCC, jni.h in /usr/local/include
The ./configure in creating the Makefile, puts
/usr/local/include BEFORE /usr/local/<java_path>/include.
If you put the -I/usr/local/include after the
-I/usr/local/<java_path>/include for
the java option, or put it last like i did and it builds just fine.
The question comes to how to fix ?
The GNU Java puts everything in /usr/local including the
libs, includes etc.
I'm not enough of a Make expert to know how to change
the order.
Previous Comments:
------------------------------------------------------------------------
[2002-04-19 19:07:28] Dubravko.Penezic@SRCe.hr
It seams to be connected with gcc , I got same message when compiling
CURL on Solaris 8 with gcc 3.0.3 ... but using gcc
2.95.4 isnt create that type of error.
------------------------------------------------------------------------
[2002-04-17 18:03:42] PLancashire@Columbia.com
Does the same with 4.2.0RC4
------------------------------------------------------------------------
[2002-04-17 17:45:37] PLancashire@Columbia.com
Environment, Failing configure, Working configure,
partial output from make with failing configure.
---Environment------------------------------------
Solaris Sparc 2.8 Patchkit as of 5/Apr/2002
Gcc 3.0.3 (Sunfreeware)
binutils 2.11.2 (Sunfreeware)
GNU Make version 3.79.1 (Sunfreeware)
GNU libtool 1.4 (1.920 2001/04/24 23:26:18) (Sunfreeware)
java j2sdk1_3_1_03 (have also tried with stock java1.2)
Zlib 1.1.4 (source)
php 4.1.2
---------------------------------------------------
---Failing configure--------------------------------
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/httpd/conf \
--without-mysql \
--with-zlib-dir=/usr/local \
--with-zlib=/usr/local \
--with-java=/usr/j2sdk1_3_1_03
----------------------------------------------------
---Working configure--------------------------------
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/httpd/conf \
--without-mysql \
--with-java=/usr/j2sdk1_3_1_03
----------------------------------------------------
---snipped output from make-------------------------
Making all in java
make[2]: Entering directory `/usr/local/build/php-4.1.2/ext/java'
make[3]: Entering directory `/usr/local/build/php-4.1.2/ext/java'
/bin/sh /usr/local/build/php-4.1.2/libtool --silent --mode=compile gcc
-I. -I/usr/local/build/php-4.1.2/ext/java
-I/usr/local/build/php-4.1.2/main -I/usr/local/build/php-4.1.2
-I/usr/local/apache/include -I/usr/local/build/php-4.1.2/Zend
-I/usr/local/include -I/usr/local/build/php-4.1.2/ext/xml/expat
-I/usr/j2sdk1_3_1_03/include -I/usr/j2sdk1_3_1_03/include/solaris
-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=280 -DMOD_SSL=208108 -DMOD_PERL
-DUSE_PERL_SSI -DEAPI -DEAPI_MM -DUSE_EXPAT
-I/usr/local/build/php-4.1.2/TSRM -g -O2 -prefer-pic -DJNI_12
-D_REENTRANT '-DJAVALIB="/usr/j2sdk1_3_1_03/jre/lib/sparc/libjava.so"'
-c java.c && touch java.slo
java.c: In function `jvm_create':
java.c:160: parse error before '*' token
java.c:192: `JNI_CreateVM' undeclared (first use in this function)
java.c:192: (Each undeclared identifier is reported only once
java.c:192: for each function it appears in.)
java.c:192: parse error before "JNICALL"
java.c:193: `type name' declared as function returning a function
java.c:193: cast specifies function type
java.c: At top level:
java.c:650: syntax error before "void"
java.c:664: syntax error before "void"
java.c:672: syntax error before "void"
java.c:680: syntax error before "void"
java.c:688: syntax error before "void"
java.c:711: syntax error before "void"
java.c:717: syntax error before "jlong"
java.c:727: syntax error before "jlong"
java.c:738: syntax error before "jlong"
java.c:751: syntax error before "void"
java.c:759: syntax error before "void"
make[3]: *** [java.slo] Error 1
make[3]: Leaving directory `/usr/local/build/php-4.1.2/ext/java'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/build/php-4.1.2/ext/java'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/build/php-4.1.2/ext'
make: *** [all-recursive] Error 1
-------------------------------------------------
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16671&edit=1