[673] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Re: ptheards on AIX 4.1

daemon@ATHENA.MIT.EDU (Dave McCracken)
Wed Jul 9 22:45:07 1997

From: dmc@wham.com (Dave McCracken)
To: pthreads@MIT.EDU
In-Reply-To: (Your message of Wed, 09 Jul 97 21:16:09 D.)
             <33C437D9.7DA6@es.atl.sita.int> 
Date: Wed, 09 Jul 97 21:35:33 -0600


Nick Godbey <Nick.Godbey@es.atl.sita.int> wrote:
> Some weeks back I ask for help with getting ptheards to work with
> AIX 4.1. I was using gcc 2.7.2. Well here is what I found. On AIX 4.1
> there are two functions that must be called before main. The
> IBM xlc compiler can be used for thread apps and non thread apps.
> To us it for threaded apps xlc_r is soft linked to xlc. The argv[0]
> arg is then used as a switch to tell xlc to insert these two 
> hidden function calls before main. gcc does not know how to do
> this so it can't be used! This is a major problem as I don't have a
> xlC_r(C++ version) and I need to use gcc.

What xlc_r really does is use crt0_r.o instead of crt0.o.  There is
an xlC-specific crt0.o and crt0_r.o in the xlC tree, so if you don't
have it that would be a problem.  All you'd need, though, is the
right crt0_r.o.

--------
Dave McCracken		WHAM Engineering and Software
dmc@wham.com		9020-II Capital of Texas Highway N, Suite 575
512 345-9925		Austin, TX 78759-7232

home help back first fref pref prev next nref lref last post