Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!husc6!mit-eddie!genrad!decvax!ucbvax!COGSCI.BERKELEY.EDU!bryce From: bryce@COGSCI.BERKELEY.EDU (Bryce Nesbitt) Newsgroups: comp.sys.amiga Subject: How to go slowly nuts- moving object to Amiga Message-ID: <8707152241.AA12328@cogsci.berkeley.edu> Date: Wed, 15-Jul-87 18:41:03 EDT Article-I.D.: cogsci.8707152241.AA12328 Posted: Wed Jul 15 18:41:03 1987 Date-Received: Sat, 18-Jul-87 01:24:15 EDT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 47 Keywords: invalid object file | OK. I am cracking up. I ftp the uudecode.Z program from asc.purdue.edu. | I set binary mode to do this. It looks like: | -rw-r--r-- 1 rminnich 8109 uudecode | -rw-r--r-- 1 rminnich 5709 uudecode.Z | The uncompressed one was created from the 'shar' file in ~ftp/pub | at purdue. Now I load uudecode down over kermit, after | set file type binary | and on the Amiga it is still 8109 bytes. ADos (v1.2) starts to read | it and crunches it for a few seconds, then | cant load uudecode: not an object file | HEEEEEEELLLLLLLP! The AmigaDOS segment loader is very picky about "object" files. If any garbage was present at the end of the file at purdue, or if you added any later the message will be "Unable to load XX: file is not an object module". If a file does not end with a long word aligned $000003F2 then it has probably been damaged. Use "typeopt h" from the CLI to check this. ($000003F2 is also know as HUNK_END) Kermit and Xmodem both have the nasty habit of adding such garbage. You need to pass the files though a program called "HunkPad" which will insert extra "HUNK_END" long words to fix things up. HunkPaded programs are also immune to future Kermit or Xmodem damage. Another program called "AutoChop" works as well, but provides no such future immunity. A working copy of uudecode can be found on FISH disk #53. Unfortunatly this ^^^^^^^^^^^^^ particular uudecode will not decode some of the files that the uudecode here on this BSD 4.3 UNIX machine will. I have not explored this, and instead uudecode on UNIX, Kermit to the Amiga and then HunkPad. Sometimes I uudecode on UNIX then use Xmodem to download to a terminal program that has "AutoChop" built in. Look for "HunkPad" in the Amiga archives at j.cc.purdue.EDU. If you find it you will be pleased to discover that it has already "immunized" itself against the type of damage that Kermit and Xmodem do. The author of HunkPad also lurks on this very net. If you still can't get a working arangement scream in that direction or mine and we'll see what can be worked out. ----------------------------- |\ /| . Ack! (NAK, EOT, SOH) {o o} . ( " ) bryce@cogsci.berkeley.EDU -or- ucbvax!cogsci!bryce U "Success leads to stagnation; stagnation leads to failure."