[postgis-devel] lwgeom compile problem

strk strk at keybit.net
Fri Jun 4 02:17:52 PDT 2004


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 ?

--strk;

On Fri, Jun 04, 2004 at 03:17:47AM +0000, Carl Anderson wrote:
> 
> Dave Blasby,
> 
> I am trying lwgeom and have hit a snag
> 
> What version of bison are you using / how is Postgresql setup ?
> 
> in postgresql7.4.2
> my   src/Makefile.global has
>    YACC="bison -y"
> 
> causing lwgeom to output y.tab.h, y.tab.c ...
> instead of wktparse.tab.h, wtkparse.tab.c ...
> as the lwgeom/Makefile expects
> 
> changing YACC to
>    YACC="bison"
> 
> allows a compile to complete ( with warnings )
> 
> C.
> 
> 
> 
> _______________________________________________
> 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