From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10274 invoked by alias); 26 May 2005 16:28:11 -0000 Mailing-List: contact insight-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 10260 invoked by uid 22791); 26 May 2005 16:28:09 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Thu, 26 May 2005 16:28:09 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j4QGS6qA023003; Thu, 26 May 2005 12:28:06 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j4QGS6O17408; Thu, 26 May 2005 12:28:06 -0400 Received: from localhost.localdomain (sebastian-int.corp.redhat.com [172.16.52.221]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id j4QGS522023008; Thu, 26 May 2005 12:28:06 -0400 Subject: Re: Multiple definition of `_solib_address' [was RE: RFC: patch for insight & target stdin] From: Keith Seitz To: Dave Korn Cc: insight@sourceware.org, gdb@sourceware.org In-Reply-To: References: Content-Type: text/plain Date: Thu, 26 May 2005 16:28:00 -0000 Message-Id: <1117124885.4456.35.camel@lindt.uglyboxes.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2005-q2/txt/msg00093.txt.bz2 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