[Tile-serving] [osm2pgsql] linker errors & more (#361)

Arni Sumarlidason notifications at github.com
Mon Jun 22 21:50:18 UTC 2015


First, I had to patch this commit https://github.com/hholzgra/osm2pgsql/commit/f710045953b8f02aeba846ba89749961639ee0c5 from issue https://github.com/openstreetmap/osm2pgsql/issues/13 under CentOS 6.6

Second, to get a successful configure I had export BOOST_ROOT **and**  pass it at the command line [1]. One or the other would not work.

Third, BOOST_CPPFLAGS as declared in ax_boost_base.m4 would add '/include' to my custom include search path. I had to remove this.

Lastly, during linking my custom library search path didn't seem to populate correctly:
```
/bin/sh ./libtool --tag=CXX   --mode=link g++  -g -O2   -o nodecachefilereader node-persistent-cache-reader.o libosm2pgsql.la -pthread -L/usr/lib -lz -L/usr/pgsql-9.4/lib -lpq -lxml2 -lz -lm -L/usr/lib -lbz2 -L/usr/lib64 -L/usr/lib64 -lgeos -L/usr/lib -lproj -L/usr/lib -lprotobuf-c -L/usr/lib/x86_64-linux-gnu -llua-5.1  -lm -ldl  -lboost_filesystem -lboost_system -lboost_thread-mt  
libtool: link: g++ -g -O2 -o nodecachefilereader node-persistent-cache-reader.o -pthread  ./.libs/libosm2pgsql.a -L/usr/lib -L/usr/pgsql-9.4/lib -lpq -lxml2 -lz -lbz2 -L/usr/lib64 -lgeos -lproj -lprotobuf-c -L/usr/lib/x86_64-linux-gnu -llua-5.1 -lm -ldl -lboost_filesystem -lboost_system -lboost_thread-mt -pthread
/usr/bin/ld: cannot find -lboost_filesystem
```
Note the -L/usr/lib64 -L/usr/lib64 duplicate parameters; I was able to link those manually by changing the latter to -L/usr/lib64/boost148

Thanks for reading & developing, If I was more familiar with these build tools I'd happily contribute back; alas I hope this helps.

[1] ./configure --with-boost=$BOOST_ROOT --with-boost-libdir=/usr/lib64/boost148/

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


More information about the Tile-serving mailing list