Boost logo

Boost-Build :

Subject: Re: [Boost-build] Newbie: bjam on IBM AIX, undefined .pthread
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-07-16 12:48:36


AMDG

Avi Bahra wrote:
> I am trying to port my application to IBM AIX.
> I am using boost 1.39 with V10.1 compiler. I have managed to build boost ok.
> hence I have 'using vacpp ;' in my site-config.jam file
>
> However when I build my application it barfs with:
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy
> ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_destroy
> ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_wait
> ld: 0711-317 ERROR: Undefined symbol: .pthread_cond_broadcast
> ld: 0711-317 ERROR: Undefined symbol: .pthread_key_create
> ld: 0711-317 ERROR: Undefined symbol: .pthread_once
> ld: 0711-317 ERROR: Undefined symbol: .pthread_getspecific
> ld: 0711-317 ERROR: Undefined symbol: .pthread_setspecific
>
> >From googling around the work around is to use xlC_r compiler instead of
> xlC
>
> however if change my site-config.jam to "using xlC_r ;" then bjam complains
> .
>
> has any one found a workaround for this ?
>

xlc is the name of the toolset, not the compiler executable.
Try
using xlc : : xlC_r ;

In Christ,
Steven Watanabe


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk