This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple definition of `_solib_address' [was RE: RFC: patchfor insight & target stdin]


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]