delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2006/06/04/17:16:25

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "Jean-Pierre Le Rouzic" <jean_contatenated_with_pierre DOT dot_lerouzic_ AT at_wanadoo DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: error while compiling Freedos32
Date: Sun, 4 Jun 2006 22:57:55 +0200
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
X-RFC2646: Format=Flowed; Original
Lines: 37
Message-ID: <448349f2$0$18302$ba4acef3@news.orange.fr>
Organization: les newsgroups par Orange
NNTP-Posting-Date: 04 Jun 2006 23:00:34 CEST
NNTP-Posting-Host: 82.126.101.126
X-Trace: 1149454834 news.orange.fr 18302 82.126.101.126:4124
X-Complaints-To: abuse AT orange DOT fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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