[comp.soft-sys.andrew] AIX 3.1 build problem

james@ENGRSS2.UNL.EDU (James Nau) (10/02/90)

Ok, I've tracked down my problem with CLASS such as:
   CLASS runtime warning:  CLASSPATH directory /usr/a is not readable
on my RS/6000 running AIX 3.1 with the July updates for AIX,
Andrew PL 7.

Seems there's a(nother) bug in the AIX optimizer.  The smallest chunk of
code I could get to give the error is about 20 lines.  It's in
./overhead/class/class.c, function: class_ProcessClassPath().
So, for now, class.c has to be compiled w/o -O.

Now to call IBM and have them fix it...

James Nau
University of Nebraska--Lincoln

gk5g+@ANDREW.CMU.EDU (Gary Keim) (10/03/90)

Excerpts from internet.info-andrew: 1-Oct-90 AIX 3.1 build problem James
Nau@engrs.unl.edu (528)

> Seems there's a(nother) bug in the AIX optimizer.  The smallest chunk of
> code I could get to give the error is about 20 lines.  It's in
> ./overhead/class/class.c, function: class_ProcessClassPath().
> So, for now, class.c has to be compiled w/o -O.

> Now to call IBM and have them fix it...


Better hold off on that call to IBM.  There is a bug in the code that
processes the CLASSPATH environment variable.  It does pointer
comparisons between data that are not in the same array.  That is a no
no.  [Namely, it decrements a char * pointer off of the beginning of the
CLASSPATH string and then does a comparison with that pointer and a
pointer to the head of that string.]

Thanks for the helpful hint on the optimization, James.

Gary Keim
ATK Group