[postgis-users] 1.1.3 compilation problem

Mark Cave-Ayland m.cave-ayland at webbased.co.uk
Mon Jul 3 03:47:37 PDT 2006


> From: postgis-users-bounces at postgis.refractions.net [mailto:postgis-users-
bounces at postgis.refractions.net] On Behalf Of Stefano B.
> Sent: 03 July 2006 08:09
> To: PostGIS Users Discussion
> Subject: [postgis-users] 1.1.3 compilation problem
>
> Hi, when I compile postgis 1.1.3 on my freebsd 5.3 os I get the following:
 
(cut)
 
> gmake -C lwgeom
> gmake[1]: Entering directory `/usr/src/smit/postgis-1.1.3/lwgeom'
> bison -y -vd -p lwg_parse_yy wktparse.y
> wktparse.y:40.14: parse error, unexpected ":", expecting ";" or "|"
> wktparse.y:58.20-32: $3 of `geometry' has no declared type
> wktparse.y:61.6-19: $1 of `geometry' has no declared type
> wktparse.y:145.17: parse error, unexpected ":", expecting ";" or "|"
> wktparse.y:232.14-31: $1 of `geom_multilinestring' has no declared type
> wktparse.y:232.14-34: $2 of `geom_multilinestring' has no declared type
> wktparse.y:235.20-37: $1 of `geom_multilinestring' has no declared type
> wktparse.y:235.20-40: $2 of `geom_multilinestring' has no declared type
> wktparse.y:235.20-43: $3 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-43: $1 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-46: $2 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-49: $3 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-52: $4 of `geom_multilinestring' has no declared type
> gmake[1]: *** [wktparse.tab.c] Error 1
> gmake[1]: Leaving directory `/usr/src/smit/postgis-1.1.3/lwgeom'
> gmake: *** [liblwgeom] Error 2
> gmake -C lwgeom
> gmake[1]: Entering directory `/usr/src/smit/postgis-1.1.3/lwgeom'
> bison -y -vd -p lwg_parse_yy wktparse.y
> wktparse.y:40.14: parse error, unexpected ":", expecting ";" or "|"
> wktparse.y:58.20-32: $3 of `geometry' has no declared type
> wktparse.y:61.6-19: $1 of `geometry' has no declared type
> wktparse.y:145.17: parse error, unexpected ":", expecting ";" or "|"
> wktparse.y:232.14-31: $1 of `geom_multilinestring' has no declared type
> wktparse.y:232.14-34: $2 of `geom_multilinestring' has no declared type
> wktparse.y:235.20-37: $1 of `geom_multilinestring' has no declared type
> wktparse.y:235.20-40: $2 of `geom_multilinestring' has no declared type
> wktparse.y:235.20-43: $3 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-43: $1 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-46: $2 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-49: $3 of `geom_multilinestring' has no declared type
> wktparse.y:238.26-52: $4 of `geom_multilinestring' has no declared type
> gmake[1]: *** [wktparse.tab.c] Error 1
> gmake[1]: Leaving directory `/usr/src/smit/postgis-1.1.3/lwgeom'
> gmake: *** [liblwgeom] Error 2
 

Hi Stefano,

If you haven't altered any of the bison grammar files, then it could be that
you're using a broken version of Bison - I know the PostgreSQL team often
experience problems with Bison versions > 1.875, which is the version I'm
using here without any issues.

What is more interesting is that even though we include
lex.yy.c/wktparse.tab.c in the release tarballs, under Win32 it seems to
want to always rebuild these files from the .yy source files if flex/bison
are found during the configure phase, instead of noticing that the supplied
files haven't been changed and using them as they are. Does anyone else see
this behaviour?


Kind regards,

Mark.

------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT

T: +44 (0)1752 797131
F: +44 (0)1752 791023

http://www.webbased.co.uk   
http://www.infomapper.com
http://www.swtc.co.uk  

This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.





More information about the postgis-users mailing list