X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.224.18.132 with SMTP id w4mr740748qaa.1.1365231912874; Sat, 06 Apr 2013 00:05:12 -0700 (PDT) X-Received: by 10.49.60.170 with SMTP id i10mr1182086qer.41.1365231912856; Sat, 06 Apr 2013 00:05:12 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Sat, 6 Apr 2013 00:05:12 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=65.13.115.246; posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO NNTP-Posting-Host: 65.13.115.246 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: multiple definition of `__environ' From: rugxulo AT gmail DOT com Injection-Date: Sat, 06 Apr 2013 07:05:12 +0000 Content-Type: text/plain; charset=ISO-8859-1 Bytes: 2342 Lines: 23 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r367F4QT025307 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi Georg, On Wednesday, April 3, 2013 1:21:19 PM UTC-5, Georg Potthast wrote: > > I get the following messages when linking: > > controls/controls.o:menu.c:(.data+0x0): multiple definition of `__environ' > if1632/if1632.o:fake:(.data+0x0): first defined here > loader/loader.o:dump.c:(.data+0x0): multiple definition of `__environ' > if1632/if1632.o:fake:(.data+0x0): first defined here > memory/memory.o:global.c:(.data+0x0): multiple definition of `__environ' > if1632/if1632.o:fake:(.data+0x0): first defined here > misc/misc.o:main.c:(.data+0x0): multiple definition of `__environ' > if1632/if1632.o:fake:(.data+0x0): first defined here > > But I cannot find "environ" in these program files. > Can someone give me a clue what could be the cause of this problem? What project are you trying to build? Which compiler (C, C++)? 2.03p2 or 2.04 or CVS build? Have you tried grepping DJLSR*.ZIP? It sounds like something system-related (isn't "__" prefix reserved?). I don't know other than that, what cmdline invocation are you using? Try "gcc -v" (or "gpp -v"), and see what libraries it's trying to link.