X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 	tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49B92D24.3000802@gmail.com>
Date: Thu, 12 Mar 2009 15:41:24 +0000
From: Dave Korn <dave.korn.cygwin@googlemail.com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: experimental package: gcc4-4.3.2-2
References: <49B90A2B.3050907@alice.it>
In-Reply-To: <49B90A2B.3050907@alice.it>
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Angelo Graziosi wrote:
> To test this new version of the compiler I have rebuild ROOT [1]. It
> builds fine, but when I try to build its tests, at least one fails in
> linking:

> d000037.o:(.idata$5+0x0): multiple definition of `__imp___ZTISt9exception'
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$5+0x0):
> first defined here
> d000037.o:(.idata$6+0x0): multiple definition of `__nm___ZTISt9exception'
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$6+0x0):
> first defined here
> d000073.o:(.idata$5+0x0): multiple definition of `__imp___ZTISt9exception'
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$5+0x0):
> first defined here
> d000073.o:(.idata$6+0x0): multiple definition of `__nm___ZTISt9exception'
> /usr/lib/gcc/i686-pc-cygwin/4.3.2/libstdc++.dll.a(d002074.o):(.idata$6+0x0):
> first defined here

  Ok, for some reason it appears that libCore.dll.a exports symbols from libstdc++:

DKAdmin@ubik /work/root/test
$ nm /work/root/lib/libCore.dll.a  |grep St9exception
71d6b958 d .rdata$_ZTISt9exception
71d6ff40 d .rdata$_ZTSSt9exception
71d6b958 D __ZTISt9exception
71d6ff40 D __ZTSSt9exception


  Looks like the DLL got linked against static libstdc++, while the app links
against shared libstdc++?  That certainly wouldn't be expected to work.  I'll take
a little look at how ROOT builds its DLLs, hopefully we just need to tweak an
LDFLAGS or similar somewhere.

    cheers,
      DaveK

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

