[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-23 23:13:47
Message-ID: A30994AC067CB646AAD4698C727A1A0202E6BD40@libex1.lbr.auckland.ac.nz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Thomas Hallgren 2007-07-25 00:05:32 [Pljava-dev] setting classpath
Previous Message Jeff Gardner 2007-07-19 06:04:08 [Pljava-dev] setting classpath