Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!udel!mmdf From: HELMER%SDNET.BITNET@vm1.nodak.edu (Guy Helmer) Newsgroups: comp.os.minix Subject: Re: Compiling problems, won't link Message-ID: <24968@louie.udel.EDU> Date: 29 Sep 89 14:06:21 GMT Sender: mmdf@udel.EDU Lines: 21 >In article <15214@bcsaic.UUCP>, paula@bcsaic.UUCP (Paul Allen) writes: >> While linking the kernel, asld complained >> about "_control multiple declared" in table.c. > >I fixed the same problem by renaming "controller_busy" to "zcontroller_busy" >so cc would generate a unique label. (Its a dirty hack, I know..) > >What I don't understand is why the "PRIVATE controller_busy" declaration >doesn't automatically restrict the scope or visibility of the label just >to the wini compilation unit (wini.c). Obviously, I'm missing something. > >Al DonaldsonThe combined assembler/loader is the root of the problem. asld "sees" all of the symbols in all the modules at assembly time and ends up paying no attention to PRIVATE or PUBLIC declarations. - -- Guy Helmer AT&T: (605) 256-5315 Dakota State University Computing Services (605) 256-6411 BITNET: HELMER@SDNET