Problems compiling perl4.003 on the UNIXPC/3B1

Rex Fowler rmfowler at texrex.uucp
Sun May 5 03:36:41 AEST 1991


In article <1991May3.183553.3605 at cjsa.wa.com> jeff at cjsa.wa.com (Jeffery Small) writes:
>When compiling perl4.003 on the 3B1 using the stock compiler (Version 3.51m),
>I get the following messages for toke.o (and ttoke.o):
>
>    "toke.c", line 2517: warning: illegal member use: f_up
>.
>.<lots of "toke.c" errors deleted>
>.
>    "toke.c", line 2517: warning: illegal structure pointer combination, op =
>
>This turns out to be a problem with a pre-existing #define in <sys/file.h>
>as follows:
>

I am using gcc and i did not include file.h, try fcntl.h instead.  Configure
script did it for me.  The only things I've changed was putting 
optimize='-g" or optimize="" in cflags.SH for eval.c teval.c toke.c ttoke.c


>
>Although the program does compile, it is failing ....

How did you get teval.c to compile?  I've tried the stock compiler AND gcc
with and without optimization, but it turns out that the assembly code
just won't assemble with as.  (branch offset to remote).  I've even tried 
"as -n".  I'm waiting on someone to tell me how to use the GNU assembler (gas) 
to see if that might make a difference.  The comment in eval.c from patch1
makes me believe that Larry fixed this problem for *most* machines.

>
>Before I hack things up I wanted to see if there was a standard patch or
>fix for this condition?  Have others gotten perl to compile on this platform
>without problems?  Are you including sys/file.h in your config.sh?

I wouldn't hack it up yet.  If you don't have gcc, get it.  It got me through 
the regular perl files fine, but now the tainted teval.c is stopping me.

>Thanks for any help you may be able to offer.
>--
>Jeff Small                     C. Jeffery Small & Associates    (206) 232-3338
>uunet!nwnexus!cjsa!jeff        7000 E Mercer Way,  Mercer Island, WA     98040


-- 
Rex Fowler <rmfowler at texrex.cirr.com>
UUCP:  egsner!texrex!rmfowler



More information about the Comp.sys.3b1 mailing list