Mail Archives: djgpp/2006/06/04/19:45:33
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 -