From: | ebazzana at gmail(dot)com (ebazzana) |
---|---|
To: | |
Subject: | [Pljava-dev] problem building pl/java in windows vista |
Date: | 2011-01-12 04:02:23 |
Message-ID: | 1294804943191-3337664.post@n5.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
first, sorry for my english (im from argentina, dont speak very well)
im trying to build pljava for work with java 1.6 and postgresql 8.4.5.
following several instructions found in internet i did:
- download src of postgresql 8.4.5
- install MinGW/MSYS and compile postgre
- download src of pl/java from cvs (tag java 6)
- compiling java parts of pljava is ok
- compiling c parts (pljava.dll) says:
....
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/Makefile:212: warning:
overriding recipe for target `pljava.dll'
c:/POSTGR~1/8.4/lib/pgxs/src/MAKEFI~1/../../src/Makefile.shlib:422: warning:
ignoring old recipe for target `pljava.dll'
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/Backend.c:48:1: warning:
'Pg_magic_func' redeclared without dllimport attribute: previous dllimport
ignored
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/Backend.c:707:1: warning:
'pg_finfo_javau_call_handler' redeclared without dllimport attribute:
previous dllimport ignored
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/Backend.c:718:1: warning:
'pg_finfo_java_call_handler' redeclared without dllimport attribute:
previous dllimport ignored
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/type/Date.c: In function
'_Date_coerceObject':
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/type/Date.c:43:84:
warning: integer overflow in expression
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/type/Short.c: In function
'_shortArray_coerceObject':
c:/Eric/wsRoca/org.postgresql.pljava/src/C/pljava/type/Short.c:84:4:
warning: passing argument 4 of 'JNI_getIntArrayRegion' from incompatible
pointer type
c:/Eric/wsRoca/org.postgresql.pljava/src/C/include/pljava/JNICalls.h:115:21:
note: expected 'jint *' but argument is of type 'jshort *'
ExecutionPlan.o:ExecutionPlan.c:(.text+0x359): undefined reference to
`_imp__SPI_result'
SPI.o:SPI.c:(.text+0x14): undefined reference to `_imp__SPI_result'
type/Relation.o:Relation.c:(.text+0x2cc): undefined reference to
`_imp__SPI_result'
collect2: ld returned 1 exit status
C:\MinGW\bin\dllwrap.exe: C:\MinGW\bin\gcc exited with status 1
mingw32-make[1]: *** [pljava.dll] Error 1
mingw32-make: *** [c_all] Error 2
Looking the src, i see org.postgresql.pljava\src\C\pljava\SPI.c and
C:\Eric\wsRoca\org.postgresql.pljava\src\C\include\pljava\SPI.h that
aparently extend pgxs\src\backend\executor\spi.c and
pgxs\src\include\executor\spi.h, but looking generated pljava.def i only
see:
....
SPI_initialize @ 449
SPI_releaseSavepoint @ 450
SPI_rollbackSavepoint @ 451
SPI_setSavepoint @ 452
....
(exports from pgxs\src\backend\executor\spi.c are missing)
im not expert of c++, what im doing wrong?
(attach logs from stdout, stderr, and pljava.def)
http://postgresql.1045698.n5.nabble.com/file/n3337664/stdout.log stdout.log
http://postgresql.1045698.n5.nabble.com/file/n3337664/stderr.log stderr.log
http://postgresql.1045698.n5.nabble.com/file/n3337664/pljava.def pljava.def
--
View this message in context: http://postgresql.1045698.n5.nabble.com/problem-building-pl-java-in-windows-vista-tp3337664p3337664.html
Sent from the PL/Java mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20110111/790ddc41/attachment.html>
From | Date | Subject | |
---|---|---|---|
Next Message | Eric Bazzana | 2011-01-12 16:34:36 | [Pljava-dev] problem building pl/java in windows vista |
Previous Message | Johann 'Myrkraverk' Oskarsson | 2011-01-11 14:50:42 | [Pljava-dev] undefined symbol: Int64GetDatum |