I've recently been struggling to get boost-1.33.1 built on
OpenBSD-current (I presume that the rest of this message also applies
to -stable, but YMMV), and after much toiling and dumping of hours
into a black hole, I think I have found a way to build boost without
errors.

If you simply run

$ bjam "-sTOOLS=gcc"

you will encounter many, many errors.  Some of these errors will go
away simply by substituting c++ for gcc:

$ bjam "-sTOOLS=c++"

but there will still be errors.

To get around those errors, cd to ~/libs/config (where '~' means the
boost root dir) and do

$ sh configure

This will generate a file called 'user.hpp' which contains
preprocessor tokens that will help boost build for your
compiler+platform combination.  It isn't entirely correct though.  The
'user.hpp' that is generated from the configure script will not
alleviate problems in building:
a) threaded libraries (particularly the threads library)
b) wchar_t-based regex

To get multithreaded libraries, just go down to the group of #define's in
'user.hpp' and add

#define BOOST_HAS_THREADS

I haven't yet found a way to make regex build with wchar_t support, so
I disabled it by adding this to 'user.hpp':

#define BOOST_NO_WREGEX

This obviously won't help you understand what's really going on, but
hopefully someone else who has been having trouble might find this
information to be helpful.

--
Benjamin Collins <[EMAIL PROTECTED]>

[demime 1.01d removed an attachment of type application/pgp-signature]

Reply via email to