delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/04/06/03:15:17

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: <cb80cd0c-5807-4c38-988e-f5821a0c5de0@googlegroups.com>
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: <cb80cd0c-5807-4c38-988e-f5821a0c5de0 AT googlegroups DOT com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e0dfe3cf-7bb4-4220-a61a-2471d91e7ff9@googlegroups.com>
Subject: Re: multiple definition of `__environ'
From: rugxulo AT gmail DOT com
Injection-Date: Sat, 06 Apr 2013 07:05:12 +0000
Bytes: 2342
Lines: 23
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
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

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019