Ticket #138 (closed bug report: wontfix)

Opened 22 months ago

Last modified 19 months ago

Compile error with Ubuntu 8.10

Reported by: daniel Owned by: anton
Priority: blocker Milestone: Version 1.1
Component: pgRouting package Version: trunk
Keywords: Cc:


Tried to compile the latest version according to the 8.04 installation manual, but it failed with this error message:

daniel@karida:~/pgrouting$ LC_ALL="en_GB.UTF-8" make
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PostgreSQL: /usr/include/postgresql/8.3/server, /usr/lib/libpq.so
-- Boost version: 1.34.1
-- Found the following Boost libraries:
Boost headers were found here: /usr/include
Output directory for libraries is set to /usr/lib/postgresql/8.3/lib
-- Found PGROUTING_CORE core: /home/daniel/pgrouting/core/src
Installation directory for libraries is set to /usr/lib/postgresql/8.3/lib and for SQL files is set to /usr/share/postlbs
-- Configuring done
-- Generating done
-- Build files have been written to: /home/daniel/pgrouting
Scanning dependencies of target routing
[ 16%] Building C object core/src/CMakeFiles/routing.dir/dijkstra.o
[ 33%] Building C object core/src/CMakeFiles/routing.dir/astar.o
[ 50%] Building C object core/src/CMakeFiles/routing.dir/shooting_star.o
[ 66%] Building CXX object core/src/CMakeFiles/routing.dir/boost_wrapper.o
In file included from /usr/include/c++/4.3/ext/hash_set:64,
                 from /usr/include/boost/graph/adjacency_list.hpp:22,
                 from /home/daniel/pgrouting/core/src/boost_wrapper.cpp:25:
/usr/include/c++/4.3/backward/backward_warning.h:33:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from /usr/include/boost/graph/dijkstra_shortest_paths.hpp:19,
                 from /home/daniel/pgrouting/core/src/boost_wrapper.cpp:26:
/usr/include/boost/pending/relaxed_heap.hpp: In member function ‘size_t boost::relaxed_heap<IndexedType, Compare, ID>::log_base_2(size_t)’:
/usr/include/boost/pending/relaxed_heap.hpp:101: error: ‘CHAR_BIT’ was not declared in this scope
make[2]: *** [core/src/CMakeFiles/routing.dir/boost_wrapper.o] Error 1
make[1]: *** [core/src/CMakeFiles/routing.dir/all] Error 2
make: *** [all] Error 2

Change History

Changed 22 months ago by daniel

  • priority changed from critical to blocker

I think this is a major issue that is reported by more and more people. http://pgrouting.postlbs.org/discussion/21/208/768

Seems like it happens with newer versions of Boost?

Changed 21 months ago by ovaris

Please hurry up with this, this really is a show stopper.

Changed 21 months ago by daniel

  • status changed from new to closed
  • resolution set to wontfix

Sorry, I forgot to add some information to this ticket, but it seems to be an issue with libboost as reported in the forum: http://pgrouting.postlbs.org/discussion/21/208/796#796

This affects the latest Ubuntu (8.10) as well, but there is not much pgRouting can do about. It seems that this issue has been solved in later Debian packages, but I'm not aware changes already made it into official packages.

If you like, you could try already the coming version of Ubuntu 9.04 and report here it is solved there or not. Otherwise you could just take 8.04.

Any other solution welcome.

Changed 19 months ago by woodbri

I ran into this same problem on Debian lenny. You can fix this if you edit



#include <climits>  // added this for CHAR_BIT
#include <functional>
#include <boost/property_map.hpp>

I also ran into other boost problems trying to get tsp and driving distance optional packages to build and install and gave up on them.

Note: See TracTickets for help on using tickets.