[comp.lang.perl] Compiling perl 3.0.12 on a mips

hokey@plus5.com (Hokey) (03/04/90)

After some interesting problems I was able to get perl 3.0.12 successfully
compiled and tested on our M/120.

I used the ATT "paths".  Larry's metaconfig was designed for this case,
and I haven't sent him my metaconfig updates which check out the path for
those of us who prefer using the BSD "paths".

Three changes were required.

On line 590 in cmd.c, an error was generated by the compiler regarding
a cast required for the volatile element.  I fixed this problem by adding
(STB *), making the line look something like this:

	retstr = stab_val(whatever) = (STB *) ar->something[array];

(The actual code is on another machine).

Next, I removed -lPW from the library list, because of the multiple fatal()
problem.

Finally, I disabled optimization.  Sigh.  When optimized, there were failures
in both the op.eval and op.substr tests.  Debugging wouldn't work at all (in
fact it dropped core).

I don't have the time to nose around and see where the problems are.

With any luck, some compiler wizard at MIPS will check this out with the
new compilers and see if some of the problems go away.

I had problems with 3.0.8 and patcil (from metaconfig), and those problems
went away with an unoptimized 3.0.12.  As 3.0.8 ran the tests OK there is
obviously a new test case waiting to be discovered.  Again, I don't have the
time to find it.