[postgis-devel] make check fails on Solaris 11.3 with version 2.3.6

Sandro Santilli strk at kbt.io
Fri Jan 19 12:11:43 PST 2018


On Fri, Jan 19, 2018 at 05:02:37PM +0100, Dechaux Eric CEN (BCQ STIG) wrote:
> Hi list,
> 
> Starting with version 2.3.6 building the regression tests fails on Solaris
> 11.3. Error is :
> 
> gcc -m64 -g -O2 -I/usr/include/pcre -I/appli/stig/11.3.2018-01/include
> -Wall -Wmissing-prototypes -I/appli/stig/11.3.2018-01/include
> -I/usr/include/pcre -I/appli/stig/11.3.2018-01/include -I.. -c -o
> cu_buildarea.o cu_buildarea.c
> In file included from cu_buildarea.c:17:0:
> .../liblwgeom_internal.h:178:45: error: unknown type name ‘LWORD’
>  void ptarray_swap_ordinates(POINTARRAY *pa, LWORD o1, LWORD o2);
>                                              ^

[..]

> While I understant why it is happening, I don't really know the proper way
> to fix this... Any idea ?

I don't understand why it is happening, LWORD is an typedef'd enum
in liblwgeom.h, is your build not including the correct liblwgeom.h
but rather a system one ? The order of those -I switches seem to
indeed be unsafe (-I.. should probably be the first one)

--strk;


More information about the postgis-devel mailing list