Re: can't compile Pl/Java - Mailing list pgsql-general

From Albe Laurenz
Subject Re: can't compile Pl/Java
Date
Msg-id D960CB61B694CF459DCFB4B0128514C26AADFA@exadv11.host.magwien.gv.at
Whole thread Raw
In response to can't compile Pl/Java  (Roger Mason <rmason@esd.mun.ca>)
List pgsql-general
Roger Mason wrote:
> I need to install Pl/java in my 8.0.12 PostgreSQL.  According to the
> documentation on the PL/java wiki I must compile from source.
>
> When I run make the following errors occur:
>
[...]
> i686-pc-linux-gnu-gcc -c -O2 -march=pentium-m -pipe -Wall
> -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels
> -fno-strict-aliasing -fpic  -I.
> -I/usr/include/postgresql/pgsql/server
> -I/usr/include/postgresql/pgsql/internal -D_GNU_SOURCE
> -DPKGLIBDIR=\"/usr/lib/postgresql\"
> -I/usr/local/share/pljava-1.3.0/src/C/include
> -I/usr/local/share/pljava-1.3.0/build/jni -DPGSQL_MAJOR_VER=8
> -DPGSQL_MINOR_VER=0 -DPGSQL_PATCH_VER=12
> -I"/home/rmason/.gentoo/java-config-2/current-user-vm/include"
> -I"/home/rmason/.gentoo/java-config-2/current-user-vm/include/linux"
> /usr/local/share/pljava-1.3.0/src/C/pljava/type/JavaWrapper.c
> -o type/JavaWrapper.o

> In file included from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/JNICalls.h:12,
>                  from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/PgObject.h:12,
>                  from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/PgObject_priv.h:12,
>                  from
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/type/Type_priv.h:12,
>                  from
> /usr/local/share/pljava-1.3.0/src/C/pljava/type/JavaWrapper.c:10:
> /usr/local/share/pljava-1.3.0/src/C/include/pljava/pljava.h:29:22: error: postgres.h: No such file or directory
[...]
>
> Then follow many other errors.
>
> The first error (not finding postgres.h) is puzzling because gcc is
> looking in the right place:
>
> /usr/include/postgresql/server/postgres.h

Is it? I see no -I/usr/include/postgresql/server in the
gcc command line. Please check again!

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Using Postgres as a "embedded" / SQL Lite database on Windows
Next
From: "Albe Laurenz"
Date:
Subject: Re: Start DB giving fatal message.(linux)