[Tile-serving] [mod_tile] error compiling: check_gettime() (#38)

Stephan Bösch-Plepelits notifications at github.com
Fri Aug 9 14:25:22 UTC 2013


Since 91a2e1d7162e0e99f5461253a8047eceae7143ce there's a bug compiling mod_tile:
```
libtool: link: g++ -g -O2 -o gen_tile_test gen_tile_test.o metatile.o gen_tile_test-request_queue.o gen_tile_test-daemon.o gen_tile_test-daemon_compat.o gen_tile.o gen_tile_test-sys_utils.o gen_tile_test-cache_expire.o gen_tile_test-store.o gen_tile_test-store_file.o gen_tile_test-store_file_utils.o gen_tile_test-store_memcached.o gen_tile_test-store_rados.o gen_tile_test-store_ro_http_proxy.o gen_tile_test-store_ro_composite.o gen_tile_test-store_null.o  -L/usr/lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu/libfreetype.so -lz -L/usr/local/lib -lmapnik -L/usr/lib -Liniparser3.0b/.libs /usr/local/lib/libiniparser.so -lm
gen_tile_test.o: In function `addition_thread(void*)':
/home/skunk/code/mod_tile/gen_tile_test.cpp:84: undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[2]: *** [gen_tile_test] Error 1
make[2]: Leaving directory `/home/skunk/code/mod_tile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/skunk/code/mod_tile'
make: *** [all] Error 2
```

The man-page for clock_gettime states, that linking with ```-lrt``` is required. So, after adding ```-lrt``` to LIBS in Makefile, compilation works fine.

Please do so too.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/38
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20130809/adee4c5f/attachment.html>


More information about the Tile-serving mailing list