[postgis-devel] Building the extension on Solaris/amd64

Sandro Santilli strk at keybit.net
Thu May 16 07:07:58 PDT 2013


On Thu, May 16, 2013 at 12:58:36PM +0100, Mark Cave-Ayland wrote:
> On 16/05/13 12:38, Sandro Santilli wrote:
> 
> Hi strk,
> 
> >>At which step you get the error, and what's the error ?
> >>The --includedir sounds suspicious.
> 
> It fails after building liblwgeom during the postgis build part with
> the following:
> 
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
> -fwrapv -g -fpic -I/home/pg90/rel/include -I/home/pg90/rel/include
> -I/usr/include/libxml2 -I../liblwgeom -I../libpgcommon -I. -I.
> -I/home/pg90/rel-9.0.7/include/postgresql/server
> -I/home/pg90/rel-9.0.7/include/postgresql/internal -D_GNU_SOURCE
> -c -o lwgeom_export.o lwgeom_export.c
> lwgeom_export.c: In function ‘LWGEOM_asGML’:
> lwgeom_export.c:174:18: error: ‘OUT_MAX_DOUBLE_PRECISION’ undeclared

Is liblwgeom.h under any of the directories passed to -I
in the above call ?

> I've included the flags above so that you can compare. The reason I
> pass in a separate includedir and libdir is because I effectively
> chroot my PostGIS development under a separate unix user so that
> whatever I'm developing against doesn't start overwriting the system
> libraries I have installed as packages.

Can you reproduce without those switches ?

--strk;



More information about the postgis-devel mailing list