[Pljava-dev] problem building pl/java in windows vista

From: ebazzana at gmail(dot)com (Eric Bazzana)
To:
Subject: [Pljava-dev] problem building pl/java in windows vista
Date: 2011-01-12 16:34:36
Message-ID: AANLkTikh-GWLWnoTxJ9_M3Cj9QHJi+EKve4d03+9MjzM@mail.gmail.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
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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20110112/2cd193f0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stdout.log
Type: application/octet-stream
Size: 48993 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20110112/2cd193f0/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: stderr.log
Type: application/octet-stream
Size: 2987 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20110112/2cd193f0/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pljava.def
Type: application/octet-stream
Size: 33077 bytes
Desc: not available
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20110112/2cd193f0/attachment-0002.obj>

Browse pljava-dev by date

  From Date Subject
Next Message JOSE CARLOS MARTINEZ LLARIO 2011-01-20 05:37:33 [Pljava-dev] Pljava builts
Previous Message ebazzana 2011-01-12 04:02:23 [Pljava-dev] problem building pl/java in windows vista