Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 17 compiling issues #24

Open
grimm opened this issue Jan 31, 2013 · 0 comments
Open

Fedora 17 compiling issues #24

grimm opened this issue Jan 31, 2013 · 0 comments

Comments

@grimm
Copy link

grimm commented Jan 31, 2013

Hi,

I'm running Fedora 17 (3.6.7-4.fc17.x86_64) and the Ruby-Mapnik gem does not compile, I get the following errors:

gem install ruby_mapnik
Fetching: ruby_mapnik-0.1.5.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing ruby_mapnik:
ERROR: Failed to build gem native extension.

    /home/jason/.rbenv/versions/1.9.3-p194/bin/ruby extconf.rb

checking for main() in -lrice... yes
creating Makefile

make
compiling _mapnik_raster_colorizer.rb.cpp
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
compiling _mapnik_symbolizer.rb.cpp
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
compiling _mapnik_datasource_cache.rb.cpp
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++ [enabled by default]
_mapnik_datasource_cache.rb.cpp: In function ‘bool {anonymous}::rubysafe_register_sources(std::string)’:
_mapnik_datasource_cache.rb.cpp:37:41: error: base operand of ‘->’ has non-pointer type ‘mapnik::datasource_cache’
_mapnik_datasource_cache.rb.cpp: In function ‘Rice::Array {anonymous}::rubysafe_plugin_names()’:
_mapnik_datasource_cache.rb.cpp:42:104: error: base operand of ‘->’ has non-pointer type ‘mapnik::datasource_cache’
make: *** [_mapnik_datasource_cache.rb.o] Error 1

So I tried to compile the gem from the git repository using rake but it too has a compile error:

compiling ../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘const string {anonymous}::get_filename(const mapnik::markers_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:34:22: error: ‘mapnik::path_processor_type’ has not been declared
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘void {anonymous}::set_filename(mapnik::markers_symbolizer&, const string&)’:
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:38:22: error: ‘parse_path’ is not a member of ‘mapnik’
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp: In function ‘const string {anonymous}::get_filename(const mapnik::markers_symbolizer&)’:
../../../../ext/ruby_mapnik/_mapnik_markers_symbolizer.rb.cpp:35:3: warning: control reaches end of non-void function [-Wreturn-type]
gmake: *** [_mapnik_markers_symbolizer.rb.o] Error 1
rake aborted!
Command failed with status (2): [gmake...]

Thanks,

Jason

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant