Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!vsi1!wyse!mips!sultra!dtynan
From: dtynan@sultra.UUCP (Der Tynan)
Newsgroups: comp.os.minix
Subject: Re: Order of files in /lib/libc.a
Summary: Why not use 'lorder'.
Message-ID: <2685@sultra.UUCP>
Date: 29 Nov 88 23:07:40 GMT
References: <1705@ast.cs.vu.nl>
Organization: Tynan Computers, Sunnyvale, CA
Lines: 39

In article <1705@ast.cs.vu.nl>, ast@cs.vu.nl (Andy Tanenbaum) writes:
> 
> Every couple of weeks somebody asks me what the order of the files is in
> /lib/libc.a.  Here is my ordering:

> Andy Tanenbaum (ast@cs.vu.nl)

	[Ordering deleted -- go see the original posting :-]

What I have ended up doing, is writing a simple shell script to read the file
'order', split it up (in the same way Art Zemon did), and generate a NEW libc
from the .s files.  The original 'run' script has given me endless problems,
for example, if a function fails to compile, it's impossible to just continue.
I have found that use of 'run' usually will end up destroying my copy of libc.a
and because it doesn't keep a copy around, I have to go to backup tapes.  Why
is it, that not all the routines are actually in the source directory, meaning
that 'run' must go to /usr/lib/libc.a to get the remaining.  I made a list of
all the files not included (xor.s, cmu4.s, etc), and put copies in IBM_PC, so
that I can basically build a library from scratch.  I have finally gotten
lorder and tsort to work, so I no longer need to try and find up-to-date
orderings, when I add new routines (like ndir, or getopt).  The only problem
is in the looping of 'catchsig.s' and 'signal.s'.  For this reason, I use the
following;
	lorder *.s >order.tmp

Then, edit order.tmp, removing the line that has;
	catchsig.s signal.s

Finally, run tsort order.tmp >order ; rm order.tmp
This works just fine, and means I never have to worry about library ordering
again.  If anyone wants more info, just send me e-mail.
BTW;  Des Young tells me that most of those 'strange' files (cmu4.s etc) are
no longer needed.  Is this the case?  I am still including them.
						- Der
-- 
	dtynan@zorba.Tynan.COM  (Dermot Tynan @ Tynan Computers)
	{apple,mips,pyramid,uunet}!Tynan.COM!dtynan

 ---  If the Law is for the People, then why do we need Lawyers? ---