[openstreetmap/openstreetmap-website] fix clang build error (#1399)

Han Chao notifications at github.com
Fri Dec 30 05:10:50 UTC 2016

hanchaodeMacBook-Pro:functions hanchao$ make libpgosm.so
cc -I `pg_config --includedir` -I `pg_config --includedir-server` -I../../lib/quad_tile -fPIC -O3 -DUSE_PGSQL -c -o quadtile.o quadtile.c
cc -I `pg_config --includedir` -I `pg_config --includedir-server` -I../../lib/quad_tile -fPIC -O3 -DUSE_PGSQL -c -o maptile.o maptile.c
cc -I `pg_config --includedir` -I `pg_config --includedir-server` -I../../lib/quad_tile -fPIC -O3 -DUSE_PGSQL -c -o xid_to_int4.o xid_to_int4.c
cc -bundle -o libpgosm.so quadtile.o maptile.o xid_to_int4.o
Undefined symbols for architecture x86_64:
  "_xy2tile", referenced from:
      _tile_for_point in quadtile.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libpgosm.so] Error 1


By default, Clang builds C code in GNU C11 mode, so it uses standard C99 semantics for the inline keyword.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * fix clang build error

-- File Changes --

    M lib/quad_tile/quad_tile.h (6)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20161229/7b80ed26/attachment.html>

More information about the rails-dev mailing list