[postgis-devel] Building the extension on Solaris/amd64
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Thu May 16 04:58:36 PDT 2013
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
(first use in this function)
lwgeom_export.c:174:18: note: each undeclared identifier is reported
only once for each function it appears in
lwgeom_export.c:245:3: error: too few arguments to function ‘lwgeom_to_gml3’
In file included from ../libpgcommon/lwgeom_pg.h:22:0,
from lwgeom_export.c:21:
/home/pg90/rel/include/liblwgeom.h:1355:14: note: declared here
lwgeom_export.c: In function ‘LWGEOM_asKML’:
lwgeom_export.c:271:18: error: ‘OUT_MAX_DOUBLE_PRECISION’ undeclared
(first use in this function)
lwgeom_export.c: In function ‘LWGEOM_asGeoJson’:
lwgeom_export.c:349:18: error: ‘OUT_MAX_DOUBLE_PRECISION’ undeclared
(first use in this function)
lwgeom_export.c: In function ‘LWGEOM_asSVG’:
lwgeom_export.c:427:16: error: ‘OUT_MAX_DOUBLE_PRECISION’ undeclared
(first use in this function)
lwgeom_export.c: In function ‘LWGEOM_asX3D’:
lwgeom_export.c:471:18: error: ‘OUT_MAX_DOUBLE_PRECISION’ undeclared
(first use in this function)
lwgeom_export.c:470:6: warning: variable ‘is_dims’ set but not used
[-Wunused-but-set-variable]
lwgeom_export.c:469:6: warning: variable ‘is_deegree’ set but not used
[-Wunused-but-set-variable]
make[1]: *** [lwgeom_export.o] Error 1
make[1]: Leaving directory `/home/pg90/src/postgis-git/postgis'
make: *** [all] Error 1
> Actually both --includedir and --libdir are.
> I guess they result in -L/home/pg90/rel/lib and -I/home/pg90/rel/include
> being present in the build/link line before the local dirs, right?
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.
HTH,
Mark.
More information about the postgis-devel
mailing list