Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!bunnell From: bunnell@udel.edu (H Timothy Bunnell) Newsgroups: comp.os.minix Subject: Re: multiple definitions of locals. Keywords: cc, asld, 1.5.0 Message-ID: <7696@nigel.udel.EDU> Date: 8 Jan 90 22:13:09 GMT References: <1860@xyzzy.UUCP> Sender: usenet@udel.EDU Reply-To: bunnell@udel.edu (H Timothy Bunnell) Organization: University of Delaware Lines: 15 In article <1860@xyzzy.UUCP> clegg@tomcat.rtp.dg.com (Alan Clegg) writes: >While trying to compile the Minix 1.5.0 commands, I began getting >messages stating that >_20 was multiply defined (in ls.c and perror.s). > >I seem to remember somebody having (and fixing?) this problem before. > If you are using the 1.2 ACK compiler you can get such errors by having variables declared static within a code block that is _not_ also the start of a function. Either remove the static, or if it is necessary, move the declaration to the begining of the function and it should work ok. Tim Bunnell