[Pljava-dev] Errors building SO

From: hal(dot)hildebrand at me(dot)com (Hal Hildebrand)
To:
Subject: [Pljava-dev] Errors building SO
Date: 2014-01-12 19:32:03
Message-ID: D8B285F5-37F8-44AC-8C03-C8F356D0972D@me.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pljava-dev

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

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Alberto Cabello Sánchez 2014-01-12 20:40:14 [Pljava-dev] Errors building SO
Previous Message Hal Hildebrand 2014-01-12 16:07:42 [Pljava-dev] Errors building SO