delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/06/04/19:45:33

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 05 Jun 2006 02:44:43 +0300
From: alex bodnaru <alexbodn AT 012 DOT net DOT il>
Subject: Re: error while compiling Freedos32
In-reply-to: <448349f2$0$18302$ba4acef3@news.orange.fr>
To: djgpp AT delorie DOT com
Message-id: <4483706B.4030407@alex3>
MIME-version: 1.0
X-Accept-Language: en-us, he
References: <448349f2$0$18302$ba4acef3 AT news DOT orange DOT fr>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060205
Debian/1.7.12-1.1
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

hello,

it may be defined in a file which is included several times.

good luck,

alex

Jean-Pierre Le Rouzic wrote:
> Hello
> 
> I am sorry to post here but it seems there is no Freedos32 group.
> I use DJGPP and the makefile provided, and there is an error:
> "multiple definition of `_environ'"
> I know that means that the symbol environ is used two times, but it is not 
> the case in the full sources of Freedos32.
> In fact it is used one time, but even when I add an "extern" to the 
> definition there is always the same message.
> If I understand the error message, the original definition of "environ" 
> seems to be in boot.c, but it is not there.
> I have make several attempts and many searches on Google, but I still don't 
> understand.
> 
> Please could you help me?
> 
> Jean-Pierre
> 
> This is the end of the compiling messages where the error happens:
> ld -T ../oslib/mk/os.x -Bstatic -Ttext 0x100000 --oformat 
> coff-go32 -s -nostartf
> iles -nostdlib -L../oslib/lib/ ../oslib/lib/x0.o boot/fdboot.o 
> devices/devices.o
>  dynalink/dynalink.o filesys/filesys.o kernel/kernel.o 
> cons/cons.o --start-group
>  -lhc -lhx -lkl --end-group -o fd32.bin
> dynalink/dynalink.o:coff.c:(.data+0x0): multiple definition of `_environ'
> boot/fdboot.o:boot.c:(.data+0x0): first defined here
> filesys/filesys.o:: multiple definition of `_environ'
> boot/fdboot.o:boot.c:(.data+0x0): first defined here
> kernel/kernel.o:: multiple definition of `_environ'
> boot/fdboot.o:boot.c:(.data+0x0): first defined here
> cons/cons.o:: multiple definition of `_environ'
> boot/fdboot.o:boot.c:(.data+0x0): first defined here
> make.exe: *** [fd32.bin] Error 1 
> 
> 
> 

- Raw text -


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