pljava icon indicating copy to clipboard operation
pljava copied to clipboard

Docker image

Open xxBedy opened this issue 9 years ago • 16 comments

Hi,

I can't found docker image on docker hub so I created one myself. PLJava from master branch and PostgreSQL 9.4.

https://hub.docker.com/r/xxbedy/postgres-pljava/

Bedy

xxBedy avatar Mar 16 '16 09:03 xxBedy

On 03/16/2016 05:38 AM, xxBedy wrote:

I can't found docker image on docker hub so I created one myself. PLJava from master branch and PostgreSQL 9.4.

Hi,

Thank you! That may be very helpful to people interested in quickly trying it out.

If you have time, it would probably be especially helpful to build an image of the 1.5.0 pre-release that is currently in testing. (If you build from the master branch, you are getting a "1.6.0-SNAPSHOT" version string now, even when 1.5.0 isn't quite officially released yet.)

What's most current in github is 1.5.0-BETA2 but at this point you may as well wait for -BETA3/-RC1 (I am still undecided which to call it; PL/Java hasn't historically used -RC suffixes, but I guess it could start). I am currently hoping to tag that tonight.

If you were to build a docker image from that, it could be helpful for those wanting a chance at testing 1.5.0 before the release.

Thanks, -Chap

jcflack avatar Mar 16 '16 12:03 jcflack

We have and can share VirtualBox appliance with PG9.5 and latest pljava. Let me know if you want to publish it somewhere.

Cheers

yazun avatar Mar 16 '16 13:03 yazun

OK

No problem to build image from 1.5.0 tag. Let me know when will be ready.

Bedy

Odesláno z iPhonu

    1. 2016 v 13:46, Chapman Flack [email protected]:

On 03/16/2016 05:38 AM, xxBedy wrote:

I can't found docker image on docker hub so I created one myself. PLJava from master branch and PostgreSQL 9.4.

Hi,

Thank you! That may be very helpful to people interested in quickly trying it out.

If you have time, it would probably be especially helpful to build an image of the 1.5.0 pre-release that is currently in testing. (If you build from the master branch, you are getting a "1.6.0-SNAPSHOT" version string now, even when 1.5.0 isn't quite officially released yet.)

What's most current in github is 1.5.0-BETA2 but at this point you may as well wait for -BETA3/-RC1 (I am still undecided which to call it; PL/Java hasn't historically used -RC suffixes, but I guess it could start). I am currently hoping to tag that tonight.

If you were to build a docker image from that, it could be helpful for those wanting a chance at testing 1.5.0 before the release.

Thanks, -Chap — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

xxBedy avatar Mar 16 '16 15:03 xxBedy

I was unable to build latest pljava with 8.5. If you give me advice how make the build I can prepare docker image for 8.5 too.

Bedy

Odesláno z iPhonu

    1. 2016 v 14:01, krzychus [email protected]:

We have and can share VirtualBox appliance with PG9.5 and latest pljava. Let me know if you want to publish it somewhere.

Cheers

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

xxBedy avatar Mar 16 '16 15:03 xxBedy

On 03/16/2016 11:50 AM, xxBedy wrote:

I was unable to build latest pljava with 8.5. If you give me advice how make the build I can prepare docker image for 8.5 too.

Do you mean 9.5 ? I didn't think an 8.5 ever happened ....

For 9.5, pay careful attention to having all the necessary prerequisites installed. If it fails in pljava-so, look carefully through any error messages for signs of a .h file or a library that is missing, then be sure you have the corresponding development packages installed.

It is easier to go through the error messages to see what is missing if you follow the advice in the docs to suppress the nuisance sign-conversion warnings with -Pwnosign on the mvn command.

Other than making sure all the prerequisites are there, I haven't been aware of any extra cause of build problems with 9.5.

-Chap

jcflack avatar Mar 16 '16 16:03 jcflack

You are right. I mean 9.5. I will check dependencies. Tnx

Bedy

Odesláno z iPhonu

    1. I 2016 v 17:54, Chapman Flack [email protected]:

On 03/16/2016 11:50 AM, xxBedy wrote:

I was unable to build latest pljava with 8.5. If you give me advice how make the build I can prepare docker image for 8.5 too.

Do you mean 9.5 ? I didn't think an 8.5 ever happened ....

For 9.5, pay careful attention to having all the necessary prerequisites installed. If it fails in pljava-so, look carefully through any error messages for signs of a .h file or a library that is missing, then be sure you have the corresponding development packages installed.

It is easier to go through the error messages to see what is missing if you follow the advice in the docs to suppress the nuisance sign-conversion warnings with -Pwnosign on the mvn command.

Other than making sure all the prerequisites are there, I haven't been aware of any extra cause of build problems with 9.5.

-Chap — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

xxBedy avatar Mar 16 '16 20:03 xxBedy

Hi,

I have just tagged 1.5.0-BETA3 (tag V1_5_0b3). It would be great to have a docker image of that.

Have you solved your build issues with 9.5? A missing dependency has been the most common cause when recent build issues have been reported. I do not know of any inherent problem building with 9.5; I have just this evening built several times with 9.5.1 before tagging the release.

I have also added a wiki page for prebuilt packages which would be an ideal place to list your docker image when it is ready.

Thanks!

jcflack avatar Mar 20 '16 05:03 jcflack

Hi,

I have docker image based on 1.5.0-BETA3 tag. URL: https://hub.docker.com/r/xxbedy/postgres-pljava/tags/ https://hub.docker.com/r/xxbedy/postgres-pljava/tags/

But there is lot of errors during build (see attached file), is it OK ?

BR, Bedy

    1. 2016 v 6:45, Chapman Flack [email protected]:

Hi,

I have just tagged 1.5.0-BETA3 (tag V1_5_0b3 https://github.com/tada/pljava/releases/tag/V1_5_0b3). It would be great to have a docker image of that.

Have you solved your build issues with 9.5? A missing dependency has been the most common cause when recent build issues have been reported. I do not know of any inherent problem building with 9.5; I have just this evening built several times with 9.5.1 before tagging the release.

I have also added a wiki page for prebuilt packages https://github.com/tada/pljava/wiki/Prebuilt-packages which would be an ideal place to list your docker image when it is ready.

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tada/pljava/issues/100#issuecomment-198854079

[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ pljava-so --- [INFO] No sources to compile [INFO] [INFO] --- nar-maven-plugin:3.2.3:nar-javah (default-nar-javah) @ pljava-so --- [INFO] Running /usr/lib/jvm/java-8-oracle/bin/javah compiler on 22 classes... [INFO] + /usr/lib/jvm/java-8-oracle/bin/javah -classpath /pljava/pljava-so/../pljava/target/classes/:/pljava/pljava-so/../pljava-api/target/classes/ -d /pljava/pljava-so/target/nar/javah-include org.postgresql.pljava.internal.Session org.postgresql.pljava.internal.SubXactListener org.postgresql.pljava.internal.Backend org.postgresql.pljava.internal.TupleDesc org.postgresql.pljava.jdbc.SingleRowReader org.postgresql.pljava.internal.Oid org.postgresql.pljava.internal.XactListener org.postgresql.pljava.internal.Tuple org.postgresql.pljava.internal.SPI org.postgresql.pljava.internal.AclId org.postgresql.pljava.internal.TriggerData org.postgresql.pljava.internal.JavaWrapper org.postgresql.pljava.internal.LargeObject org.postgresql.pljava.internal.Relation org.postgresql.pljava.internal.ExecutionPlan org.postgresql.pljava.internal.PgSavepoint org.postgresql.pljava.jdbc.SQLInputFromTuple org.postgresql.pljava.internal.Portal org.postgresql.pljava.internal.HeapTupleHeader org.postgresql.pljava.internal.ErrorData org.postgresql.pljava.jdbc.SQLOutputToChunk org.postgresql.pljava.jdbc.Invocation java.sql.Types [INFO] [INFO] --- nar-maven-plugin:3.2.3:nar-gnu-make (default-nar-gnu-make) @ pljava-so --- [INFO] [INFO] --- nar-maven-plugin:3.2.3:nar-compile (default-nar-compile) @ pljava-so --- [INFO] Compiling 51 native files [INFO] 51 total files to be compiled. [INFO] 51 total files to be compiled. [INFO] Found 1 processors available [INFO] Found 1 processors available [INFO] Starting Core 0 with 51 source files... [INFO] Starting Core 0 with 51 source files... [91m 0 / 51 files compiled... [0m[ERROR] /pljava/pljava-so/src/main/c/type/Array.c: In function ‘createArrayType’: [WARNING] /pljava/pljava-so/src/main/c/type/Array.c:31:25: warning: conversion to ‘size_t’ from ‘jsize’ may change the sign of the result [-Wsign-conversion] [ERROR] Size nBytes = elemSize * nElems; [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Array.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:166:58: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims) +
[ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:166:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims) +
[ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Array.c:37:16: note: in expansion of macro ‘ARR_OVERHEAD_WITHNULLS’ [ERROR] dataoffset = ARR_OVERHEAD_WITHNULLS(1, nElems); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Array.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:151:19: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] sizeof(int) * ARR_NDIM(a))) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Array.c:58:10: note: in expansion of macro ‘ARR_LBOUND’ [ERROR] ((int)ARR_LBOUND(v)) = 1; [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Array.c:9: [ERROR] /pljava/pljava-so/src/main/c/type/Array.c: In function ‘Array_coerceDatum’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Array.c:73:23: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] const char* values = ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Array.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Array.c:73:23: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] const char* values = ARR_DATA_PTR(v); [ERROR] ^ [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:156:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] 2 * sizeof(int) * ARR_NDIM(a))
[ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Array.c:74:22: note: in expansion of macro ‘ARR_NULLBITMAP’ [ERROR] bits8* nullBitMap = ARR_NULLBITMAP(v); [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Array.c: In function ‘Array_coerceObject’: [WARNING] /pljava/pljava-so/src/main/c/type/Array.c:108:42: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] Datum* values = (Datum)palloc(nElems * sizeof(Datum) + nElems * sizeof(bool)); [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/type/Array.c:108:67: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] Datum
values = (Datum_)palloc(nElems * sizeof(Datum) + nElems * sizeof(bool)); [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/Backend.c: In function ‘JVMOptList_add’: [WARNING] /pljava/pljava-so/src/main/c/Backend.c:1111:15: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion] [ERROR] int newPos = jol->size; [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/Backend.c:1114:16: warning: conversion to ‘int’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion] [ERROR] int newCap = jol->capacity * 2; [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/Backend.c:1115:56: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] JavaVMOption_ newOpts = (JavaVMOption_)palloc(newCap * sizeof(JavaVMOption)); [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/Backend.c:1116:40: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] memcpy(newOpts, jol->options, newPos * sizeof(JavaVMOption)); [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/Backend.c:1119:19: warning: conversion to ‘unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] jol->capacity = newCap; [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/Backend.c: In function ‘initializeJavaVM’: [WARNING] /pljava/pljava-so/src/main/c/Backend.c:1264:21: warning: conversion to ‘jint’ from ‘unsigned int’ may change the sign of the result [-Wsign-conversion] [ERROR] vm_args.nOptions = optList->size; [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c: In function ‘booleanArray_coerceDatum’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:156:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] 2 * sizeof(int) * ARR_NDIM(a))
[ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:48:23: note: in expansion of macro ‘ARR_NULLBITMAP’ [ERROR] bits8
nullBitMap = ARR_NULLBITMAP(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:49:33: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jboolean* values = (jboolean_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:49:33: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jboolean_ values = (jboolean_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:61:65: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setBooleanArrayRegion(booleanArray, 0, nElems, (jboolean_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:61:65: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setBooleanArrayRegion(booleanArray, 0, nElems, (jboolean_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c: In function ‘booleanArray_coerceObject’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:80:27: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] nElems, (jboolean)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:80:27: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] nElems, (jboolean_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:84:32: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jboolean *array = (jboolean_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Boolean.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Boolean.c:84:32: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jboolean array = (jboolean)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c: In function ‘byteArray_coerceDatum’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:156:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] 2 * sizeof(int) * ARR_NDIM(a))
[ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:50:23: note: in expansion of macro ‘ARR_NULLBITMAP’ [ERROR] bits8* nullBitMap = ARR_NULLBITMAP(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:51:27: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jbyte* values = (jbyte
)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:51:27: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jbyte_ values = (jbyte_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:63:56: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setByteArrayRegion(byteArray, 0, nElems, (jbyte_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:63:56: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setByteArrayRegion(byteArray, 0, nElems, (jbyte_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c: In function ‘byteArray_coerceObject’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:78:67: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_getByteArrayRegion((jbyteArray)byteArray, 0, nElems, (jbyte)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Byte.c:9: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Byte.c:78:67: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_getByteArrayRegion((jbyteArray)byteArray, 0, nElems, (jbyte_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [ERROR] /pljava/pljava-so/src/main/c/type/Double.c: In function ‘doubleArray_coerceDatum’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:156:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] 2 * sizeof(int) * ARR_NDIM(a))
[ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:55:23: note: in expansion of macro ‘ARR_NULLBITMAP’ [ERROR] bits8
nullBitMap = ARR_NULLBITMAP(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:56:31: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jdouble* values = (jdouble_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:56:31: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jdouble_ values = (jdouble_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:68:62: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setDoubleArrayRegion(doubleArray, 0, nElems, (jdouble_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:68:62: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setDoubleArrayRegion(doubleArray, 0, nElems, (jdouble_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [ERROR] /pljava/pljava-so/src/main/c/type/Double.c: In function ‘doubleArray_coerceObject’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:85:25: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] nElems, (jdouble)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:85:25: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] nElems, (jdouble_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:89:30: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jdouble *array = (jdouble_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Double.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Double.c:89:30: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jdouble array = (jdouble)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/ExecutionPlan.c: In function ‘coerceObjects’: [WARNING] /pljava/pljava-so/src/main/c/ExecutionPlan.c:84:33: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] values = (Datum_)palloc(count * sizeof(Datum)); [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/ExecutionPlan.c:100:28: warning: conversion to ‘Size’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] nulls = (char_)palloc(count+1); [ERROR] ^ [WARNING] /pljava/pljava-so/src/main/c/ExecutionPlan.c:101:25: warning: conversion to ‘size_t’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] memset(nulls, ' ', count); /* all values non-null initially / [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/ExecutionPlan.c: In function ‘Java_org_postgresql_pljava_internal_ExecutionPlan__1prepare’: [WARNING] /pljava/pljava-so/src/main/c/ExecutionPlan.c:268:41: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] paramOids = (Oid)palloc(paramCount * sizeof(Oid)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [ERROR] /pljava/pljava-so/src/main/c/type/Float.c: In function ‘floatArray_coerceDatum’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:156:22: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] 2 * sizeof(int) * ARR_NDIM(a))
[ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:55:23: note: in expansion of macro ‘ARR_NULLBITMAP’ [ERROR] bits8* nullBitMap = ARR_NULLBITMAP(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:56:29: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jfloat* values = (jfloat
)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:56:29: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] jfloat_ values = (jfloat_)ARR_DATA_PTR(v); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:68:59: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setFloatArrayRegion(floatArray, 0, nElems, (jfloat_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:68:59: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] JNI_setFloatArrayRegion(floatArray, 0, nElems, (jfloat_)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/postgres.h:47:0, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:29, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [ERROR] /pljava/pljava-so/src/main/c/type/Float.c: In function ‘floatArray_coerceObject’: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:164:48: warning: conversion to ‘long unsigned int’ from ‘int’ may change the sign of the result [-Wsign-conversion] [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/c.h:528:17: note: in definition of macro ‘TYPEALIGN’ [ERROR](%28%28uintptr_t%29 %28LEN%29 + %28%28ALIGNVAL%29 - 1%29%29 & ~%28%28uintptr_t%29 %28%28ALIGNVAL%29 - 1%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:164:3: note: in expansion of macro ‘MAXALIGN’ [ERROR] MAXALIGN(sizeof(ArrayType) + 2 * sizeof(int) * (ndims)) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:170:39: note: in expansion of macro ‘ARR_OVERHEAD_NONULLS’ [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:87:25: note: in expansion of macro ‘ARR_DATA_PTR’ [ERROR] nElems, (jfloat)ARR_DATA_PTR(v)); [ERROR] ^ [ERROR] In file included from /usr/include/postgresql/9.4/server/utils/guc.h:18:0, [ERROR] from /usr/include/postgresql/9.4/server/tcop/tcopprot.h:26, [ERROR] from /pljava/pljava-so/src/main/include/pljava/pljava.h:35, [ERROR] from /pljava/pljava-so/src/main/include/pljava/JNICalls.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12, [ERROR] from /pljava/pljava-so/src/main/c/type/Float.c:11: [WARNING] /usr/include/postgresql/9.4/server/utils/array.h:170:37: warning: conversion to ‘long unsigned int’ from ‘int32’ may change the sign of the result [-Wsign-conversion] [ERROR](ARR_HASNULL%28a%29 ? %28a%29->dataoffset : ARR_OVERHEAD_NONULLS%28ARR_NDIM%28a%29%29) [ERROR] ^ [ERROR] /usr/include/postgresql/9.4/server/utils/array.h:176:21: note: in expansion of macro ‘ARR_DATA_OFFSET’ [ERROR](%28%28char *%29 %28a%29%29 + ARR_DATA_OFFSET%28a%29) [ERROR] ^ [ERROR] /pljava/pljava-so/src/main/c/type/Float.c:87:25: note: in expansion of macro ‘ARR_DATA_

xxBedy avatar Mar 23 '16 14:03 xxBedy

On 03/23/2016 10:39 AM, xxBedy wrote:

Hi,

I have docker image based on 1.5.0-BETA3 tag. URL: https://hub.docker.com/r/xxbedy/postgres-pljava/tags/ https://hub.docker.com/r/xxbedy/postgres-pljava/tags/

But there is lot of errors during build (see attached file), is it OK ?

Hi,

If you build with -Pwnosign on the mvn command line (and your compiler honors it), it should suppress a lot of the nuisance sign- conversion warnings, and leave only the things that matter. The things I expect to see then are just unhandled-switch-case warnings for a few new kinds of transaction and subtransaction callback, that PL/Java does not handle yet, mentioned in the release notes. So probably you will see that it is ok.

Can you run the queries on this page, and report the result?

https://github.com/tada/pljava/wiki/Prebuilt-packages

... then I'll list your image on the page. :)

Thanks! -Chap

jcflack avatar Mar 23 '16 14:03 jcflack

Hi,

I added this query to postgres start script so you can check it in docker log after start:

            array_agg

{1.5.0-BETA3,9.5.1,1.8.0_74,Linux,amd64}

and

            array_agg

{1.5.0-BETA3,9.4.6,1.8.0_74,Linux,amd64}

Bedy

    1. 2016 v 15:56, Chapman Flack [email protected]:

On 03/23/2016 10:39 AM, xxBedy wrote:

Hi,

I have docker image based on 1.5.0-BETA3 tag. URL: https://hub.docker.com/r/xxbedy/postgres-pljava/tags/ https://hub.docker.com/r/xxbedy/postgres-pljava/tags/

But there is lot of errors during build (see attached file), is it OK ?

Hi,

If you build with -Pwnosign on the mvn command line (and your compiler honors it), it should suppress a lot of the nuisance sign- conversion warnings, and leave only the things that matter. The things I expect to see then are just unhandled-switch-case warnings for a few new kinds of transaction and subtransaction callback, that PL/Java does not handle yet, mentioned in the release notes. So probably you will see that it is ok.

Can you run the queries on this page, and report the result?

https://github.com/tada/pljava/wiki/Prebuilt-packages

... then I'll list your image on the page. :)

Thanks! -Chap — You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tada/pljava/issues/100#issuecomment-200381337

xxBedy avatar Mar 23 '16 17:03 xxBedy

Hi Bedy,

I apologize, I did not get around to adding your 1.5.0-BETA3 image links on the wiki page before making the 1.5.0 release. But, if you happen to make 1.5.0 images I will certainly list those.

Also (I might know the answer if I knew docker better), if you create both 9.5 and 9.4 images, is it possible to supply a distinct URL for each? Maybe the tag just goes on the end, is that how their autobuild repository URLs work?

Thanks!

jcflack avatar Mar 30 '16 02:03 jcflack

Hi,

    1. 2016 v 4:26, Chapman Flack [email protected]:

Hi Bedy,

I apologize, I did not get around to adding your 1.5.0-BETA3 image links on the wiki page before making the 1.5.0 release. But, if you happen to make 1.5.0 images I will certainly list those.

No problem, let me know when 1.5.0 will be ready.

Also (I might know the answer if I knew docker better), if you create both 9.5 and 9.4 images, is it possible to supply a distinct URL for each? Maybe the tag just goes on the end, is that how their autobuild repository URLs work?

You don’t need to use URL for docker images. All you need is the image name (xxbedy/postgres-pljava) and tag (9.4 or 9.5) to run postgres in docker. I will rename these tags to 9.4_1.5.0b3 and 9.5_1.5.0b3 to distinct beta from release version.

docker run -p 5432:5432 xxbedy/postgres-pljava:9.5

Thanks!

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tada/pljava/issues/100#issuecomment-203198672

xxBedy avatar Mar 30 '16 06:03 xxBedy

No problem, let me know when 1.5.0 will be ready.

Yesterday. :)

jcflack avatar Mar 30 '16 11:03 jcflack

Hi,

I'd be happy to list 1.5.0 docker images whenever they are ready. :)

-Chap

jcflack avatar Apr 09 '16 17:04 jcflack

Docker images with 1.5.0 published on https://hub.docker.com/r/xxbedy/postgres-pljava/tags/ https://hub.docker.com/r/xxbedy/postgres-pljava/tags/

    1. 2016 v 19:40, Chapman Flack [email protected]:

Hi,

I'd be happy to list 1.5.0 docker images whenever they are ready. :)

-Chap

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/tada/pljava/issues/100#issuecomment-207821252

xxBedy avatar Apr 10 '16 12:04 xxBedy

Hi @xxBedy -

I have just announced a PL/Java 1.5.1-BETA1 release available from GitHub, if you are still interested in offering Docker images. It will work with PostgreSQL 9.6 and 10, which 1.5.0 would not.

Or, if you prefer to wait and only make an image for 1.5.1 final when it is ready, this is a bit of advance notice it will come.

Cheers, -Chap

jcflack avatar Jun 21 '17 00:06 jcflack