arc 5.21 on SCO Xenix

Paul De Bra debra at alice.UUCP
Fri Oct 7 08:49:02 AEST 1988


In article <7600 at rpp386.Dallas.TX.US> jfh at rpp386.Dallas.TX.US (The Beach Bum) writes:
>In article <162 at libove.UUCP> root at 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 at research.att.com   | There's millions of them, all over this code! |
|uunet!research!debra     | Beam me up quickly...Please...                |
|--------------------------------------------------------------------------



More information about the Comp.unix.xenix mailing list