I tried compiling the last version of mod_tile from svn (rev 28723) and I got this message:

gen_tile.cpp: In function ‘void render_init(const char*, const char*, int)’:
gen_tile.cpp:506: error: base operand of ‘->’ has non-pointer type ‘mapnik::datasource_cache’

So I evidently changed the code to fix this, and I'm pretty sure I compiled the same version on a fedroa 17 box yesterday without any error. (May be a problem with gcc)

Index: gen_tile.cpp
===================================================================
--- gen_tile.cpp    (revision 28723)
+++ gen_tile.cpp    (working copy)
@@ -503,7 +503,7 @@
 void render_init(const char *plugins_dir, const char* font_dir, int font_dir_recurse)
 {
     syslog(LOG_INFO, "Renderd is using mapnik version %i.%i.%i", (MAPNIK_VERSION / 100000), ((MAPNIK_VERSION / 100) % 1000), (MAPNIK_VERSION % 100));
-    mapnik::datasource_cache::instance()->register_datasources(plugins_dir);
+    mapnik::datasource_cache::instance().register_datasources(plugins_dir);
     load_fonts(font_dir, font_dir_recurse);
 }

I'm currently using Centos 6.3 kernel 2.6.32-279.5.2.el6.x86_64 with :

  • gcc-gfortran-4.4.6-4.el6.x86_64
  • libgcc-4.4.6-4.el6.x86_64
  • gcc-c++-4.4.6-4.el6.x86_64
  • gcc-4.4.6-4.el6.x86_64

I don't even know if it qualify as a problem ??

asked 22 Sep '12, 07:37

chedi's gravatar image

chedi
1111
accept rate: 0%


It is not a problem with gcc, it depends on which version of Mapnik you're compiling with. Mapnik trunk (as of ~ 15 days ago) seems to require the above change, whereas older Mapnik versions don't.

permanent link

answered 22 Sep '12, 10:47

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
70.9k836431106
accept rate: 24%

This has now been fixed in mod_tile svn revision 29051

(07 Dec '12, 16:49) apmon
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×236
×71
×4
×2

question asked: 22 Sep '12, 07:37

question was seen: 3,770 times

last updated: 07 Dec '12, 16:49

powered by OSQA