[postgis-devel] lwgeom compile problem
Carl Anderson
carl.anderson at co.fulton.ga.us
Fri Jun 4 07:43:38 PDT 2004
strk wrote:
> Thanks Carl !
> This is the same problem I had.. now we know how to fix it :)
>
> Changing YACC in the local Makefile is not a good idea, since
> postgresql detected YACC is *detected*, while we are only assuming...
>
> I copied pgsql style, explicitly renaming y.tab.c and y.tab.h
> to wktparse.tab.c and wktparse.tab.h. This is YACC naming
> convention after all...
>
> I've also added some prototypes to reduce compiler warnings
> (yet to be completely removed)
>
> And... I've put the following files in .cvsignore:
> liblwgeom.so.0.1
> lwgeom.sql
> wktparse.tab.c
> wktparse.tab.h
> lex.yy.c
> Do you think it's correct ?
>
still not working for me with YACC as "bison -y"
so I edited wktparse.y like this
---------------------
a_point : point_2d | point_3d | point_4d ;
point_2d : VALUE VALUE {alloc_point_2d($1,$2) ;};
point_3d : VALUE VALUE VALUE {alloc_point_3d($1,$2,$3) ;};
point_4d : VALUE VALUE VALUE VALUE {alloc_point_4d($1,$2,$3,$4) ;};
empty : EMPTY {alloc_empty() ;} ;
%%
---------------------
I got a error free compile
Testing:
run_regress and run_regress3 are ok
but run_regress2 bombs and causes a server abend on
select astext("POINT()'::LWGEOM) as geom;
------------------------
could you add to Makefile
OTHERS=y.output lex.yy.c wktparse.tab.c wktparse.tab.h lwgeom.sql
clean distclean maintainer-clean: clin-lib
@rm -f $(OBJS)
@rm -f $(OTHERS}
--
Carl Anderson
GIS Manager Fulton County, Georgia
carl.anderson at co.fulton.ga.us
404.730.8026
More information about the postgis-devel
mailing list