agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
[Pljava-dev] Errors building SO
27+ messages / 0 participants
[nested] [flat]

* [Pljava-dev] Errors building SO
@ 2014-01-07 14:24  
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-07 14:24 UTC (permalink / raw)

So, I?m trying to build PL/Java on Ubuntu for PostgreSQL 9.2.1.  Everything works fine except for building the binaries.  I?ve attached the output of the failed part of the build from Maven.

I?m not a C guy, so I have no idea what - if anything - I?m doing wrong here.  Would appreciate it if someone could take a quick look at the output and see if there?s something obvious that I missed.

Thanks,

-Hal

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: out.txt
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20140107/aaa18d55/attachment-0001.txt;



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-10 17:04  
  parent: 
  0 siblings, 2 replies; 27+ messages in thread

From:  @ 2014-01-10 17:04 UTC (permalink / raw)

Resending with only partial output, as the full output puts the email in moderation due to size.
_____________

So, I?m trying to build PL/Java on Ubuntu for PostgreSQL 9.2.1.  Everything works fine except for building the binaries. Partial output  of the failed part of the build from Maven below.

I?m not a C guy, so I have no idea what - if anything - I?m doing wrong here.  Would appreciate it if someone could take a quick look at the output and see if there?s something obvious that I missed.

Thanks,

-Hal

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building pl/java server side library 0.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.3:clean (default-clean) @ pljava-so ---
[INFO] Deleting file set: /home/pljava/git/pljava/pljava-so/target (included: [**], excluded: [])
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-validate (default-nar-validate) @ pljava-so ---
[INFO] Using AOL: amd64-Linux-gpp
[INFO] 
[INFO] --- maven-antrun-plugin:1.7:run (pg_config to pgsql.properties) @ pljava-so ---
[INFO] Executing tasks

main:

