Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mcvax!botter!ast From: ast@botter.UUCP Newsgroups: comp.os.minix Subject: Re: MINIX sh Message-ID: <1189@botter.cs.vu.nl> Date: Thu, 28-May-87 17:20:16 EDT Article-I.D.: botter.1189 Posted: Thu May 28 17:20:16 1987 Date-Received: Sat, 30-May-87 04:48:18 EDT References: <1642@encore.UUCP> Reply-To: ast@cs.vu.nl (Andy Tanenbaum) Organization: VU Informatica, Amsterdam Lines: 18 Keywords: sh shar phooey In article <1642@encore.UUCP> paradis@encore.UUCP (Jim Paradis) writes: >I couldn't rebuild sh!! It would compile, but then asld would >complain about "multiple defined symbols". Before I go too >far down a rathole with this, has ANYONE else out there been >able to successfully rebuild sh? I guess I never tried. I did all the development on PC-IX. But I have an idea what the problem might be. For long and complicated reasons, the MINIX C compiler effectively ignores static declarations. Thus if you have a declaration static int x= 1; that appears in two files, when you link them you will get multiply defined symbols. Take a look at which symbols are multiply defined and see if this is indeed the problem. If so, the simplest fix is to systematically change the conflicting names to nonconflicting names. It is unfortunate that static is ignored, but that is a long story and it is not easy to fix. Andy Tanenbaum (ast@cs.vu.nl)