Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!usc!sdd.hp.com!uakari.primate.wisc.edu!samsung!munnari.oz.au!bruce!cechew From: cechew@bruce.cs.monash.OZ.AU (Earl Chew) Newsgroups: comp.os.minix Subject: Re: The continuing saga of Minix 'ar' on the SPARC Keywords: Almost there.... Message-ID: <3570@bruce.cs.monash.OZ.AU> Date: 11 Jan 91 02:23:09 GMT References: <1991Jan9.151828@mobius.Viewlogic.COM> <12887@wraxall.inmos.co.uk> Organization: Monash Uni. Computer Science, Australia Lines: 27 In <12887@wraxall.inmos.co.uk> des@frogland.inmos.co.uk (David Shepherd) writes: >In article <1991Jan9.151828@mobius.Viewlogic.COM>, greg@mobius.Viewlogic.COM (Gregory Larkin) writes: >|> Well, the fight continues to get a SPARC executable to read a Minix >|> .a file. >|> >|> However, when the first header structure is read out of the .a file, >|> most everything in it does not come in correctly. >|> Here's the struct for .a header: >.... let me guess .... the header gets read in by a command like > fread(f, &hdr, sizeof (struct ar_hdr), 1); >if so this is your problem. This is *NON-PORTABLE*. The Sparc I forget about the 1.3 compiler, but the 1.5.10 ar.c packs and unpacks properly (I think --- well at least the intent is there --- I haven't verified that it works ok). Perhaps you can upload the 1.5.10 ar.c first and try that one. Earl -- Earl Chew, Dept of Computer Science, Monash University, Australia 3168 EMAIL: cechew@bruce.cs.monash.edu.au PHONE: 03 5655447 FAX: 03 5655146 ----------------------------------------------------------------------