pg_config:
[propertyfile] Updating property file: /home/pljava/git/pljava/pljava-so/pgsql.properties
[INFO] Executed tasks
[INFO] 
[INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ pljava-so ---
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-download (default-nar-download) @ pljava-so ---
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-unpack (default-nar-unpack) @ pljava-so ---
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-gnu-configure (default-nar-gnu-configure) @ pljava-so ---
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-system-generate (default-nar-system-generate) @ pljava-so ---
[WARNING] NAR: no system package specified; unable to generate NarSystem class.
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ pljava-so ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/pljava/git/pljava/pljava-so/src/main/resources
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-resources (default-nar-resources) @ pljava-so ---
[INFO] Copied 0 resources
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-gnu-resources (default-nar-gnu-resources) @ pljava-so ---
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-vcproj (default-nar-vcproj) @ pljava-so ---
[INFO] 
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ pljava-so ---
[INFO] No sources to compile
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-javah (default-nar-javah) @ pljava-so ---
[INFO] Running /usr/lib/jvm/java-6-openjdk-amd64/jre/../bin/javah compiler on 23 classes...
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-gnu-make (default-nar-gnu-make) @ pljava-so ---
[INFO] 
[INFO] --- maven-nar-plugin:2.1-pljava-SNAPSHOT:nar-compile (default-nar-compile) @ pljava-so ---
[INFO] Compiling 51 native files
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/snapshot.h:16,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/acl.h:29,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/AclId.c:11:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/catcache.h:23,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/syscache.h:19,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/pljava.h:33,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/JNICalls.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c:13:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/catcache.h:23,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/syscache.h:19,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/pljava.h:33,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/JNICalls.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:9:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?
[ERROR] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c: In function ?arraySetNull?:
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:21:12: warning: conversion to ?bits8? from ?int? may alter its value [-Wconversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:23:12: warning: conversion to ?bits8? from ?int? may alter its value [-Wconversion]
[ERROR] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c: In function ?createArrayType?:
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:38:2: warning: conversion to ?size_t? from ?jsize? may change the sign of the result [-Wsign-conversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:38:24: warning: conversion to ?int? from ?size_t? may alter its value [-Wconversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:50:16: warning: conversion to ?long unsigned int? from ?int? may change the sign of the result [-Wsign-conversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:50:16: warning: conversion to ?int? from ?long int? may alter its value [-Wconversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:56:10: warning: conversion to ?int? from ?long int? may alter its value [-Wconversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:58:2: warning: conversion to ?Size? from ?int? may change the sign of the result [-Wsign-conversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:71:10: warning: conversion to ?long unsigned int? from ?int? may change the sign of the result [-Wsign-conversion]
[ERROR] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c: In function ?_Array_coerceDatum?:
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:86:23: warning: conversion to ?long unsigned int? from ?int? may change the sign of the result [-Wsign-conversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:88:22: warning: conversion to ?long unsigned int? from ?int? may change the sign of the result [-Wsign-conversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:114:13: warning: conversion to ?uint32? from ?int? may change the sign of the result [-Wsign-conversion]
[ERROR] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c: In function ?_Array_coerceObject?:
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:132:2: warning: conversion to ?long unsigned int? from ?int? may change the sign of the result [-Wsign-conversion]
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:132:2: warning: conversion to ?long unsigned int? from ?int? may change the sign of the result [-Wsign-conversion]
[ERROR] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c: In function ?_Array_canReplaceType?:
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/type/Array.c:171:25: warning: conversion to ?bool? from ?int? may alter its value [-Wconversion]
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/relcache.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/access/genam.h:21,
[ERROR]                  from /usr/include/postgresql/9.2/server/nodes/execnodes.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/executor/execdesc.h:18,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/portal.h:50,
[ERROR]                  from /usr/include/postgresql/9.2/server/executor/spi.h:17,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c:16:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?
[ERROR] In file included from /usr/include/postgresql/9.2/server/catalog/catalog.h:22:0,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c:23:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_class.h:46:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_class.h:48:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_class.h:56:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_class.h:63:2: error: unknown type name ?int2?
[ERROR] In file included from /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c:24:0:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_proc.h:53:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_proc.h:54:2: error: unknown type name ?int2?
[ERROR] /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c: In function ?appendPathParts?:
[WARNING] /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c:276:4: warning: conversion to ?int? from ?size_t? may alter its value [-Wconversion]
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/catcache.h:23,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/syscache.h:19,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/pljava.h:33,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/JNICalls.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/type/String_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/BigDecimal.c:13:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/catcache.h:23,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/syscache.h:19,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/pljava.h:33,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/JNICalls.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/Byte.c:9:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20140110/f5b9c00c/attachment-0001.html;



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-10 18:21  
  parent: 
  1 sibling, 1 reply; 27+ messages in thread

From:  @ 2014-01-10 18:21 UTC (permalink / raw)

On Fri, 10 Jan 2014 09:04:02 -0800
Hal Hildebrand <hal.hildebrand at me.com> wrote:

> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2:
> error: unknown type name ?int4?
> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2:
> error: unknown type name ?int2?
...
> [ERROR]
> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2:
> error: unknown type name ?int4?

I'll try to reproduce your problem, but let me ask a couple of
questions:

As changes in Postgresql 9.3 include
"Remove typedefs for int2/int4 as they are better represented
 as int16/int32 (Peter Eisentraut)".
http://www.postgresql.org/docs/9.3/static/release-9-3.html

Maybe you have some 9.3 header files anywhere in your system?
Did you ever installed 9.3 in that computer?

-- 
Alberto Cabello S?nchez <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-10 19:08  
  parent: 
  0 siblings, 0 replies; 27+ messages in thread

From:  @ 2014-01-10 19:08 UTC (permalink / raw)

I sent the VM to Hal and only installed 9.2 on it.

     -- John


On Fri, Jan 10, 2014 at 11:21 AM, Alberto Cabello S?nchez
<alberto at unex.es>wrote:

> On Fri, 10 Jan 2014 09:04:02 -0800
> Hal Hildebrand <hal.hildebrand at me.com> wrote:
>
> > [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2:
> > error: unknown type name ?int4?
> > [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2:
> > error: unknown type name ?int2?
> ...
> > [ERROR]
> > [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2:
> > error: unknown type name ?int4?
>
> I'll try to reproduce your problem, but let me ask a couple of
> questions:
>
> As changes in Postgresql 9.3 include
> "Remove typedefs for int2/int4 as they are better represented
>  as int16/int32 (Peter Eisentraut)".
> http://www.postgresql.org/docs/9.3/static/release-9-3.html
>
> Maybe you have some 9.3 header files anywhere in your system?
> Did you ever installed 9.3 in that computer?
>
> --
> Alberto Cabello S?nchez <alberto at unex.es>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at lists.pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20140110/4fb15544/attachment.html;



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-10 20:33  
  parent: 
  1 sibling, 1 reply; 27+ messages in thread

From:  @ 2014-01-10 20:33 UTC (permalink / raw)

That's very strange indeed:

> [INFO] Compiling 51 native files
> [ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
> [ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
> [ERROR]                  from /usr/include/postgresql/9.2/server/utils/snapshot.h:16,
> [ERROR]                  from /usr/include/postgresql/9.2/server/utils/acl.h:29,
> [ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/AclId.c:11:
> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?

This shouldn't happen. On my system, I just saw AclId.c contains

#include <postgres.h>

which, in turns, has

#include "c.h"

And actually, I can read in the c.h file:

" c.h
 Fundamental C definitions.  This is included by every .c file in
 PostgreSQL (via either postgres.h or postgres_fe.h, as appropriate)."

Everything seems OK to me. Is a way we could see the exact compiler
command being executed?

-- 
Alberto Cabello S?nchez
<alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-10 20:57  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-10 20:57 UTC (permalink / raw)

I'll rerun with -X and see what I can reveal. 

> On Jan 10, 2014, at 12:33 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
> That's very strange indeed:
> 
>> [INFO] Compiling 51 native files
>> [ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
>> [ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
>> [ERROR]                  from /usr/include/postgresql/9.2/server/utils/snapshot.h:16,
>> [ERROR]                  from /usr/include/postgresql/9.2/server/utils/acl.h:29,
>> [ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/AclId.c:11:
>> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
>> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
> 
> This shouldn't happen. On my system, I just saw AclId.c contains
> 
> #include <postgres.h>
> 
> which, in turns, has
> 
> #include "c.h"
> 
> And actually, I can read in the c.h file:
> 
> " c.h
> Fundamental C definitions.  This is included by every .c file in
> PostgreSQL (via either postgres.h or postgres_fe.h, as appropriate)."
> 
> Everything seems OK to me. Is a way we could see the exact compiler
> command being executed?
> 
> -- 
> Alberto Cabello S?nchez
> <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-12 01:37  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-12 01:37 UTC (permalink / raw)

Here?s the link to the output run with -X, which seems to have all the relevant information.  

	https://www.dropbox.com/s/imqafhfb9lflbkr/out.txt

-Hal


On Jan 10, 2014, at 12:57 PM, Hal Hildebrand <hal.hildebrand at me.com> wrote:

> I'll rerun with -X and see what I can reveal. 
> 
>> On Jan 10, 2014, at 12:33 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
>> 
>> That's very strange indeed:
>> 
>>> [INFO] Compiling 51 native files
>>> [ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
>>> [ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
>>> [ERROR]                  from /usr/include/postgresql/9.2/server/utils/snapshot.h:16,
>>> [ERROR]                  from /usr/include/postgresql/9.2/server/utils/acl.h:29,
>>> [ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/AclId.c:11:
>>> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
>>> [ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
>> 
>> This shouldn't happen. On my system, I just saw AclId.c contains
>> 
>> #include <postgres.h>
>> 
>> which, in turns, has
>> 
>> #include "c.h"
>> 
>> And actually, I can read in the c.h file:
>> 
>> " c.h
>> Fundamental C definitions.  This is included by every .c file in
>> PostgreSQL (via either postgres.h or postgres_fe.h, as appropriate)."
>> 
>> Everything seems OK to me. Is a way we could see the exact compiler
>> command being executed?
>> 
>> -- 
>> Alberto Cabello S?nchez
>> <alberto at unex.es>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at lists.pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-12 13:31  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-12 13:31 UTC (permalink / raw)

On Sat, 11 Jan 2014 17:37:10 -0800
Hal Hildebrand <hal.hildebrand at me.com> wrote:

> Here?s the link to the output run with -X, which seems to have all
> the relevant information.  
> 
> 	https://www.dropbox.com/s/imqafhfb9lflbkr/out.txt
> 

I think this is wrong:

[DEBUG]   (f) includePaths = [null, null, /home/pljava/git/pljava/pljava-so/src/main/include/, /home/pljava/git/pljava/pljava-so/target/nar/javah-include/]

includePaths is not hardcoded, but defined in pljava-so/pom.xml as

    <includePaths>
      <includePath>${PGSQL_INCLUDEDIR}</includePath>
      <includePath>${PGSQL_INCLUDEDIR-SERVER}</includePath>
      <includePath>/home/pljava/git/pljava/pljava-so/src/main/include/</includePath>
      <includePath>/home/pljava/git/pljava/pljava-so/target/nar/javah-include/</includePath>
    </includePaths>

where PGSQL_* should come from pljava-so/pgsql.properties. It seems somehow your setting is not getting the required values (wrong or missing pljava-so/pgsql.properties?), as I just built it successfully with the output:

[DEBUG]   (f) includePaths = [/home/alberto/local/include, /home/alberto/local/include/postgresql/server, /home/alberto/src/pljava/pljava-so/src/main/include/, /home/alberto/src/pljava/pljava-so/target/nar/javah-include/]

Hope that helps.

-- 
Alberto Cabello S?nchez <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-12 16:07  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-12 16:07 UTC (permalink / raw)

So, that?s pretty darn bizarre, as I have the pgsql.properties file in that directory and it has both of those properties defined.

https://www.dropbox.com/s/so4v8iiqhflxsed/pgsql.properties

On Jan 12, 2014, at 5:31 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:

> On Sat, 11 Jan 2014 17:37:10 -0800
> Hal Hildebrand <hal.hildebrand at me.com> wrote:
> 
>> Here?s the link to the output run with -X, which seems to have all
>> the relevant information.  
>> 
>> 	https://www.dropbox.com/s/imqafhfb9lflbkr/out.txt
>> 
> 
> I think this is wrong:
> 
> [DEBUG]   (f) includePaths = [null, null, /home/pljava/git/pljava/pljava-so/src/main/include/, /home/pljava/git/pljava/pljava-so/target/nar/javah-include/]
> 
> includePaths is not hardcoded, but defined in pljava-so/pom.xml as
> 
>    <includePaths>
>      <includePath>${PGSQL_INCLUDEDIR}</includePath>
>      <includePath>${PGSQL_INCLUDEDIR-SERVER}</includePath>
>      <includePath>/home/pljava/git/pljava/pljava-so/src/main/include/</includePath>
>      <includePath>/home/pljava/git/pljava/pljava-so/target/nar/javah-include/</includePath>
>    </includePaths>
> 
> where PGSQL_* should come from pljava-so/pgsql.properties. It seems somehow your setting is not getting the required values (wrong or missing pljava-so/pgsql.properties?), as I just built it successfully with the output:
> 
> [DEBUG]   (f) includePaths = [/home/alberto/local/include, /home/alberto/local/include/postgresql/server, /home/alberto/src/pljava/pljava-so/src/main/include/, /home/alberto/src/pljava/pljava-so/target/nar/javah-include/]
> 
> Hope that helps.
> 
> -- 
> Alberto Cabello S?nchez <alberto at unex.es>




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-12 19:32  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-12 19:32 UTC (permalink / raw)

So, I went in and explicitly put the properties in the pom, rather than reading them from the prop file.  This fixes the problem you pointed out, but I still can?t build.  

Here?s the link to the -X output:  https://www.dropbox.com/s/7gl8jshllwccswi/out-with-props.txt

Looks like much the same errors:

[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR] In file included from /usr/include/postgresql/9.2/server/access/tupdesc.h:18:0,
[ERROR] [ERROR]                  from /usr/include/postgresql/9.2/server/access/htup.h:17,
                 from /usr/include/postgresql/9.2/server/access/htup.h:17,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/snapshot.h:16,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/catcache.h:23,
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/acl.h:29,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/AclId.c:11:
[ERROR]                  from /usr/include/postgresql/9.2/server/utils/syscache.h:19,
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/pljava.h:33,
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/JNICalls.h:12,
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject.h:12,
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/PgObject_priv.h:12,
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/include/pljava/type/Type_priv.h:12,
[ERROR]                  from /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c:13:
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:57:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:63:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:78:2: error: unknown type name ?int2?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:84:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:93:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:101:2: error: unknown type name ?int4?
[ERROR] /usr/include/postgresql/9.2/server/catalog/pg_attribute.h:143:2: error: unknown type name ?int4?


On Jan 12, 2014, at 8:07 AM, Hal Hildebrand <hal.hildebrand at me.com> wrote:

> So, that?s pretty darn bizarre, as I have the pgsql.properties file in that directory and it has both of those properties defined.
> 
> https://www.dropbox.com/s/so4v8iiqhflxsed/pgsql.properties
> 
> On Jan 12, 2014, at 5:31 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
>> On Sat, 11 Jan 2014 17:37:10 -0800
>> Hal Hildebrand <hal.hildebrand at me.com> wrote:
>> 
>>> Here?s the link to the output run with -X, which seems to have all
>>> the relevant information.  
>>> 
>>> 	https://www.dropbox.com/s/imqafhfb9lflbkr/out.txt
>>> 
>> 
>> I think this is wrong:
>> 
>> [DEBUG]   (f) includePaths = [null, null, /home/pljava/git/pljava/pljava-so/src/main/include/, /home/pljava/git/pljava/pljava-so/target/nar/javah-include/]
>> 
>> includePaths is not hardcoded, but defined in pljava-so/pom.xml as
>> 
>>   <includePaths>
>>     <includePath>${PGSQL_INCLUDEDIR}</includePath>
>>     <includePath>${PGSQL_INCLUDEDIR-SERVER}</includePath>
>>     <includePath>/home/pljava/git/pljava/pljava-so/src/main/include/</includePath>
>>     <includePath>/home/pljava/git/pljava/pljava-so/target/nar/javah-include/</includePath>
>>   </includePaths>
>> 
>> where PGSQL_* should come from pljava-so/pgsql.properties. It seems somehow your setting is not getting the required values (wrong or missing pljava-so/pgsql.properties?), as I just built it successfully with the output:
>> 
>> [DEBUG]   (f) includePaths = [/home/alberto/local/include, /home/alberto/local/include/postgresql/server, /home/alberto/src/pljava/pljava-so/src/main/include/, /home/alberto/src/pljava/pljava-so/target/nar/javah-include/]
>> 
>> Hope that helps.
>> 
>> -- 
>> Alberto Cabello S?nchez <alberto at unex.es>
> 
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at lists.pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-12 20:40  
  parent: 
  0 siblings, 2 replies; 27+ messages in thread

From:  @ 2014-01-12 20:40 UTC (permalink / raw)

I just ran the command (assuming that it is irrelevant that you are on
a 64-bit system and I am on a 32-bit one) adjusting to my paths:

gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
'-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
-DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
-I/home/alberto/src/pljava/pljava-so/target/nar/javah-include  \
-I/opt/jdk6/include  \
-I/opt/jdk6/include/linux -I/home/alberto/local/include \
-I/home/alberto/local/include/postgresql/server  \
-I/home/alberto/src/pljava/pljava-so/src/main/include  \
-I/home/alberto/src/pljava/pljava-so/target/nar/javah-include  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Any.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/Backend.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Boolean.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Coerce.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Date.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/ErrorData.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/ExecutionPlan.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/Function.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/Invocation.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/JNICalls.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/LargeObject.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Oid.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/PgSavepoint.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Relation.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/Session.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/String.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Time.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/TriggerData.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Type.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/type/Void.c  \
/home/alberto/src/pljava/pljava-so/src/main/c/backports.c

It gives lots of "Warning:", but no error. I wonder if you can post the
output of (or the equivalent command on your system):

find /usr/include/ -name "postgres*.h"

So we could check postgres.h and postgres_fe.h are on the right place.

-- 
Alberto Cabello S?nchez <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-12 22:49  
  parent: 
  1 sibling, 0 replies; 27+ messages in thread

From:  @ 2014-01-12 22:49 UTC (permalink / raw)

Will do. Thx!

> On Jan 12, 2014, at 12:40 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
> I just ran the command (assuming that it is irrelevant that you are on
> a 64-bit system and I am on a 32-bit one) adjusting to my paths:
> 
> gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
> '-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
> -DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
> -I/home/alberto/src/pljava/pljava-so/target/nar/javah-include  \
> -I/opt/jdk6/include  \
> -I/opt/jdk6/include/linux -I/home/alberto/local/include \
> -I/home/alberto/local/include/postgresql/server  \
> -I/home/alberto/src/pljava/pljava-so/src/main/include  \
> -I/home/alberto/src/pljava/pljava-so/target/nar/javah-include  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Any.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Backend.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Boolean.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Coerce.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Date.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/ErrorData.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/ExecutionPlan.c \
> /home/alberto/src/pljava/pljava-so/src/main/c/Function.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Invocation.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/JNICalls.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/LargeObject.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Oid.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/PgSavepoint.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Relation.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Session.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/String.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Time.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/TriggerData.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Type.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Void.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/backports.c
> 
> It gives lots of "Warning:", but no error. I wonder if you can post the
> output of (or the equivalent command on your system):
> 
> find /usr/include/ -name "postgres*.h"
> 
> So we could check postgres.h and postgres_fe.h are on the right place.
> 
> -- 
> Alberto Cabello S?nchez <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 01:21  
  parent: 
  1 sibling, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 01:21 UTC (permalink / raw)

Okay, the find turned up the usual suspects:

/usr/include/postgresql/internal/postgres_fe.h
/usr/include/postgresql/postgres_fe.h
/usr/include/postgresql/postgres_ext.h
/usr/include/postgresql/9.2/server/postgres_fe.h
/usr/include/postgresql/9.2/server/postgres_ext.h
/usr/include/postgresql/9.2/server/postgres.h
/usr/include/postgresql/postgres.h

So, I took the gcc command you used, substituted my locations and it indeed compiles with a lot of warnings, but no errors.  So, that leaves a bit of mystery, I guess.  What am I missing either from my environment, or locations that are making the compilation fail in the maven build?

Here?s my command that worked:

 gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
'-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
-DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
-I/home/pljava/src/pljava/pljava-so/target/nar/javah-include  \
-I/opt/jdk6/include  \
-I/opt/jdk6/include/linux -I/home/pljava/local/include \
-I/usr/include/postgresql/9.2/server  \
-I/home/pljava/git/pljava/pljava-so/src/main/include  \
-I/home/pljava/git/pljava/pljava-so/target/nar/javah-include  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/Backend.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Boolean.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Coerce.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Date.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/ErrorData.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/ExecutionPlan.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/Function.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/Invocation.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/JNICalls.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/LargeObject.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Oid.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/PgSavepoint.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Relation.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/Session.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/String.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Time.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/TriggerData.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Type.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/type/Void.c  \
/home/pljava/git/pljava/pljava-so/src/main/c/backports.c

On Jan 12, 2014, at 12:40 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:

> I just ran the command (assuming that it is irrelevant that you are on
> a 64-bit system and I am on a 32-bit one) adjusting to my paths:
> 
> gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
> '-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
> -DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
> -I/home/alberto/src/pljava/pljava-so/target/nar/javah-include  \
> -I/opt/jdk6/include  \
> -I/opt/jdk6/include/linux -I/home/alberto/local/include \
> -I/home/alberto/local/include/postgresql/server  \
> -I/home/alberto/src/pljava/pljava-so/src/main/include  \
> -I/home/alberto/src/pljava/pljava-so/target/nar/javah-include  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Any.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Backend.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Boolean.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Coerce.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Date.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/ErrorData.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/ExecutionPlan.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Function.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Invocation.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/JNICalls.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/LargeObject.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Oid.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/PgSavepoint.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Relation.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/Session.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/String.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Time.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/TriggerData.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Type.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/type/Void.c  \
> /home/alberto/src/pljava/pljava-so/src/main/c/backports.c
> 
> It gives lots of "Warning:", but no error. I wonder if you can post the
> output of (or the equivalent command on your system):
> 
> find /usr/include/ -name "postgres*.h"
> 
> So we could check postgres.h and postgres_fe.h are on the right place.
> 
> -- 
> Alberto Cabello S?nchez <alberto at unex.es>




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 07:35  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 07:35 UTC (permalink / raw)

On Sun, Jan 12, 2014 at 05:21:57PM -0800, Hal Hildebrand wrote:
> 
>  gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
> '-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
> -DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
> -I/home/pljava/src/pljava/pljava-so/target/nar/javah-include  \
> -I/opt/jdk6/include  \
> -I/opt/jdk6/include/linux -I/home/pljava/local/include \
> -I/usr/include/postgresql/9.2/server  \
> -I/home/pljava/git/pljava/pljava-so/src/main/include  \
> -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Boolean.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Coerce.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Date.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/ErrorData.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/ExecutionPlan.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/Function.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/Invocation.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/JNICalls.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/LargeObject.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Oid.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/PgSavepoint.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Relation.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/Session.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/String.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Time.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/TriggerData.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Type.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/type/Void.c  \
> /home/pljava/git/pljava/pljava-so/src/main/c/backports.c
 
Oh, nice... I was about to compare that with the command issued by your maven
build, but I see the Dropbox file got owerwritten...

Could you put there the output of the -X building again?

-- 
-----------------------
Alberto Cabello S?nchez
alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 12:32  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 12:32 UTC (permalink / raw)

Lol. Sorry. Will regenerate. 

> On Jan 12, 2014, at 11:35 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
>> On Sun, Jan 12, 2014 at 05:21:57PM -0800, Hal Hildebrand wrote:
>> 
>> gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
>> '-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
>> -DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
>> -I/home/pljava/src/pljava/pljava-so/target/nar/javah-include  \
>> -I/opt/jdk6/include  \
>> -I/opt/jdk6/include/linux -I/home/pljava/local/include \
>> -I/usr/include/postgresql/9.2/server  \
>> -I/home/pljava/git/pljava/pljava-so/src/main/include  \
>> -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Boolean.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Coerce.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Date.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/ErrorData.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/ExecutionPlan.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/Function.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/Invocation.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/JNICalls.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/LargeObject.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Oid.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/PgSavepoint.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Relation.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/Session.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/String.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Time.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/TriggerData.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Type.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Void.c  \
>> /home/pljava/git/pljava/pljava-so/src/main/c/backports.c
> 
> Oh, nice... I was about to compare that with the command issued by your maven
> build, but I see the Dropbox file got owerwritten...
> 
> Could you put there the output of the -X building again?
> 
> -- 
> -----------------------
> Alberto Cabello S?nchez
> alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 12:36  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 12:36 UTC (permalink / raw)

https://www.dropbox.com/s/7gl8jshllwccswi/out-with-props.txt

That's the -X output with the props hard wired. 

> On Jan 13, 2014, at 4:32 AM, Hal Hildebrand <hal.hildebrand at me.com> wrote:
> 
> Lol. Sorry. Will regenerate. 
> 
>>> On Jan 12, 2014, at 11:35 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
>>> 
>>> On Sun, Jan 12, 2014 at 05:21:57PM -0800, Hal Hildebrand wrote:
>>> 
>>> gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion -fPIC -c -fPIC  \
>>> '-DPKGLIBDIR="target/lib/"' -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2  \
>>> -DPGSQL_PATCH_VER=6 -DLinux -DGNU_GCC  \
>>> -I/home/pljava/src/pljava/pljava-so/target/nar/javah-include  \
>>> -I/opt/jdk6/include  \
>>> -I/opt/jdk6/include/linux -I/home/pljava/local/include \
>>> -I/usr/include/postgresql/9.2/server  \
>>> -I/home/pljava/git/pljava/pljava-so/src/main/include  \
>>> -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/Backend.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Boolean.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Coerce.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Date.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/ErrorData.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/ExecutionPlan.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/Function.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/HeapTupleHeader.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/Invocation.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/JNICalls.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/LargeObject.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Oid.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/PgSavepoint.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Relation.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/SQLInputFromChunk.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/SQLOutputToChunk.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/Session.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/String.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Time.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/TriggerData.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/TupleDesc.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Type.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/type/Void.c  \
>>> /home/pljava/git/pljava/pljava-so/src/main/c/backports.c
>> 
>> Oh, nice... I was about to compare that with the command issued by your maven
>> build, but I see the Dropbox file got owerwritten...
>> 
>> Could you put there the output of the -X building again?
>> 
>> -- 
>> -----------------------
>> Alberto Cabello S?nchez
>> alberto at unex.es
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at lists.pgfoundry.org
> http://lists.pgfoundry.org/mailman/listinfo/pljava-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pgfoundry.org/pipermail/pljava-dev/attachments/20140113/b41d2da0/attachment.html;



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 13:13  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 13:13 UTC (permalink / raw)

This is really puzzling me...

It says the command

gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion \
    -fPIC -c -fPIC -DPKGLIBDIR="target/lib/" \
    -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2 -DPGSQL_PATCH_VER=6 \
    -DLinux -DGNU_GCC \
    -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include \
    -I/usr/lib/jvm/java-6-openjdk-amd64/include \
    -I/usr/lib/jvm/java-6-openjdk-amd64/include/linux \
    -I/usr/include/postgresql \
    -I/usr/include/postgresql/9.2/server \
    -I/home/pljava/git/pljava/pljava-so/src/main/include \
    -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include \
    /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c

fails, but I see no difference with the command you ran manually without
fatal errors.

More frustrating even as I'm unable to get a non-working environment, what is
rather ironic.

-- 
-----------------------
Alberto Cabello S?nchez
alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 17:23  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 17:23 UTC (permalink / raw)

Hmmm. Well, I will see what I can dig up. At least I know it is possible in this environment and there's just some issues with the maven invocation of the plugin. 

Thanks!  You've helped me out a lot. 

-Hal

> On Jan 13, 2014, at 5:13 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
> This is really puzzling me...
> 
> It says the command
> 
> gcc -Wall -Wno-long-long -Wpointer-arith -Wconversion \
>    -fPIC -c -fPIC -DPKGLIBDIR="target/lib/" \
>    -DPGSQL_MAJOR_VER=9 -DPGSQL_MINOR_VER=2 -DPGSQL_PATCH_VER=6 \
>    -DLinux -DGNU_GCC \
>    -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include \
>    -I/usr/lib/jvm/java-6-openjdk-amd64/include \
>    -I/usr/lib/jvm/java-6-openjdk-amd64/include/linux \
>    -I/usr/include/postgresql \
>    -I/usr/include/postgresql/9.2/server \
>    -I/home/pljava/git/pljava/pljava-so/src/main/include \
>    -I/home/pljava/git/pljava/pljava-so/target/nar/javah-include \
>    /home/pljava/git/pljava/pljava-so/src/main/c/type/Any.c
> 
> fails, but I see no difference with the command you ran manually without
> fatal errors.
> 
> More frustrating even as I'm unable to get a non-working environment, what is
> rather ironic.
> 
> -- 
> -----------------------
> Alberto Cabello S?nchez
> alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-13 19:06  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-13 19:06 UTC (permalink / raw)

On Mon, 13 Jan 2014 09:23:05 -0800
Hal Hildebrand <hal.hildebrand at me.com> wrote:

> Hmmm. Well, I will see what I can dig up. At least I know it is possible
> in this environment and there's just some issues with the maven invocation
> of the plugin. 

FWIW, I don't know what "this environment" is, but I just ran the build in
a 64-bit Ubuntu 12.04 and it works like a charm.

> Thanks!  You've helped me out a lot. 

You're welcome (and to be sincere, I thought it would be easier, lol)!

Regards,

-- 
Alberto Cabello S?nchez <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 01:36  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-14 01:36 UTC (permalink / raw)

What were your environment settings?  I noticed that there are environment variables needed. 

Perhaps that could be an issue here?

> On Jan 13, 2014, at 11:06 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
> On Mon, 13 Jan 2014 09:23:05 -0800
> Hal Hildebrand <hal.hildebrand at me.com> wrote:
> 
>> Hmmm. Well, I will see what I can dig up. At least I know it is possible
>> in this environment and there's just some issues with the maven invocation
>> of the plugin.
> 
> FWIW, I don't know what "this environment" is, but I just ran the build in
> a 64-bit Ubuntu 12.04 and it works like a charm.
> 
>> Thanks!  You've helped me out a lot.
> 
> You're welcome (and to be sincere, I thought it would be easier, lol)!
> 
> Regards,
> 
> -- 
> Alberto Cabello S?nchez <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 07:38  
  parent: 
  0 siblings, 2 replies; 27+ messages in thread

From:  @ 2014-01-14 07:38 UTC (permalink / raw)

On Mon, Jan 13, 2014 at 05:36:28PM -0800, Hal Hildebrand wrote:
> What were your environment settings?  I noticed that there are environment
> variables needed. 

I only needed JAVA6_HOME set to a JAVA 6 JDK, as read in the docs, and PATH so
that pg_config is found:

JAVA6_HOME=/usr/lib/jvm/java-6-openjdk-amd64/
PATH=$PATH:$HOME/local/bin

If it is not right, there is another error ("Fatal Error: Unable to find
package java.lang in classpath or bootclasspath" and
"/home/alberto/src/pljava/pljava-so/build.xml:5: Execute failed:
java.io.IOException: Cannot run program "pg_config" (in directory
"/home/alberto/src/pljava/pljava-so"): java.io.IOException: error=2, No such
file or directory", resp.).

> Perhaps that could be an issue here?

I don't think so, but just in case:

http://188.165.106.21/env.gz

> > On Jan 13, 2014, at 11:06 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> > 
> > On Mon, 13 Jan 2014 09:23:05 -0800
> > Hal Hildebrand <hal.hildebrand at me.com> wrote:
> > 
> >> Hmmm. Well, I will see what I can dig up. At least I know it is possible
> >> in this environment and there's just some issues with the maven invocation
> >> of the plugin.
> > 
> > FWIW, I don't know what "this environment" is, but I just ran the build in
> > a 64-bit Ubuntu 12.04 and it works like a charm.


-- 
-----------------------
Alberto Cabello S?nchez
alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 12:51  
  parent: 
  1 sibling, 0 replies; 27+ messages in thread

From:  @ 2014-01-14 12:51 UTC (permalink / raw)

Thx

> On Jan 13, 2014, at 11:38 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
>> On Mon, Jan 13, 2014 at 05:36:28PM -0800, Hal Hildebrand wrote:
>> What were your environment settings?  I noticed that there are environment
>> variables needed.
> 
> I only needed JAVA6_HOME set to a JAVA 6 JDK, as read in the docs, and PATH so
> that pg_config is found:
> 
> JAVA6_HOME=/usr/lib/jvm/java-6-openjdk-amd64/
> PATH=$PATH:$HOME/local/bin
> 
> If it is not right, there is another error ("Fatal Error: Unable to find
> package java.lang in classpath or bootclasspath" and
> "/home/alberto/src/pljava/pljava-so/build.xml:5: Execute failed:
> java.io.IOException: Cannot run program "pg_config" (in directory
> "/home/alberto/src/pljava/pljava-so"): java.io.IOException: error=2, No such
> file or directory", resp.).
> 
>> Perhaps that could be an issue here?
> 
> I don't think so, but just in case:
> 
> http://188.165.106.21/env.gz
> 
>>> On Jan 13, 2014, at 11:06 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
>>> 
>>> On Mon, 13 Jan 2014 09:23:05 -0800
>>> Hal Hildebrand <hal.hildebrand at me.com> wrote:
>>> 
>>>> Hmmm. Well, I will see what I can dig up. At least I know it is possible
>>>> in this environment and there's just some issues with the maven invocation
>>>> of the plugin.
>>> 
>>> FWIW, I don't know what "this environment" is, but I just ran the build in
>>> a 64-bit Ubuntu 12.04 and it works like a charm.
> 
> 
> -- 
> -----------------------
> Alberto Cabello S?nchez
> alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 12:52  
  parent: 
  1 sibling, 1 reply; 27+ messages in thread

From:  @ 2014-01-14 12:52 UTC (permalink / raw)

Also, out of curiosity, what version of maven are you using?

> On Jan 13, 2014, at 11:38 PM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
>> On Mon, Jan 13, 2014 at 05:36:28PM -0800, Hal Hildebrand wrote:
>> What were your environment settings?  I noticed that there are environment
>> variables needed.
> 
> I only needed JAVA6_HOME set to a JAVA 6 JDK, as read in the docs, and PATH so
> that pg_config is found:
> 
> JAVA6_HOME=/usr/lib/jvm/java-6-openjdk-amd64/
> PATH=$PATH:$HOME/local/bin
> 
> If it is not right, there is another error ("Fatal Error: Unable to find
> package java.lang in classpath or bootclasspath" and
> "/home/alberto/src/pljava/pljava-so/build.xml:5: Execute failed:
> java.io.IOException: Cannot run program "pg_config" (in directory
> "/home/alberto/src/pljava/pljava-so"): java.io.IOException: error=2, No such
> file or directory", resp.).
> 
>> Perhaps that could be an issue here?
> 
> I don't think so, but just in case:
> 
> http://188.165.106.21/env.gz
> 
>>> On Jan 13, 2014, at 11:06 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
>>> 
>>> On Mon, 13 Jan 2014 09:23:05 -0800
>>> Hal Hildebrand <hal.hildebrand at me.com> wrote:
>>> 
>>>> Hmmm. Well, I will see what I can dig up. At least I know it is possible
>>>> in this environment and there's just some issues with the maven invocation
>>>> of the plugin.
>>> 
>>> FWIW, I don't know what "this environment" is, but I just ran the build in
>>> a 64-bit Ubuntu 12.04 and it works like a charm.
> 
> 
> -- 
> -----------------------
> Alberto Cabello S?nchez
> alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 13:08  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-14 13:08 UTC (permalink / raw)

On Tue, Jan 14, 2014 at 04:52:47AM -0800, Hal Hildebrand wrote:
> Also, out of curiosity, what version of maven are you using?
 
$ mvn --version
Apache Maven 2.2.1 (rdebian-8)
Java version: 1.6.0_27
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: es_ES, platform encoding: UTF-8
OS name: "linux" version: "3.8.0-34-generic" arch: "amd64" Family: "unix"

The one which comes with Ubuntu 12.04 LTS.

-- 
-----------------------
Alberto Cabello S?nchez
alberto at unex.es



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 19:02  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-14 19:02 UTC (permalink / raw)

aha.  Can you try to see if you can get a successful build with 3.x (latest would be great).  

I have a feeling that this may be the root of the problem.  2.x is ancient.

On Jan 14, 2014, at 5:08 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:

> On Tue, Jan 14, 2014 at 04:52:47AM -0800, Hal Hildebrand wrote:
>> Also, out of curiosity, what version of maven are you using?
> 
> $ mvn --version
> Apache Maven 2.2.1 (rdebian-8)
> Java version: 1.6.0_27
> Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
> Default locale: es_ES, platform encoding: UTF-8
> OS name: "linux" version: "3.8.0-34-generic" arch: "amd64" Family: "unix"
> 
> The one which comes with Ubuntu 12.04 LTS.
> 
> -- 
> -----------------------
> Alberto Cabello S?nchez
> alberto at unex.es




^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 19:45  
  parent: 
  0 siblings, 1 reply; 27+ messages in thread

From:  @ 2014-01-14 19:45 UTC (permalink / raw)

On Tue, 14 Jan 2014 11:02:04 -0800
Hal Hildebrand <hal.hildebrand at me.com> wrote:

> aha.  Can you try to see if you can get a successful build with 3.x (latest
> would be great).  

$ /opt/apache-maven-3.1.1/bin/mvn clean package
 ...blah blah blah... lots of WARNINGs ...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] PostgreSQL pl/java ................................ SUCCESS [0.260s]
[INFO] PL/JAVA API ....................................... SUCCESS [5.087s]
[INFO] pl/java implementation ............................ SUCCESS [6.172s]
[INFO] pl/java deploy .................................... SUCCESS [0.634s]
[INFO] pl/java Ant Tasks ................................. SUCCESS [1.216s]
[INFO] pl/java examples .................................. SUCCESS [0.909s]
[INFO] pl/java server side library ....................... SUCCESS [19.716s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.800s
[INFO] Finished at: Tue Jan 14 20:37:57 CET 2014
[INFO] Final Memory: 16M/39M
[INFO] ------------------------------------------------------------------------


--
Alberto Cabello S?nchez
<alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread

* [Pljava-dev] Errors building SO
@ 2014-01-14 23:13  
  parent: 
  0 siblings, 0 replies; 27+ messages in thread

From:  @ 2014-01-14 23:13 UTC (permalink / raw)

Arg!  Okay.  

Appreciate the test. Thx

> On Jan 14, 2014, at 11:45 AM, Alberto Cabello S?nchez <alberto at unex.es> wrote:
> 
> On Tue, 14 Jan 2014 11:02:04 -0800
> Hal Hildebrand <hal.hildebrand at me.com> wrote:
> 
>> aha.  Can you try to see if you can get a successful build with 3.x (latest
>> would be great).  
> 
> $ /opt/apache-maven-3.1.1/bin/mvn clean package
> ...blah blah blah... lots of WARNINGs ...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] PostgreSQL pl/java ................................ SUCCESS [0.260s]
> [INFO] PL/JAVA API ....................................... SUCCESS [5.087s]
> [INFO] pl/java implementation ............................ SUCCESS [6.172s]
> [INFO] pl/java deploy .................................... SUCCESS [0.634s]
> [INFO] pl/java Ant Tasks ................................. SUCCESS [1.216s]
> [INFO] pl/java examples .................................. SUCCESS [0.909s]
> [INFO] pl/java server side library ....................... SUCCESS [19.716s]
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 35.800s
> [INFO] Finished at: Tue Jan 14 20:37:57 CET 2014
> [INFO] Final Memory: 16M/39M
> [INFO] ------------------------------------------------------------------------
> 
> 
> --
> Alberto Cabello S?nchez
> <alberto at unex.es>



^ permalink  raw  reply  [nested|flat] 27+ messages in thread


end of thread, other threads:[~2014-01-14 23:13 UTC | newest]

Thread overview: 27+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2014-01-07 14:24 [Pljava-dev] Errors building SO 
2014-01-10 17:04 ` 
2014-01-10 18:21   ` 
2014-01-10 19:08     ` 
2014-01-10 20:33   ` 
2014-01-10 20:57     ` 
2014-01-12 01:37       ` 
2014-01-12 13:31         ` 
2014-01-12 16:07           ` 
2014-01-12 19:32             ` 
2014-01-12 20:40               ` 
2014-01-12 22:49                 ` 
2014-01-13 01:21                 ` 
2014-01-13 07:35                   ` 
2014-01-13 12:32                     ` 
2014-01-13 12:36                       ` 
2014-01-13 13:13                         ` 
2014-01-13 17:23                           ` 
2014-01-13 19:06                             ` 
2014-01-14 01:36                               ` 
2014-01-14 07:38                                 ` 
2014-01-14 12:51                                   ` 
2014-01-14 12:52                                   ` 
2014-01-14 13:08                                     ` 
2014-01-14 19:02                                       ` 
2014-01-14 19:45                                         ` 
2014-01-14 23:13                                           ` 

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox