delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/25/16:06:55

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10111252102.AA19215@clio.rice.edu>
Subject: Re: Building a profiled version of libc
To: djgpp-workers AT delorie DOT com
Date: Sun, 25 Nov 2001 15:02:21 -0600 (CST)
In-Reply-To: <3C013F37.F451C083@phekda.freeserve.co.uk> from "Richard Dawe" at Nov 25, 2001 06:57:59 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> ./../../hostbin/dxegen.exe ./../../bin/emu387.dxe __emu_entry src/emu387.o
> id_em
> u.o src/emudummy.o -L../../lib c:/djgpp/lib/gcc-lib/djgpp/3.02/libgcc.a
> -lc c:/d
> jgpp/lib/gcc-lib/djgpp/3.02/libgcc.a
> ld -X -S -r -o dxe__tmp.o -L./../../lib src/emu387.o id_emu.o
> src/emudummy.o -L.
> ./../lib c:/djgpp/lib/gcc-lib/djgpp/3.02/libgcc.a -lc
> c:/djgpp/lib/gcc-lib/djgpp
> /3.02/libgcc.a  -T dxe.ld
> ./../../lib/libc.a(_write.o)(.text+0x0):_write.c: multiple definition of
> `_write'
> src/emudummy.o(.text+0x10):emudummy.c: first defined here
> make.exe: *** [../../bin/emu387.dxe] Error 1

> Do you have any suggestions on how to fix this? Are there any options I
> can pass to ld from dxegen that would help? I had a look through the ld
> options in info, but nothing stood out.

Send the -M switch to ld, get the link map to see who is calling what.  You
can add it to the dxegen command line.

The original emu387.dxe builds only used _write for some debugging messages
you should never see unless there were bugs.  If we are pulling in the 
version of _write from the library it should only be if we are referencing
a different symbol in the same _write module somewhere else.

- Raw text -


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