rundel / carto-parser

12 stars 7 forks source link

LInux (Gentoo) make fails: expr_grammar has incomplete type #27

Open jlpoolen opened 11 years ago

jlpoolen commented 11 years ago
themis carto-parser # make clean
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Cleaning targets ...
scons: done cleaning targets.
themis carto-parser # make
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cxx: src/mml_parser.cpp -> src/mml_parser.o

In file included from src/mml_parser.cpp:9:0:
include/mss_parser.hpp:34:61: error: field 'expr_grammar' has incomplete type
compilation terminated due to -Wfatal-errors.
scons: *** [src/mml_parser.o] Error 1
scons: building terminated because of errors.
make: *** [all] Error 2
themis carto-parser #
springmeyer commented 11 years ago

this is due to some more aggressive forward declares we've recently added to Mapnik 2.x. I've fixed this problem, plus a few others (that I encountered building against Mapnik 2.3.x) over at https://github.com/mapnik/carto-parser/commit/013edabeccd0474b7b6c33d046641202098fda87.

jlpoolen commented 11 years ago

The problem you fixed is in Mapnik, not in this project, then? Or have you not committed your changes? I'm not seeing any changes for this project.

themis src # git clone https://github.com/rundel/carto-parser.git
Cloning into 'carto-parser'...
remote: Counting objects: 1203, done.
remote: Compressing objects: 100% (613/613), done.
remote: Total 1203 (delta 594), reused 1166 (delta 567)
Receiving objects: 100% (1203/1203), 9.88 MiB | 1.88 MiB/s, done.
Resolving deltas: 100% (594/594), done.
themis src # cd carto-parser
themis carto-parser # make
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cxx: src/mml_parser.cpp -> src/mml_parser.o
In file included from src/mml_parser.cpp:9:0:
include/mss_parser.hpp:34:61: error: field 'expr_grammar' has incomplete type
compilation terminated due to -Wfatal-errors.
scons: *** [src/mml_parser.o] Error 1
scons: building terminated because of errors.
make: *** [all] Error 2
themis carto-parser # git rev-parse HEAD
b4f5fbb39fc61ddd66b0d7ee28bedab7253b2038
themis carto-parser # cd ..
themis src # cd carto-parserOLD/
themis carto-parserOLD # git rev-parse HEAD
b4f5fbb39fc61ddd66b0d7ee28bedab7253b2038
themis carto-parserOLD #
springmeyer commented 11 years ago

this fix in the the fork of this project under the mapnik organization: https://github.com/mapnik/carto-parser/

You'll need to either clone a fresh repo from there or point your remote at it.

jlpoolen commented 11 years ago

Thanks, I'll continue trying to get your fork to compile (I'll probably have to manually download & compile mapnik 2.3 rather than use Gentoo's package manager which already installed an older version:

themis carto-parser # eix -I mapnik
[I] sci-geosciences/mapnik
    Available versions:  ~2.0.1 ~2.0.2 (~)2.1.0 {{bidi cairo debug doc gdal geos postgres python sqlite}}
    Installed versions:  2.1.0(11:29:36 AM 10/07/2013)(cairo debug doc gdal geos postgres python sqlite -bidi)
    Homepage:            http://www.mapnik.org/
    Description:         A Free Toolkit for developing mapping applications.

themis carto-parser #

Here's my failed attempt just to warn others that there are dependencies outside of the tree:

themis src # git clone https://github.com/mapnik/carto-parser.git
Cloning into 'carto-parser'...
remote: Counting objects: 1229, done.
remote: Compressing objects: 100% (613/613), done.
remote: Total 1229 (delta 612), reused 1201 (delta 593)
Receiving objects: 100% (1229/1229), 9.89 MiB | 2.21 MiB/s, done.
Resolving deltas: 100% (612/612), done.
themis src # cd carto-parser/
themis carto-parser # make
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
cxx: src/mml_parser.cpp -> src/mml_parser.o
In file included from src/mml_parser.cpp:9:0:
include/mss_parser.hpp:22:34: fatal error: mapnik/noncopyable.hpp: No such file or directory
compilation terminated.
scons: *** [src/mml_parser.o] Error 1
scons: building terminated because of errors.
make: *** [all] Error 2
themis carto-parser #
springmeyer commented 11 years ago

Yeah, Mapnik 2.0.1 is ancient. You need at least 2.2.