NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I am going through the process of building a map server on fedora 18 (cos that is what I've got, so don't ask) and got an error building mod_map : apxs:Error: Command failed with rc=65536

When I switched off the compiler warnings it showed this error from libtool: ./mod_tile.c:661:28: error: 'conn_rec' has no member named 'remote_ip'

This is a described in https://code.google.com/p/mod-auth-external/issues/detail?id=8 Where they helpfully write: "The remote_ip field in the conn_rec structure was removed in Apache 2.4.1 and replaced with client_ip and useragent_ip."

In mod_tile.c I replaced the 3 occurrences of remote_ip with client_ip and the mod compiled. great. But i dont know yet if it will run. Still, I thought I ought to tell someone... you probably know all this already I am sure, but if not could you pass this on to a developer? I don't know who that might be. I have only just started playing around with this stuff and don't know my way around. Oh, and I downloaded the code about 4 hours ago and I am writing this on Sat Mar 23 23:19:58 GMT 2013 so goodnight.

Panca Kanga

asked 23 Mar '13, 23:24

Panca%20Kanga's gravatar image

Panca Kanga
30223
accept rate: 0%


mod_tile should now compile with apache 2.4. If there are any additional fixes required to build mod_tile on Fedora 18, please let me know.

Thank you for reporting the issue.

permanent link

answered 25 Mar '13, 02:29

apmon's gravatar image

apmon
6.5k184456
accept rate: 20%

Thank you for working on it so quickly. It compiled and installed under my fedora 18 system. I am just working through the steps at http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ It seems very clearly written though I keep making silly mistakes. I should just follow the instructions and not mess about. I think I will download the UK tonight and wait and see how it goes with that map set installed. Currently renderd says it is writing mod_tile/default/0/0/0/0/0/0.meta but httpd cannot see it and when I look it is not there. Maybe because I have installed a too small dataset (of Nepal.) I am not writing expecting an `answer' BTW.

(25 Mar '13, 21:43) Panca Kanga
2

Sorry, there was another bug in renderd, that caused tiles to not be written out. This should be fixed now as well.

(26 Mar '13, 16:43) apmon

Oh, it was a little bug was it? I thought it was me. I had moved the install to another disk, and also I was switching selinux on and off trying various ways of setting that. The recompile with the V.29407 code does indeed get everything going. Yep, there is the world at 0/0/0. Excellent. I am only installing the map server at home for my own satisfaction and not expecting a 4-hour call-out on a bug report! However I am sure this speedy fix will help others with more serious needs. I am still grateful though. Thanx. Hmm ... But no sign of Nepal yet... I think I had better get England into the db and then see where I can find. I downloaded England last night and I will let it load in tonight. Panca Kanga.

(26 Mar '13, 22:01) Panca Kanga

I found this patch this afternoon: http://www.michael-joost.de/mod_tile_apache2.4.patch

It is provided to meet the errors like I was having yesterday and also sorts out the renamed unixd_set_global_perms. On top of that it fixes the compiler warnings about getting long int instead of apr_uint64_t &etc. Except unfortunately it does not apply correctly to my copy of mod_tile.c extracted from build 29393. (I assume it is intended to be applied with the gnu patch(1)). However not quite working does not matter 'cos looking at the patch shows you what needs doing. The main problems were the implicit declarations and it is obvious where to fix them once you know what to change them to. It seems all the funny ints can be left to get on with it.

Onwards and upwards..

BTW. The preview of this note looks funny all the _ have disappeared. What to do about it?

permanent link

answered 24 Mar '13, 22:13

Panca%20Kanga's gravatar image

Panca Kanga
30223
accept rate: 0%

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:

×1
×1
×1

question asked: 23 Mar '13, 23:24

question was seen: 2,594 times

last updated: 27 Mar '13, 16:48

Related questions

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum