[Tile-serving] [mod_tile] "Command failed with rc=65536" (#73)
Kai Krueger
kakrueger at gmail.com
Sat May 3 17:26:05 UTC 2014
On 05/03/2014 01:02 AM, Peter Körner wrote:
> Hi
>
> did you install the memcached-dev packages?
Given the error is in line 233 of store_memcached.c indicates he does
not have memcached installed, as that line is the fall back for when it
is not installed and behind a #ifndef HAVE_LIBMEMCACHED. But that is
fine, as that is exactly the purpose to make sure it still works if you
don't have memcached installed.
However, STORE_LOGLVL_ERR is supposed to have been defined in store.h.
which is included in that file. So I am not sure why it would complain
about this.
Where are you getting your code from for mod_tile. The switch2osm.org
instructions seem to suggest to still be using the svn repository at
http://svn.openstreetmap.org/applications/utils/mod_tile or are you
using https://github.com/openstreetmap/mod_tile ?
Ubuntu 10.04 is kind of old, and I don't think the latest mod_tile has
been tested with it. On the other hand it doesn't look like the current
error is related to version conflicts.
Kai
>
> Regards
>
> Am 02.05.2014 22:48, schrieb Gallenkamp:
>> Hi there,
>>
>> I am currently trying to setup a tile server and have Ubunto 10.04 on my
>> hosted machine. Following the tutorial:
>> http://switch2osm.org/serving-tiles/manually-building-a-tile-server/ I
>> come to a point where I have to install mod_tile. That leads to the
>> following result:
>>
>> guido at myserver:~/src/mod_tile$ sudo make install-mod_tile
>> mkdir -p |apxs2 -q LIBEXECDIR|
>> apxs2 -S LIBEXECDIR=|apxs2 -q LIBEXECDIR| -c -i -I./includes -lcurl
>> -lcairo ./src/mod_tile.c ./src/sys_utils.c ./src/store.c
>> ./src/store_file.c ./src/store _file_utils.c ./src/store_memcached.c
>> ./src/store_rados.c ./src/store_ro_http_proxy.c
>> ./src/store_ro_composite.c ./src/store_null.c
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile
>> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2
>> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REEN TRANT -I/usr/include/apr-1.0
>> -I/usr/include/openssl -I/usr/include/xmltok -pthread
>> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I
>> ./includes -c -o ./src/mod_tile.lo ./src/mod_tile.c && touch
>> ./src/mod_tile.slo
>> ./src/mod_tile.c: In function 'socket_init':
>> ./src/mod_tile.c:142: warning: pointer type mismatch in conditional
>> expression
>> ./src/mod_tile.c: In function 'delay_allowed':
>> ./src/mod_tile.c:712: warning: passing argument 1 of 'apr_strtok'
>> discards qualifiers from pointer target type
>> /usr/include/apr-1.0/apr_strings.h:229: note: expected 'char /' but
>> argument is of type 'const char /'
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile
>> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2
>> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REEN TRANT -I/usr/include/apr-1.0
>> -I/usr/include/openssl -I/usr/include/xmltok -pthread
>> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I
>> ./includes -c -o ./src/sys_utils.lo ./src/sys_utils.c && touch
>> ./src/sys_utils.slo
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile
>> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2
>> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REEN TRANT -I/usr/include/apr-1.0
>> -I/usr/include/openssl -I/usr/include/xmltok -pthread
>> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I
>> ./includes -c -o ./src/store.lo ./src/store.c && touch ./src/store.slo
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile
>> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2
>> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REEN TRANT -I/usr/include/apr-1.0
>> -I/usr/include/openssl -I/usr/include/xmltok -pthread
>> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I
>> ./includes -c -o ./src/store_file.lo ./src/store_file.c && touch
>> ./src/store_file.slo
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile
>> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2
>> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REEN TRANT -I/usr/include/apr-1.0
>> -I/usr/include/openssl -I/usr/include/xmltok -pthread
>> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I
>> ./includes -c -o ./src/store_file_utils.lo ./src/store_file_utils.c &&
>> touch ./src/store_file_utils.slo
>> /usr/share/apr-1.0/build/libtool --silent --mode=compile
>> --tag=disable-static x86_64-linux-gnu-gcc -prefer-pic -DLINUX=2
>> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REEN TRANT -I/usr/include/apr-1.0
>> -I/usr/include/openssl -I/usr/include/xmltok -pthread
>> -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I
>> ./includes -c -o ./src/store_memcached.lo ./src/store_memcached.c &&
>> touch ./src/store_memcached.slo
>> ./src/store_memcached.c: In function 'init_storage_memcached':
>> ./src/store_memcached.c:233: error: 'STORE_LOGLVL_ERR' undeclared (first
>> use in this function)
>> ./src/store_memcached.c:233: error: (Each undeclared identifier is
>> reported only once
>> ./src/store_memcached.c:233: error: for each function it appears in.)
>> apxs:Error: Command failed with rc=65536
>> .
>> make: *// [install-mod_tile] Error 1
>>
>> I cant tell if its really a mod_tile issue or not, but I am stuck here :(
>> Any help would be much appreciated!
>>
>> Guido
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/openstreetmap/mod_tile/issues/73>.
>>
>>
>>
>> _______________________________________________
>> Tile-serving mailing list
>> Tile-serving at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/tile-serving
>>
>
> _______________________________________________
> Tile-serving mailing list
> Tile-serving at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/tile-serving
More information about the Tile-serving
mailing list