I'm just trying to install Boost library under RedHat 7.2. I was following the build instructions found on the Boost website, but it seemed to fail for several targets.
The first thing to realise is that most of boost does not require you to build anything (just use the headers), those parts that do require building (currently the thread, regex, and python libs), can be built pretty easily without using the jam build system if you would rather - just build libs/foo/src/*.cpp into an archive in order to build lib "foo".
I'm wondering if it's because RH7.2 uses its version of gcc 2.96. Since my project work needs gcc 3.0+, my question is, what do I need to do in order to use gcc3/g++3 instead of gcc/g++? The build system seems exotic and I just want to get over with the installation asap and start to use the library.
(does changing /usr/bin/gcc and /usr/bin/g++ links work?)
Here is the build command I tried:
jam -sBOOST_ROOT=. -sTOOLS="gcc"
Errors (selected):
... libs/thread/build/../src/once.cpp: In function `void boost::call_once (void (*) (), once_flag &)': boost/thread/once.hpp:38: previous declaration of `void boost::call_once (void (*) (), once_flag &)' with C++ linkage libs/thread/build/../src/once.cpp:77: conflicts with new declaration ... MkDir1 libs/python/build/bin/libboost_python_static/gcc/debug/runtime-link-dynam ic/shared-linkable-true gcc-C++-action libs/python/build/bin/libboost_python_static/gcc/debug/runtime-li nk-dynamic/shared-linkable-true/types.o In file included from boost/python/errors.hpp:13, from boost/python/detail/call_object.hpp:8, from libs/python/build/../src/types.cpp:11: boost/python/detail/wrap_python.hpp:24:24: patchlevel.h: No such file or directo ry boost/python/detail/wrap_python.hpp:100:20: Python.h: No such file or directory ... (lots of Python-related errors) ... gcc-C++-action status/bin/is_function_test/gcc/debug/runtime-link-dynamic/is_fun ction_test.o boost/type_traits/function_traits.hpp: In instantiation of `boost::is_function': status/../libs/type_traits/tests/is_function_test.cpp:68: instantiated from he re boost/type_traits/function_traits.hpp:148: Internal error: Segmentation fault. Please submit a full bug report. See URL:http://bugzilla.redhat.com/bugzilla/ for instructions. ... &boost::noncopyable::operator= (const boost::noncopyable &)' is private status/../libs/utility/noncopyable_test.cpp:35: within this context ...failed updating 43 targets... ...skipped 24 targets... ...updated 629 targets...
The folllowing RPMs are installed on the machine:
1. gcc-2.96-110 2. gcc3-3.1-0.23.1 3. python-1.5.2-38 4. python2-2.2-16 5. glibc-2.2.5-32 6. boost-build-1.0-1 7. boost-jam-3.0-1
Other info: kernel 2.4.18 (manually built)
Any comment would be greatly appreciated,
Ben
Info: http://www.boost.org Wiki: http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl Unsubscribe: mailto:boost-users-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/