ranlib and ``ucb''

Brandon Allbery allbery at ncoast.UUCP
Mon Jul 7 01:36:36 AEST 1986


Expires:

Quoted from <1916 at brl-smoke.ARPA> ["Unix Makefile"], by CBMurphy at HI-MULTICS.arpa (Cornelia B. Murphy - SCTC)...
+---------------
| We recently received the source code for Chris Lewis's version of Ron Cain's
| Small-C compiler.  We're running on System V and have all the proper
| modifications as Chris has instructed.  However, when running the
| makefile to compile the source, the following sequential makefile lines 
| generate the following error messages:
| 
|           ranlib scclib.a
| Make:  Cannot load ranlib.  Stop.
| 
|           ucb ranlib scclib.a
| Make:  Cannot load ucb.  Stop.
+---------------

The ``ucb'' program looks like a universe-changing program for something like
a Pyramid that supports both BSD4.2 and AT&T SysV simultaneously.  If you had
that you'd probably know it, so forget it.

System V doesn't have ranlib.  Just comment out that step; ld can handle
archives directly.  Under V7 (I think) or System III or Xenix, etc. use the
following on the line that builds the archive:

	ar rcv archive `lorder object-files | tsort`

I find it advisable to rm -f archive before this, as ar will ignore the order
of files stated by tsort and use that already in the archive, which could
cause ld not to see any new files you've added.

Summary:  System V doesn't need ranlib.  [If ld gives you undefined symbol
errors, use lorder and tsort on the line where the archive is created.]

--Brandon
-- 
ihnp4!sun!cwruecmp!ncoast!allbery ncoast!allbery at Case.CSNET ncoast!tdi2!brandon
(ncoast!tdi2!root for business) 6615 Center St. #A1-105, Mentor, OH 44060-4101
Phone: +01 216 974 9210      CIS 74106,1032      MCI MAIL BALLBERY (part-time)



More information about the Comp.unix.wizards mailing list