Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!uwm.edu!ogicse!milton!sumax!polari!paulc From: paulc@polari.UUCP (Paul Cornett) Newsgroups: comp.os.minix Subject: Re: something's broke -> 1.5 libc.a & ls.c Summary: bug in compiler Message-ID: <3960@polari.UUCP> Date: 4 May 91 21:50:46 GMT References: <9943@plains.NoDak.edu> Organization: Seattle Online Public Unix (206) 328-4944 Lines: 43 In article <9943@plains.NoDak.edu>, enders@plains.NoDak.edu (Todd Enders - WD0BCI ) writes: > > Well, I finally completed my upgrade of Minix from v1.2 to v1.5.10! > Everything compiles and seems to work OK, except for ls (the ls I had for > v1.3 didn't compile either, but that's another story). Everything goes fine > until link time where it dies, saying: > > perror.s 300: _21 multiple declared > unresolved references: I ran into the same problem. There is nothing wrong with perror, it is a bug in the Minix C compiler. I got ls to compile by making the following changes to ls.c: *** ls.c~ Tue Feb 5 06:18:23 1991 --- ls.c Thu Feb 7 14:08:49 1991 *************** *** 485,490 **** --- 485,492 ---- { unsigned short mode; char c, fchar( /* unsigned short mode */ ); + static char *rwx[] = {"---", "--x", "-w-", "-wx", + "r--", "r-x", "rw-", "rwx"}; if (flags_i) printf("%5d ", entry->f_stat.st_ino); *************** *** 493,500 **** mode = entry->f_stat.st_mode; if (flags_l) { - static char *rwx[] = {"---", "--x", "-w-", "-wx", - "r--", "r-x", "rw-", "rwx"}; char bits[11]; switch (mode & S_IFMT) { --- 495,500 ---- Paul Cornett paulc@seattle.uucp or ...!uw-beaver!sumax!seattle!paulc