[Pljava-dev] PL/Java 1.3 compilation error on Solaris

From: y(dot)latt at auckland(dot)ac(dot)nz (Yin Latt)
To:
Subject: [Pljava-dev] PL/Java 1.3 compilation error on Solaris
Date: 2007-07-30 23:44:40
Message-ID: A30994AC067CB646AAD4698C727A1A0202F87D28@libex1.lbr.auckland.ac.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

Dear Thomas,

Is there any clue on this updated error?

Best Regards.

Yin Yin
Digital Services
University of Auckland Library
Phone +64-9-3737599 Ext 88251

-----Original Message-----
From: Bill Rea [mailto:bsr15 at cantsl.it.canterbury.ac.nz]
Sent: Thursday, 26 July 2007 2:15 p.m.
To: Yin Latt
Cc: Thomas Hallgren; pljava-dev at gborg.postgresql.org
Subject: RE: [Pljava-dev] PL/Java 1.3 compilation error on Solaris

Thomas and all,

The problems are a bit more complicated. In the output from the
make which I forwarded to Yin the software is attempting
to use:-

/ws/on10-tools/SUNWspro/SOS8/bin/cc

This must be buried somewhere in some other piece of software as there
is no /ws directory tree on our system. I solved that problem by
creating a directory tree with a few soft links and it now finds
the compilers. I've looked at the JAVA_HOME environment variable
and it wasn't correct. I've changed it and the compilation does
go further but still fails. I've attached the output of the lastest
make attempt and pruned off the successful portions of the make.
The remainder of the make output is complete.

Thanks for your help.

