On Fedora 15/64 yacc throws an error in 20th line of wktparse.y:
--- cut here ---
yacc -vd -p lwg_parse_yy wktparse.y
yacc: e - line 20 of "wktparse.y", syntax error
%locations
^
make[2]: *\ [wktparse.tab.c] Error 1
--- cut here ---
This is the build log:
--- cut here ---
[jacek@dragon32 geocoder]$ make
make -C src install
make[1]: Entering directory /home/jacek/devel/ruby/geocoder/geocoder/src' make -C libsqlite3_geocoder make[2]: Entering directory/home/jacek/devel/ruby/geocoder/geocoder/src/libsqlite3_geocoder'
Makefile:11: warning: overriding recipe for target libsqlite3_geocoder.so' Makefile:4: warning: ignoring old recipe for targetlibsqlite3_geocoder.so'
Makefile:22: warning: overriding recipe for target clean' Makefile:8: warning: ignoring old recipe for targetclean'
gcc -fPIC -c -o extension.o extension.c
gcc -fPIC -c -o wkb_compress.o wkb_compress.c
gcc -fPIC -c -o util.o util.c
gcc -fPIC -c -o metaphon.o metaphon.c
gcc -fPIC -c -o levenshtein.o levenshtein.c
gcc -fPIC -lsqlite3 -lm -I/usr/include -shared extension.o wkb_compress.o util.o metaphon.o levenshtein.o -o libsqlite3_geocoder.so
make[2]: Leaving directory /home/jacek/devel/ruby/geocoder/geocoder/src/libsqlite3_geocoder' make -C liblwgeom make[2]: Entering directory/home/jacek/devel/ruby/geocoder/geocoder/src/liblwgeom'
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o measures.o measures.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
lwgeom_api.c: In function ‘lwgeom_getgeom_inspected’:
lwgeom_api.c:1181:8: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgeom.o lwgeom.c
lwgeom.c: In function ‘lwgeom_to_ewkt’:
lwgeom.c:492:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
lwgeom.c: In function ‘lwgeom_to_hexwkb’:
lwgeom.c:512:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
lwgeom.c: In function ‘lwgeom_to_ewkb’:
lwgeom.c:528:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
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 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 lwutil.o lwutil.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwalgorithm.o lwalgorithm.c
lwalgorithm.c: In function ‘lwline_crossing_direction’:
lwalgorithm.c:150:6: warning: variable ‘final_cross’ set but not used [-Wunused-but-set-variable]
lwalgorithm.c:140:20: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable]
lwalgorithm.c: In function ‘lwline_clip_to_ordinate_range’:
lwalgorithm.c:481:9: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable]
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgunparse.o lwgunparse.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgparse.o lwgparse.c
gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwsegmentize.o lwsegmentize.c
yacc -vd -p lwg_parse_yy wktparse.y
yacc: e - line 20 of "wktparse.y", syntax error
%locations
^
make[2]: * [wktparse.tab.c] Error 1
make[2]: Leaving directory `/home/jacek/devel/ruby/geocoder/geocoder/src/liblwgeom'
make[1]: * [all] Error 2
make[1]: Leaving directory`/home/jacek/devel/ruby/geocoder/geocoder/src'
make: *\ [all] Error 2
--- cut here ---
On Fedora 15/64 yacc throws an error in 20th line of wktparse.y: --- cut here --- yacc -vd -p lwg_parse_yy wktparse.y yacc: e - line 20 of "wktparse.y", syntax error %locations ^ make[2]: *\ [wktparse.tab.c] Error 1 --- cut here ---
This is the build log: --- cut here --- [jacek@dragon32 geocoder]$ make make -C src install make[1]: Entering directory
/home/jacek/devel/ruby/geocoder/geocoder/src' make -C libsqlite3_geocoder make[2]: Entering directory
/home/jacek/devel/ruby/geocoder/geocoder/src/libsqlite3_geocoder' Makefile:11: warning: overriding recipe for targetlibsqlite3_geocoder.so' Makefile:4: warning: ignoring old recipe for target
libsqlite3_geocoder.so' Makefile:22: warning: overriding recipe for targetclean' Makefile:8: warning: ignoring old recipe for target
clean' gcc -fPIC -c -o extension.o extension.c gcc -fPIC -c -o wkb_compress.o wkb_compress.c gcc -fPIC -c -o util.o util.c gcc -fPIC -c -o metaphon.o metaphon.c gcc -fPIC -c -o levenshtein.o levenshtein.c gcc -fPIC -lsqlite3 -lm -I/usr/include -shared extension.o wkb_compress.o util.o metaphon.o levenshtein.o -o libsqlite3_geocoder.so make[2]: Leaving directory/home/jacek/devel/ruby/geocoder/geocoder/src/libsqlite3_geocoder' make -C liblwgeom make[2]: Entering directory
/home/jacek/devel/ruby/geocoder/geocoder/src/liblwgeom' gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o measures.o measures.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 lwgeom_api.c: In function ‘lwgeom_getgeom_inspected’: lwgeom_api.c:1181:8: warning: variable ‘type’ set but not used [-Wunused-but-set-variable] gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgeom.o lwgeom.c lwgeom.c: In function ‘lwgeom_to_ewkt’: lwgeom.c:492:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] lwgeom.c: In function ‘lwgeom_to_hexwkb’: lwgeom.c:512:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] lwgeom.c: In function ‘lwgeom_to_ewkb’: lwgeom.c:528:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] 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 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 lwutil.o lwutil.c gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwalgorithm.o lwalgorithm.c lwalgorithm.c: In function ‘lwline_crossing_direction’: lwalgorithm.c:150:6: warning: variable ‘final_cross’ set but not used [-Wunused-but-set-variable] lwalgorithm.c:140:20: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable] lwalgorithm.c: In function ‘lwline_clip_to_ordinate_range’: lwalgorithm.c:481:9: warning: variable ‘rv’ set but not used [-Wunused-but-set-variable] gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgunparse.o lwgunparse.c gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwgparse.o lwgparse.c gcc -g -O2 -fPIC -DPIC -Wall -Wmissing-prototypes -c -o lwsegmentize.o lwsegmentize.c yacc -vd -p lwg_parse_yy wktparse.y yacc: e - line 20 of "wktparse.y", syntax error %locations ^ make[2]: * [wktparse.tab.c] Error 1 make[2]: Leaving directory `/home/jacek/devel/ruby/geocoder/geocoder/src/liblwgeom' make[1]: * [all] Error 2 make[1]: Leaving directory`/home/jacek/devel/ruby/geocoder/geocoder/src' make: *\ [all] Error 2 --- cut here ---