agora inbox for pljava-dev@postgresql.orghelp / color / mirror / Atom feed
[Pljava-dev] problem building pl/java in windows vista 2+ messages / 0 participants [nested] [flat]
* [Pljava-dev] problem building pl/java in windows vista @ 2011-01-12 04:02 0 siblings, 0 replies; 2+ messages in thread From: @ 2011-01-12 04:02 UTC (permalink / raw) 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.... 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; ^ permalink raw reply [nested|flat] 2+ messages in thread
* [Pljava-dev] problem building pl/java in windows vista @ 2011-01-12 16:34 0 siblings, 0 replies; 2+ messages in thread From: @ 2011-01-12 16:34 UTC (permalink / raw) 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; ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-01-12 16:34 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2011-01-12 04:02 [Pljava-dev] problem building pl/java in windows vista 2011-01-12 16:34 [Pljava-dev] problem building pl/java in windows vista
This inbox is served by agora; see mirroring instructions for how to clone and mirror all data and code used for this inbox