Bill Rea, ICT Services, University of Canterbury \_
E-Mail bill.rea at canterbury.ac.nz </ New
Phone 64-3-364-2331, Fax 64-3-364-2332 /) Zealand
Unix Systems Administrator (/'

On Wed, 25 Jul 2007, Yin Latt wrote:

> Hi Thomas,
>
> Yes. It is point to Jdk1.5
>
> /usr/jdk/instances/jdk1.5.0/bin/java
>
> Regards,
>
> Yin Yin
>
>
> -----Original Message-----
> From: Thomas Hallgren [mailto:thomas at tada.se]
> Sent: Wednesday, 25 July 2007 12:08 p.m.
> To: Yin Latt
> Cc: pljava-dev at gborg.postgresql.org
> Subject: Re: [Pljava-dev] PL/Java 1.3 compilation error on Solaris
>
> Your compiler is unable to find jni.h. Is your JAVA_HOME pointing to a
> JDK?
>
> Regards,
> Thomas Hallgren
>
> Yin Latt wrote:
> > Hi,
> >
> > We are trying to compile pl/java 1.3 in our Solaris Server.
> >
> > But receiving huge numbers of syntax errors and missing
declarations.
> >
> > Hope anyone successfully installed this can able to help and suggest
> to
> > us.
> >
> >
> > OS
> >
> > SunOS gawain 5.10 Generic_118833-33 sun4u sparc SUNW,Sun-Blade-1000
> >
> >
> > java version "1.5.0_07"
> >
> > Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0_07-b03)
> >
> > Java HotSpot(TM) Server VM (build 1.5.0_07-b03, mixed mode)
> >
> >
> > psql --version
> >
> > psql (PostgreSQL) 8.1.4
> >
> >
> >
> > gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
> >
> >
> >
> >
> >
> > Errors on compilation.
> >
> >
> >
> > make[1]: Entering directory
> > `/export/home/bsr15/pljava/pljava-1.3.0/build/classes/pljava'
> >
> > make[1]: Nothing to be done for `all'.
> >
> > make[1]: Leaving directory
> > `/export/home/bsr15/pljava/pljava-1.3.0/build/classes/pljava'
> >
> > make[1]: Entering directory
> > `/export/home/bsr15/pljava/pljava-1.3.0/build/classes/deploy'
> >
> > make[1]: Nothing to be done for `all'.
> >
> > make[1]: Leaving directory
> > `/export/home/bsr15/pljava/pljava-1.3.0/build/classes/deploy'
> >
> > make[1]: Entering directory
> > `/export/home/bsr15/pljava/pljava-1.3.0/build/objs'
> >
> > /ws/on10-tools/SUNWspro/SOS8/bin/cc -Xa -c -xc99=none -xCC -KPIC
-I.
> > -I/usr/include/pgsql/server -I/usr/include/pgsql/internal
> > -I/sfw10/builds/build/sfw10-patch/usr/src/cmd/postgres/rltmp/include
> > -I/usr/sfw/include -DPKGLIBDIR=\"/usr/lib\"
> > -I/export/home/bsr15/pljava/pljava-1.3.0/src/C/include
> > -I/export/home/bsr15/pljava/pljava-1.3.0/build/jni
-DPGSQL_MAJOR_VER=8
> > -DPGSQL_MINOR_VER=1 -DPGSQL_PATCH_VER=3 -I"/usr/include"
> > -I"/usr/include/solaris"
> >
/export/home/bsr15/pljava/pljava-1.3.0/src/C/pljava/type/JavaWrapper.c
> > -o type/JavaWrapper.o
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 2: cannot find include file: <jni.h>
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 15: warning: old-style declaration or
> > incorrect type for: JNIEXPORT
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 15: syntax error before or at: void
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 15: cannot have void object: JNICALL
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 16: syntax error before or at: *
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 16: warning: function prototype
> parameters
> > must have types
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/build/jni/org_postgresql_pljava_
> > internal_JavaWrapper.h", line 16: warning: old-style declaration or
> > incorrect type for:
> > Java_org_postgresql_pljava_internal_JavaWrapper__1free
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 12: cannot find include file: <jni.h>
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 45: syntax error before or at: mainThreadId
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 45: warning: old-style declaration or incorrect type for:
> > mainThreadId
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 46: syntax error before or at: *
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 47: syntax error before or at: *
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 47: warning: old-style declaration or incorrect type for:
> > currentJNIEnv
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/pljava.h",
> > line 105: syntax error before or at: jlong
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 34: syntax error before or at: *
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 35: syntax error before or at: *
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 37: syntax error before or at: ServerException_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 37: warning: old-style declaration or incorrect type for:
> > ServerException_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 38: syntax error before or at: ServerException_getErrorData
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 38: warning: old-style declaration or incorrect type for:
> > ServerException_getErrorData
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 39: syntax error before or at: ServerException_init
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 39: warning: old-style declaration or incorrect type for:
> > ServerException_init
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 41: syntax error before or at: Class_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 41: warning: old-style declaration or incorrect type for:
> > Class_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 42: syntax error before or at: Class_getName
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 42: warning: old-style declaration or incorrect type for:
> > Class_getName
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 44: syntax error before or at: Throwable_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 44: warning: old-style declaration or incorrect type for:
> > Throwable_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 45: syntax error before or at: Throwable_getMessage
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 45: warning: old-style declaration or incorrect type for:
> > Throwable_getMessage
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 46: syntax error before or at: Throwable_printStackTrace
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 46: warning: old-style declaration or incorrect type for:
> > Throwable_printStackTrace
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 48: syntax error before or at: IllegalArgumentException_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 48: warning: old-style declaration or incorrect type for:
> > IllegalArgumentException_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 49: syntax error before or at: IllegalArgumentException_init
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 49: warning: old-style declaration or incorrect type for:
> > IllegalArgumentException_init
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 51: syntax error before or at: SQLException_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 51: warning: old-style declaration or incorrect type for:
> > SQLException_class
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 52: syntax error before or at: SQLException_init
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 52: warning: old-style declaration or incorrect type for:
> > SQLException_init
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 53: syntax error before or at: SQLException_getSQLState
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 53: warning: old-style declaration or incorrect type for:
> > SQLException_getSQLState
> >
> >
>
"/export/home/bsr15/pljava/pljava-1.3.0/src/C/include/pljava/JNICalls.h"
> > , line 55: syntax error before or at:
> > UnsupportedOperationException_class
> >
> > ...........
> >
> >
> > 1.3.0/src/C/pljava/type/JavaWrapper.c", line 54: cannot recover from
> > previous errors
> >
> > cc: acomp failed for
> >
/export/home/bsr15/pljava/pljava-1.3.0/src/C/pljava/type/JavaWrapper.c
> >
> > make[1]: *** [type/JavaWrapper.o] Error 2
> >
> > make[1]: Leaving directory
> > `/export/home/bsr15/pljava/pljava-1.3.0/build/objs'
> >
> > make: *** [c_all] Error 2
> >
> >
> >
> > Thanks & Regards,
> >
> >
> >
> > Yin Yin
> >
> > Digital Services
> > University of Auckland Library
> > Phone +64-9-3737599 Ext 88251
> >
> >
> > _______________________________________________
> > Pljava-dev mailing list
> > Pljava-dev at gborg.postgresql.org
> > http://gborg.postgresql.org/mailman/listinfo/pljava-dev
> >
>
>

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2007-07-30 23:52:05 [Pljava-dev] PL/Java 1.3 compilation error on Solaris
Previous Message Yin Latt 2007-07-25 00:28:48 [Pljava-dev] PL/Java 1.3 compilation error on Solaris