[postgis-devel] [PostGIS] #636: Compile error (lwin_wkt.c)
PostGIS
trac at osgeo.org
Sun Oct 24 11:48:12 PDT 2010
#636: Compile error (lwin_wkt.c)
---------------------------+------------------------------------------------
Reporter: jorgearevalo | Owner: pramsey
Type: defect | Status: reopened
Priority: blocker | Milestone: PostGIS 2.0.0
Component: postgis | Version: trunk
Resolution: | Keywords:
---------------------------+------------------------------------------------
Comment(by robe):
Paul,
Haven't checked again, but Hudson is having the same issues I had after I
manually fixed the flex line
{{{
PostGIS is now configured for i686-redhat-linux-gnu
-------------- Compiler Info -------------
C compiler: gcc -g -O2
C++ compiler: g++ -g -O2
-------------- Dependencies --------------
GEOS config: /var/home/buildbot/opt/geos/3.2.0/bin/geos-config
GEOS version: 3.2.0
PostgreSQL config: /var/home/buildbot/opt/pgsql/8.3/bin/pg_config
PostgreSQL version: PostgreSQL 8.3.7
PROJ4 version: 46
Libxml2 config: /usr/bin/xml2-config
Libxml2 version: 2.6.26
PostGIS debug level: 0
-------- Documentation Generation --------
xsltproc: /usr/bin/xsltproc
xsl style sheets: /usr/share/sgml/docbook/xsl-stylesheets
dblatex: /usr/bin/dblatex
convert: /usr/bin/convert
++ grep MAJOR Version.config
++ cut -f2 -d=
+ POSTGIS_MAJOR_VERSION=2
++ grep MINOR Version.config
++ cut -f2 -d=
+ POSTGIS_MINOR_VERSION=0
++ grep MICRO Version.config
++ cut -f2 -d=
+ POSTGIS_MICRO_VERSION=0SVN
+ POSTGIS_VERSION=2.0.0SVN
+ make
make -C liblwgeom
make[1]: Entering directory `/var/home/buildbot/opt/hudson/jobs/PostGIS-
trunk-build/workspace/src/liblwgeom'
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o stringbuffer.o
stringbuffer.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o measures.o
measures.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o measures3d.o
measures3d.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o box2d.o box2d.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o ptarray.o
ptarray.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgeom_api.o
lwgeom_api.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgeom.o
lwgeom.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwpoint.o
lwpoint.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwline.o
lwline.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwpoly.o
lwpoly.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwtriangle.o
lwtriangle.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwmpoint.o
lwmpoint.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwmline.o
lwmline.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwmpoly.o
lwmpoly.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwcollection.o
lwcollection.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwcircstring.o
lwcircstring.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwcompound.o
lwcompound.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwcurvepoly.o
lwcurvepoly.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwmcurve.o
lwmcurve.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwmsurface.o
lwmsurface.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwpsurface.o
lwpsurface.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwtin.o lwtin.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwout_wkb.o
lwout_wkb.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwin_wkb.o
lwin_wkb.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwout_wkt.o
lwout_wkt.c
bison -y -o'lwin_wkt_parse.c' -d lwin_wkt_parse.y
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o
lwin_wkt_parse.o lwin_wkt_parse.c
In file included from lwin_wkt_parse.y:16:
lwin_wkt.h:54:57: warning: no newline at end of file
flex -o'lwin_wkt_lex.c' -i lwin_wkt_lex.l
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwin_wkt_lex.o
lwin_wkt_lex.c
In file included from lwin_wkt_lex.l:7:
lwin_wkt.h:54:57: warning: no newline at end of file
lwin_wkt_lex.c:690: warning: no previous prototype for ‘wkt_yylex’
lwin_wkt_lex.c: In function ‘wkt_yylex’:
lwin_wkt_lex.c:782: error: ‘yylineno’ undeclared (first use in this
function)
lwin_wkt_lex.c:782: error: (Each undeclared identifier is reported only
once
lwin_wkt_lex.c:782: error: for each function it appears in.)
make[1]: *** [lwin_wkt_lex.o] Error 1
make[1]: Leaving directory `/var/home/buildbot/opt/hudson/jobs/PostGIS-
trunk-build/workspace/src/liblwgeom'
make: *** [liblwgeom] Error 2
}}}
I'm beginning to wonder if its just the order of the includes. Last I
checked my build was creating these files (I even tried to upgrade my
bison to the same version 2.4.2 -- though that was a royal pain it finally
took) and it didn't help the situation.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/636#comment:19>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-devel
mailing list