Boost logo

Boost Users :

From: Quantum Skyline (quantum.skyline_at_[hidden])
Date: 2006-02-13 15:26:13


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 <boost/config/compiler/gcc.hpp>
> #ifndef BOOST_HAS_THREADS
> #error err1
> #endif
> #include <boost/config/stdlib/libstdcpp3.hpp>
> #ifndef BOOST_HAS_THREADS
> #error err2
> #endif
> #include <boost/config/platform/bsd.hpp>
> #ifndef BOOST_HAS_THREADS
> #error err3
> #endif
> #ifndef BOOST_HAS_PTHREADS
> #error err4
> #endif
> #include <boost/config/suffix.hpp>
> #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


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