|
Boost-Build : |
Subject: Re: [Boost-build] Newbie: bjam on IBM AIX, undefined .pthread
From: K. Noel Belcourt (kbelco_at_[hidden])
Date: 2009-07-16 12:45:45
On Jul 16, 2009, at 10:02 AM, 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
Add threading=multi to the bjam command line.
-- Noel
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