[comp.unix.aix] Compiling rn under 3001

peter@msinc.msi.com (Peter Blemel) (11/11/90)

Once again, a broken mailer/rn will hopelessly mangle my path, it should be:
bbx!yenta!msinc!peter@unmvax.cs.unm.edu

When compiling rn (don't have the version no. handy, but I ftp'd it fairly
recently (2 months ago)), I encounter the following :

	cc -c -O  ngdata.c
xlc: 1501-230 Internal compiler error; please contact your IBM representative
make: 1254-004 The error code from the last command is 40.

Has anyone successfully compiled and installed rn on the RS6000? If so, is
there some magic I need to do (or another copy to ftp)?

Peter Blemel
------------
bbx!yenta!msinc!peter@unmvax.cs.unm.edu

peter@msinc.msi.com (Peter Blemel) (11/11/90)

Well, I figured it out. The function at the bottom of the file (getngmin)
declares the following :

register struct direct	*readdir();

I swear that I made the same mistake in a program of mine and the compiler
correctly recognized that the storage class was invalid for a function (or
some such error). Maybe that wasn't this machine. Anyway, changing it to :

struct direct	*readdir();

corrects the problem. 

Peter Blemel
------------
bbx!yenta!msinc!peter@unmvax.cs.unm.edu