Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!ucsd!ucbvax!BIRK.CS.CHALMERS.SE!bernerus From: bernerus@BIRK.CS.CHALMERS.SE (Christer Bernerus) Newsgroups: comp.soft-sys.andrew Subject: Re: Problems installing ATK on DECstation 5000 Message-ID: Date: 25 Sep 90 07:35:14 GMT References: <9009241708.AA09423@mary.IPA.FhG.de> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 103 Excerpts from info-andrew: 25-Sep-90 Problems installing ATK on .. Juergen Henke@ipa.fhg.de (1599) > - putting crt0.o in the ld command in makedo.csh and dofix.c >> - building libcx.a again Sorry, I wrote the last letter in quite a hurry, so a think I missed some points: This is my Imakefile in overhead/class/machdep/dec_mips: /* ********************************************************************** *\ * Copyright IBM Corporation 1988,1989 - All Rights Reserved * * For full copyright information see:'andrew/config/COPYRITE' * \* ********************************************************************** */ DependTarget() NormalObjectRule() NormalAsmPPRule() all:: globals.o entry.o doload.o globals.o: globalrefs._h entry.o: entry.s cc -c -I. entry.s globalrefs._h: libc.eplist $(AWK) '{printf "\tglobalref(%s)\n", $$2}' libc.eplist >,globalrefs._h $(MV) ,globalrefs._h globalrefs._h libc.eplist: $(MIPSLIBC_G0).a /lib/crt0.o getlist.awk $(RM) /tmp/libhack.a $(AR) /tmp/libhack.a /lib/crt0.o $(NM) -go $(MIPSLIBC_G0).a /tmp/libhack.a | $(TR) ":" " " | \ $(AWK) -f getlist.awk >,libc.eplist $(MV) ,libc.eplist libc.eplist $(RM) /tmp/libhack.a InstallLibrary(libcx.a, $(DESTDIR)/lib) InstallFileToFile(makedo.csh,$(INSTPROGFLAGS),$(DESTDIR)/bin/makedo) all:: libcx.a DelList._: libc.eplist $(AWK) '{print $$1}' libc.eplist | $(SORT) -u > ,DelList._ $(MV) ,DelList._ DelList._ errlst.o: mkerrlst ./mkerrlst >errlst.c $(CC) -c errlst.c libcx.a: $(MIPSLIBC_G0).a DelList._ errlst.o rm -rf new mkdir new cd new;\ ar x $(MIPSLIBC_G0).a;\ cp ../errlst.o .;\ ar cq ,libcx.a *.o /lib/crt0.o;\ ar d ,libcx.a `cat ../DelList._`;\ $(RANLIB) ,libcx.a $(MV) new/,libcx.a libcx.a rm -rf new ProgramTarget(dofix,dofix.o,,) ProgramTarget(mkerrlst,mkerrlst.o,,) InstallProgram(dofix,$(DESTDIR)/bin) clean:: $(RM) DelList._ libc.eplist globalrefs._h ,* libcx.a errlst.o errlst.c mkerrlst mkerrlst.o This Imakefile makes sure that errlst.o will be included in libcx.a. Rebuild libcx.a and verify that errlst.o is there, it is definitely needed. Crt0.o is NOT needed in libcx.a. (I.e. it works better without it ... ) (Maybe you'll have trouble building runapp, then you'll have to link in /lib/crt0.o explictily) Btw, ATK folks, what is libcx.a used for, I'm not sure I understand you fully (:-)) Remove it with %ar d /usr/andrew/lib/libcx.a crt0.o and ranlib. After this is done, try rebuilding environ.do > The whole stuff in overhead built without errors. (Without any reported errors, that is ... ) ------------------------------------------------------- Christer Bernirus ! E-mail: bernerus@cs.chalmers.se Chalmers University of Technology ! Phone: +46 31 721000 Department of Computer Science ! Ham radio: SM6FBQ 144.3 MHz S-412 96 Gvteborg, SWEDEN