From: hal.hildebrand at me.com (Hal Hildebrand) Date: Fri, 10 Jan 2014 09:04:02 -0800 Subject: [Pljava-dev] Errors building SO In-Reply-To: <53D88E97-0A59-44A5-A477-208F800176C8@me.com> References: <53D88E97-0A59-44A5-A477-208F800176C8@me.com> Message-ID: <49D2416F-1812-4858-9934-0131C8139169@me.com> 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: