This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Multiple definition of `_solib_address' [was RE: RFC: patchfor insight & target stdin]
- From: Keith Seitz <keiths at redhat dot com>
- To: Dave Korn <dave dot korn at artimi dot com>
- Cc: insight at sourceware dot org, gdb at sourceware dot org
- Date: Thu, 26 May 2005 09:28:05 -0700
- Subject: Re: Multiple definition of `_solib_address' [was RE: RFC: patchfor insight & target stdin]
- References: <SERRANOGiKAe2hXSDx100000175@SERRANO.CAM.ARTIMI.COM>
On Thu, 2005-05-26 at 17:25 +0100, Dave Korn wrote:
> Anyway, so far I've only got as far as discovering that CVS HEAD of
> (insight+dejagnu) won't build at the moment. Anyone recognize this error?
> I'm afraid solibs in general are not my forte......
>
> rm -f gdb.exe
> gcc -g -O2 -Wl,--subsystem,console \
> -o gdb.exe gdb.o libgdb.a \
> ../readline/libreadline.a ../opcodes/libopcodes.a ../bfd/libbfd.a
> ..
> /libiberty/libiberty.a ../libgui/src/libgui.a
> -L/davek/patch-gnu/testing/gdb/
> obj/itcl/itcl -litcl32 -L/davek/patch-gnu/testing/gdb/obj/itcl/itk -litk32
> -L/da
> vek/patch-gnu/testing/gdb/obj/tk/win -ltk84
> -L/davek/patch-gnu/testing/gdb/obj/t
> cl/win -ltcl84 -lgdi32 -lcomdlg32 -limm32 -lcomctl32 -lshell32 -lncurses
> -lm
> -liconv ../libiberty/libiberty.a -luser32 -limagehlp -lshell32 -lgdi32
> -lcomdlg3
> 2 -ladvapi32
> libgdb.a(solib.o)(.text+0xd00): In function `solib_address':
> /gnu/testing/gdb/src/gdb/solib.c:771: multiple definition of
> `_solib_address'
> libgdb.a(win32-nat.o)(.text+0xdf0):/gnu/testing/gdb/src/gdb/win32-nat.c:728:
> first defined here
Yeah, it looks like gdb is undergoing some churn in the shared library
support... I just worked around it by adding #ifndef __CYGWIN__ in
solib.c to wipe the other definition of solib_address. I guess we should
mention this on the gdb list if it hasn't been fixed yet.
Keith