From: Jim Winstead Jr. (jwinstea@jarthur.claremont.edu)
Date: 07/14/92


From: jwinstea@jarthur.claremont.edu (Jim Winstead Jr.)
Subject: Re: /bin/rc
Date: 14 Jul 1992 07:34:04 GMT

In article <fortony.711097786@murphy> fortony@sonne.cso.uiuc.edu writes:
>Greets --
>
>I ftped the rc sources from archone.tamu.edu, downloaded them, and
>tried to compile them. Unfortunately, most of /usr/include/unistd.h
>seems incompatible with rc's proto.h, and there are a couple of calls
>which are outright errors in /usr/include/unistd.h, including a
>too-many-argument call to setpgrp in some heavy-looking rc code.

Okay, maybe the port wasn't as obvious as I remembered it being :).
It's still pretty easy, though. Delete all the incompatible
references in proto.h - rc is wrong, and shouldn't even be defining
them. Then, change the setpgrp call to have no arguments - that's the
Linux (POSIX?) method of doing it, instead of passing a couple of
arguments that don't really do much of anything, as far as I can tell.

After that, 'rc' should compile without many peeps.

>Since I have no idea what rc is trying to do at that point, I gave
>up my attempts at debugging and standardizing and am now looking
>for gcc2.2.2-compiled rc, preferably with source code so I can see
>what I should have done.

Well, hopefully I've made it clear what you could have done, and you
can get 'rc' successfully compiled. It comes out to about 45k with
shared libs on my system, and something like 90k with GNU readline. I
would upload it, but it is a major inconvenience for me to do so, and
the port is relatively painless. (Once you get past the setpgrp()
matter, that is.)

-- 
                                    +    Jim Winstead Jr. (CSci '95)
                                    |            Harvey Mudd College
                                    | jwinstea@jarthur.Claremont.EDU
                                    + This is all my words.  Honest!