[postgis-users] Issues with compiling PostGIS 1.5.8 on FreeBSD

mista_pink at web.de mista_pink at web.de
Sun Jan 18 09:12:20 PST 2015


Hi,
 
I tried building postgis 1.5.8 on FreeBSD (9.2) but it crashes:
 
cc -O2 -pipe -O3 -funroll-loops -fno-strict-aliasing -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security -fno-strict-aliasing -fwrapv -fPIC -DPIC -I/usr/local/include -I/usr/local//include -I/usr/local/include/libxml2 -I/usr/local/include -I../liblwgeom -I. -I. -I/usr/local/include/postgresql/server -I/usr/local/include/postgresql/internal -I/usr/local/include -I/usr/local/include  -c -o lwgeom_pg.o lwgeom_pg.c 
In file included from lwgeom_pg.c:7: 
lwgeom_pg.h:72: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.h:73: error: expected ')' before '*' token 
lwgeom_pg.h:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.h:77: error: expected ')' before '*' token 
lwgeom_pg.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.h:81: error: expected ')' before '*' token 
lwgeom_pg.c:135: warning: no previous prototype for 'lwgeom_init_allocators' 
lwgeom_pg.c: In function 'lwgeom_init_allocators': 
lwgeom_pg.c:137: error: 'lwalloc_var' undeclared (first use in this function) 
lwgeom_pg.c:137: error: (Each undeclared identifier is reported only once 
lwgeom_pg.c:137: error: for each function it appears in.) 
lwgeom_pg.c:138: error: 'lwrealloc_var' undeclared (first use in this function) 
lwgeom_pg.c:139: error: 'lwfree_var' undeclared (first use in this function) 
lwgeom_pg.c:140: error: 'lwerror_var' undeclared (first use in this function) 
lwgeom_pg.c:141: error: 'lwnotice_var' undeclared (first use in this function) 
lwgeom_pg.c: At top level: 
lwgeom_pg.c:144: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.c:179: error: expected ')' before '*' token 
lwgeom_pg.c:219: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.c:288: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.c:321: error: expected ')' before '*' token 
lwgeom_pg.c:346: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token 
lwgeom_pg.c:447: error: expected ')' before '*' token 
gmake[1]: *** [lwgeom_pg.o] Error 1 
gmake[1]: Leaving directory `/home/mp/postgis-1.5.8/postgis' 
gmake: *** [postgis] Error 2 
*** [all] Error code 2 

Stop in /home/mp/postgis-1.5.8. 
 
 
I guess I'm missing a compiler flag? I also took a look at the old ports makefile which didn't reveal any specific flag. It compiles fine with CentOS though. I have added the same flags as on CentOS, but it didn't work out.

Any hints are appreciated.

Cheers,
Paul


More information about the postgis-users mailing list