Xref: utzoo comp.sources.d:2741 comp.unix.xenix:3553 Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!bellcore!faline!thumper!ulysses!andante!alice!debra From: debra@alice.UUCP (Paul De Bra) Newsgroups: comp.sources.d,comp.unix.xenix Subject: Re: arc 5.21 on SCO Xenix Message-ID: <8270@alice.UUCP> Date: 6 Oct 88 22:49:02 GMT References: <162@libove.UUCP> <7600@rpp386.Dallas.TX.US> Reply-To: debra@alice.UUCP () Organization: University of Antwerp Lines: 33 In article <7600@rpp386.Dallas.TX.US> jfh@rpp386.Dallas.TX.US (The Beach Bum) writes: >In article <162@libove.UUCP> root@libove.UUCP (Jay M. Libove) writes: >>I built arc 5.21 on a SCO Xenix 2.2.1 (development system 2.2.1) 80286 >>system, and though there are no complaints at all during the compile and >>link, when I run it... >> >>[root]/src/arc521/work:(1 ) % ./arc >>./arc./arc: syntax error at line 1: `)' unexpected >>: ^Ke]K3@^^PP0~P0^BP^Z*x?^CD^H^Cz^?t3^KB^G^Vr^W#t^W^KRt^E^NZ#^H^NX3@#^\ >> HHH#|8: not found >>./arc: ##^B0q#: not found > >There appears to be some bug in the loader that it generates bogus >a.out files from syntactically correct C code. >... It is possible that the loader fails without giving an error message, causing it to "forget" to turn the linked program into a valid a.out. I have had the loader fail on correctly compiled programs and this problem may (or may not) be related. Sometimes in a large program the loader fails to load some routine from libc (after loading your .o files). I had this with "signal" for instance. My solution was to extract the trouble-routine from the library (ar -x /lib/Llibc.a signal.o) and then load it first, so I said cc -o myprog signal.o myprog.o ... And that fixed the problems. Paul. |-------------------------------------------------------------------------- |Paul De Bra | I am completely surrounded by giant bugs ! | |debra@research.att.com | There's millions of them, all over this code! | |uunet!research!debra | Beam me up quickly...Please... | |--------------------------------------------------------------------------