[postgis-users] Error building postgis 1.5.1 on Solaris Sparc 64 bit

Roberto Rodriguez Alcala rralcala at gmail.com
Thu Apr 22 08:41:46 PDT 2010


strk <strk <at> keybit.net> writes:

> 
> On Fri, Apr 16, 2010 at 04:05:01PM +0200, Teresa Fazio wrote:
> 
> > cc -Xa -xO3  -xspace -Xa  -xildoff  -m64  -xc99=none -xCC -KPIC 
> > -I/export/home/proc/ARC_WPT_DMT_Software/geos/include 
> > -I/export/home/proc/ARC_WPT_DMT_Software/proj/include 
> > -I/usr/include/libxml2 -I../liblwgeom -I. 
> > -I/export/home/proc/ARC_WPT_DMT_Software/postgres/8.4-
community/include/server 
> > -I/export/home/proc/ARC_WPT_DMT_Software/postgres/8.4-
community/include/internal 
> > -I/usr/include/libxml2  -I/zstore/pgsql_build/proto/usr/include 
> > -I/usr/sfw/include  -c -o lwgeom_pg.o lwgeom_pg.c
> > "../liblwgeom/liblwgeom.h", line 140: warning: function prototype 
> > parameters must have types
> > "../liblwgeom/liblwgeom.h", line 170: invalid token in #define macro 
> > parameters: ...
> > "../liblwgeom/liblwgeom.h", line 142: warning: old-style declaration or 
> > incorrect type for: va_dcl
> > "../liblwgeom/liblwgeom.h", line 177: syntax error before or at: typedef
> > "lwgeom_pg.h", line 44: invalid token in #define macro parameters: ...
> > cc: acomp failed for lwgeom_pg.c
> 
> Try building with GCC ?
> 
> --strk;
> 
>   ()   Free GIS & Flash consultant/developer
>   /\   http://strk.keybit.net/services.html
> 

I can confirm that compiling Postgis and Postgres with GCC passing the -m64 
works.

I did compile, Geos, Proj, Postgis and Postgres to make it work, because the 
original pg_config were telling postgis to use cc instead of gcc.

Hope it helps.






More information about the postgis-users mailing list