[omniORB] AIX runtime bomb

Andrey Slepuhin pooh@msu.ru
Mon, 18 Jan 1999 15:21:18 +0300 (MEST)


On 18-Jan-99 Anders Vstling wrote:
> Hi
> 
> I found the problem in dejanews ! I had to specify -mthreads in the
> compiler command line, and now it magically works !!!

Well, -mthreads only implies -D_THREAD_SAFE at compile time and
-lc_r -lpthreads at link time. But: *all* libraries should be rebuilt
with -mthreads option. The same should be done for libstdc++ and libgcc.
I use a custom patch that builds multilibbed egcs installation with
thread-safe version of libraries. Also note that egcs-1.1 doesn't have
thread-safe exception handling (IIRC this was fixed in egcs-1.1.1).

Regards,
Andrey.