Boost logo

Boost Users :

From: Patrik Jonsson (patrik_at_[hidden])
Date: 2005-05-24 23:42:40


>
>
> Hi -
>
> I'm trying to build boost on an AIX box using GCC, and am having
> pthread issues.
>
> In particular:
>
> ------------------------------------------------------------------------
> $ uname -a
> AIX dev-app-a00 2 5 00089FFC4C00 unknown unknown AIX
>
> $ gcc -v
> Reading specs from
> /usr/local/lib/gcc-lib/powerpc-ibm-aix5.1.0.0/3.3.3/specs
> Configured with: ../gcc-3.3.3/configure --disable-nls
> Thread model: aix
> gcc version 3.3.3
>
> $ bjam -v
> Boost.Jam Version 3.1.10. OS=AIX.
> [... elided copyright stuff ...]
>
> $ bjam
> [... elided PYTHON stuff here ...]
> ...found 7231 targets...
> ...updating 840 targets...
> gcc-C++-action
> bin/boost/libs/date_time/build/libboost_date_time.so/gcc/debug/shared-linkable-true/greg_month.o
>
> In file included from
> /home/dkatz/dev/Engine/Agorai/Boost/boost/detail/lwm_pthreads.hpp:20,
> from
> /home/dkatz/dev/Engine/Agorai/Boost/boost/detail/lightweight_mutex.hpp:92,
>
> from
> /home/dkatz/dev/Engine/Agorai/Boost/boost/detail/shared_count.hpp:28,
> from
> /home/dkatz/dev/Engine/Agorai/Boost/boost/shared_ptr.hpp:26,
> from
> /home/dkatz/dev/Engine/Agorai/Boost/boost/date_time/gregorian/greg_month.hpp:14,
>
> from
> /home/dkatz/dev/Engine/Agorai/Boost/libs/date_time/src/gregorian/greg_month.cpp:14:
>
> /usr/include/pthread.h:554: error: `pthread_rwlock_t' was not declared
> in this
> scope
> /usr/include/pthread.h:554: error: parse error before `)' token
> [... lots more pthread problems of this sort ...]
> ^C...interrupted
> $
>

Hi,
I got this same problem when I (accidentally) tried to build Boost with
gcc 3.2. When I used 3.4, everything worked, so you might try upgrading
the compiler.

cheers,

/Patrik

> ------------------------------------------------------------------------
> **


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