Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!think!mit-eddie!genrad!decvax!cwruecmp!hal!ncoast!allbery From: allbery@ncoast.UUCP (Brandon Allbery) Newsgroups: net.unix-wizards Subject: ranlib and ``ucb'' Message-ID: <1278@ncoast.UUCP> Date: Sun, 6-Jul-86 11:36:36 EDT Article-I.D.: ncoast.1278 Posted: Sun Jul 6 11:36:36 1986 Date-Received: Tue, 8-Jul-86 04:54:56 EDT References: <1916@brl-smoke.ARPA> Reply-To: allbery@ncoast.UUCP (Brandon Allbery) Followup-To: net.unix-wizards Organization: North Coast Computer Resources Lines: 37 Expires: Quoted from <1916@brl-smoke.ARPA> ["Unix Makefile"], by CBMurphy@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@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)