Boost logo

Boost Users :

From: Quantum Skyline (quantum.skyline_at_[hidden])
Date: 2006-02-11 17:45:20


John Maddock wrote:
>> I've been trying to compile Boost on OpenBSD 3.8 with no success, but
>> I would like to have the threading library available. I've gone
>> through the list a few times, and the only thing related to OpenBSD
>> was posted back in '02 or '03.
>>
>> I compiled GCC 3.4.4 with threads because the default compiler is not
>> threaded and run ./configure as the docs say, but I still can't get it
>> to work.
>
> We'll need to know what errors you're seeing before anyone can help.
>
> John.
This gets repeated several times:
gcc-C++-action
bin/boost/libs/thread/build/libboost_thread.so/gcc/debug/shared-linkable-true/threading-multi/barrier.o
In file included from
/home/quantum/boost_1_33_1/boost/thread/detail/config.hpp:18,
                  from
/home/quantum/boost_1_33_1/libs/thread/src/barrier.cpp:12:
/home/quantum/boost_1_33_1/boost/config/requires_threads.hpp:29:4:
#error "Threading support unavaliable: it has been explicitly disabled
with BOOST_DISABLE_THREADS"

GCC is configured like this:
-bash-3.00# i386-unknown-openbsd3.8-egcc -v
Reading specs from /usr/local/lib/gcc/i386-unknown-openbsd3.8/3.4.4/specs
Configured with:
/usr/ports/lang/gcc/3.4/w-gcc-3.4-20050401p0/gcc-3.4-20050401/configure
--verbose --program-transform-name=s,^,e, --disable-nls
--with-system-zlib --enable-languages=c,c++,f77,objc,java --enable-cpp
--enable-sjlj-exceptions --enable-threads=posix --with-gnu-as
--with-gnu-ld --enable-shared --prefix=/usr/local --sysconfdir=/etc
Thread model: posix
gcc version 3.4.4 20050401 (prerelease)

I have the option of trying GCC 4.0 and 4.1, but GCC 3.3 failed to
compile with Posix threads turned on.

I tried using the configure script and then running make to execute the
makefile - shouldn't the configure script have detected threading
availability in the compiler?

Thanks


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net