maciekgajewski / postgresbson

BSON support for PostgreSQL
Other
29 stars 5 forks source link

1.0.1 build issue on RHEL 6 #4

Open devrimgunduz opened 10 years ago

devrimgunduz commented 10 years ago

Hi,

Another issue -- this time on RHEL 6:

cmake 2.8.11.2 gcc 4.4.7 boost 1.41

[ 64%] Building CXX object pgbson/CMakeFiles/pgbson.dir/mongo-cxx-driver-v2.4/src/mongo/util/file_allocator.cpp.o In file included from /usr/include/boost/thread/future.hpp:13, from /usr/include/boost/thread.hpp:25, from /var/lib/pgsql/rpm/BUILD/pgbson-1.0.1/pgbson/mongo-cxx-driver-v2.4/src/mongo/util/file_allocator.cpp:21: /usr/include/boost/exception_ptr.hpp:43: error: looser throw specifier for 'virtual boost::exception_ptr::~exception_ptr()' /usr/include/boost/exception/detail/exception_ptr_base.hpp:26: error: overriding 'virtual boost::exception_detail::exception_ptr_base::~exception_ptr_base() throw ()' make[3]: * [pgbson/CMakeFiles/pgbson.dir/mongo-cxx-driver-v2.4/src/mongo/util/file_allocator.cpp.o] Error 1 make[3]: Leaving directory `/var/lib/pgsql/rpm/BUILD/pgbson-1.0.1-build' make[2]: * [pgbson/CMakeFiles/pgbson.dir/all] Error 2 make[2]: Leaving directory/var/lib/pgsql/rpm/BUILD/pgbson-1.0.1-build' make[1]: **\* [all] Error 2 make[1]: Leaving directory/var/lib/pgsql/rpm/BUILD/pgbson-1.0.1-build' error: Bad exit status from /var/tmp/rpm-tmp.RyUaqM (%build)

Regards, Devrim

maciekgajewski commented 10 years ago

This time I suspect boost: 1.41 is quite old. Have you tried building against newer boost release?

devrimgunduz commented 10 years ago

I did not -- this is what RHEL 6 has :( So, if you are sure that boost is the suspicous piece, would you like to add a check for min boost version in makefile, like you did for cmake?

maciekgajewski commented 10 years ago

I'm not sure yet, just suspicious.

devrimgunduz commented 10 years ago

http://boost.2283326.n4.nabble.com/Compile-error-with-boost-1-41-td2574048.html

maciekgajewski commented 10 years ago

I'll see if mongo code can be hammered into working with boost 1.41...

devrimgunduz commented 10 years ago

Hi,

Did you find time to take a look at this?

Regards, Devrim

maciekgajewski commented 10 years ago

nope