From: Rob McCool
Newsgroups: netscape.devs-nsapi
Subject: Re: AIX 4.2 Settings for Thread-Safe Compiles
Date: Wed, 18 Dec 1996 17:43:37 -0800
> > Does anyone have AIX info regarding makefile options under AIX 4.2
> > to minimize the pain of inserting "thread-safe" code sections ?
> >
> > ie, if I have file1.c, file2.c, and file3.c, what compile flags/defines
> > and link flags/libraries do I need to get a thread-safe file.so ?
> >
> Assuming that you are using the C Set++ compiler, you get all the
> switches set to their best values when you substitute "cc_r" as the
> command instead of plain "cc". The parameters that this triggers are
> specified in the /etc/xlC.cfg file in the cc_r section.
>
> That said, Netscape 2.0 servers are known to fake the thread library
> in ways that are incompatible with using real threads. The exact status
> of the 2.0 Servers (and any upcoming 2.01 beta) for AIX is uncertain.
> The best choice is to use NSAPI functions instead of AIX native
> functions
> whenever an NSAPI alternative presents itself.
The last time I checked, there was going to be a separate AIX version
for 4.2 only which used the native threading interfaces. However I've
looked on the 2.01 download pages and there only seems to be one AIX
entry.
If you haven't already and you're interested in a server which does
this (it would probably be more stable and easier to code with because
you would be able to make blocking system calls) you should check with
tech support or the devlopers program to see if they know where you can
get it. In the meantime I will ask around.
--Rob
--
Rob McCool, robm@netscape.com http://home.netscape.com/people/robm/
Stunt Programmer, Netscape Communications Corporation
It was working ten minutes ago, I swear...
Reproduced by permission of the author.