Boost logo

Boost Users :

From: James Zappia (James.Zappia_at_[hidden])
Date: 2004-04-08 12:03:00

I've compiled gcc on aix 4.3.3 in the past and no matter what c++ program I
wrote, threading or no, I needed to specify the -pthread flag to get it to
compile. It's an aix runtime thing with c++, pure c programs didn't have
this problem.


-----Original Message-----
From: Rene Rivera [mailto:grafik.list_at_[hidden]]
Sent: Wednesday, April 07, 2004 12:55 PM
To: boost-users_at_[hidden]
Subject: [Boost-users] Re: Any Success with AIX and GCC?

Peter Jones wrote:

> Hey, remember back when Rene Rivera said:
>>The gcc toolset is already adding the -pthread option when linking
>>multi-threaded variants (lines 143-145). Are you saying you need to use
>>-pthread even when linking single-threaded variants?
> This is what "bjam -sTOOLS=gcc -sBUILD=release" produces without my
> change to gcc-tools.jam:

Which builds the release single-threaded variants.

> gcc-Link-action
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_lock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_unlock
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_init
> ld: 0711-317 ERROR: Undefined symbol: .pthread_mutex_destroy

Is there a way to tell who is referencing those symbols? As it might not be
Boost code but other runtime code. -- Something to try would be to compile
empty *.so. That is compile an empty source file and try doing a "-shared"
link. If you get thread errors with an empty shared library, then the
is that the GCC+AIX runtimes require threading. And I'll fix that on the
toolset, and post a patch ;-)

-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. -
-- rrivera/ - grafik/ - 102708583/icq
Boost-users mailing list

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at