
John Maddock wrote:
I can't find a boost/platform/bsd.hpp, but there is a boost/config/platform/bsd.hpp which I replaced and got the same error message.
Darn, OK one last try to find the cause of the problem, can you please try building the short program below with g++ -pthread ...etc and let me know which #errors get triggered?
Out of curiosity, is Boost not regularly tested with OpenBSD? If not, I'd like to submit these experiences for documentation on working with OpenBSD and Boost.
No we don't have a regular OpenBSD regression test runner, volunteers are always welcome of course :-)
John.
And the program:
#include
#ifndef BOOST_HAS_THREADS #error err1 #endif #include #ifndef BOOST_HAS_THREADS #error err2 #endif #include #ifndef BOOST_HAS_THREADS #error err3 #endif #ifndef BOOST_HAS_PTHREADS #error err4 #endif #include #ifndef BOOST_HAS_THREADS #error err5 #endif #ifndef BOOST_HAS_PTHREADS #error err6 #endif
Hi John, You weren't explicit on where to get the headers from, so I tried it once from /usr/local/include, and once from within the build directory. I added a 'int main( void ){ return 0; }' once I realized that it compiled fine with local headers. -bash-3.00# i386-unknown-openbsd3.8-eg++ -I/usr/local/include/boost-1_33_1 tryme .c tryme.c:14:2: #error err4 tryme.c:18:2: #error err5 tryme.c:21:2: #error err6 -bash-3.00# i386-unknown-openbsd3.8-eg++ -I/home/quantum/boost_1_33_1 tryme.c -bash-3.00# i386-unknown-openbsd3.8-eg++ -o tryme tryme.o tryme.o(.init+0x0): In function `__init': : multiple definition of `__init' /usr/lib/crtbegin.o(.init+0x0): first defined here tryme.o(.text+0x0): In function `_start': : multiple definition of `__start' /usr/lib/crt0.o(.text+0x0): first defined here tryme.o(.data+0x0): multiple definition of `__progname' /usr/lib/crt0.o(.data+0x0): first defined here tryme.o(.text+0x0): In function `_start': : multiple definition of `_start' /usr/lib/crt0.o(.text+0x0): first defined here tryme.o(.fini+0x0): In function `__fini': : multiple definition of `__fini' /usr/lib/crtbegin.o(.fini+0x0): first defined here tryme.o(.text+0x18): In function `___start': : multiple definition of `___start' /usr/lib/crt0.o(.text+0x18): first defined here /usr/lib/crt0.o(.dynamic+0x0): multiple definition of `_DYNAMIC' /usr/lib/crt0.o(.got.plt+0x0): multiple definition of `_GLOBAL_OFFSET_TABLE_' collect2: ld returned 1 exit status Thanks