[postgis-devel] lwgeom compile problem

strk strk at keybit.net
Fri Jun 4 08:28:21 PDT 2004


On Fri, Jun 04, 2004 at 10:43:38AM -0400, Carl Anderson wrote:
> 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}

I've committed the changes in wktparse.y
and Makefile.
Did not run regression tests yet ..
I'll let you know.

--strk;

> 
> -- 
> Carl Anderson
> GIS Manager Fulton County, Georgia
> carl.anderson at co.fulton.ga.us
> 404.730.8026
> 
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list