From mint-bounce@lists.fishpool.fi  Thu Jan 31 11:49:34 2008
From: Eero Tamminen <oak@helsinkinet.fi>
Organization: Koti
To: mint@lists.fishpool.fi
Subject: Re: [MiNT] gcc-4.2.2-mint-20080127
Date: Thu, 31 Jan 2008 18:06:02 +0200
User-Agent: KMail/1.9.6
Cc: Vincent =?iso-8859-1?q?Rivi=E8re?= <vincent.riviere@freesbee.fr>,
        mint <mint@fishpool.com>
References: <479C9FDB.7020803@freesbee.fr> <Pine.GSO.4.63.0801281224030.11557@saltmine.radix.net> <479E5050.7040903@freesbee.fr>
In-Reply-To: <479E5050.7040903@freesbee.fr>
MIME-Version: 1.0
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Disposition: inline
Message-Id: <200801311806.02390.oak@helsinkinet.fi>
X-ecartis-version: Ecartis v1.0.0
Sender: mint-bounce@lists.fishpool.fi
Errors-to: mint-bounce@lists.fishpool.fi
X-original-sender: oak@helsinkinet.fi
Precedence: bulk
List-help: <mailto:ecartis@lists.fishpool.fi?Subject=help>
List-unsubscribe: <mailto:mint-request@lists.fishpool.fi?Subject=unsubscribe>
List-Id: <mint.lists.fishpool.fi>
X-List-ID: <mint.lists.fishpool.fi>
List-subscribe: <mailto:mint-request@lists.fishpool.fi?Subject=subscribe>
List-owner: <mailto:tjhukkan@fishpool.fi>
List-post: <mailto:mint@lists.fishpool.fi>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id m0VGnXvu028614

Hi,

On Monday 28 January 2008, Vincent Rivière wrote:
> I tried to cross-build ScummVM from the sources. Of course, it didn't
> link, because I don't have all the required libraries. However, it is
> enough to reproduce the virtual thunk problem !
>
> I finally understood that `non-virtual thunk to
> MidiDriver_Emulated::open()' is simply the demangled name of a symbol
> (i.e. a function with a non-standard name)
>
> An example of demangling using the c++filt tool:
> $ m68k-atari-mint-c++filt __ZTv0_n12_N5Scumm9ScummFileD1Ev
> virtual thunk to Scumm::ScummFile::~ScummFile()
>
> That problematic symbols are defined with .globl in several files, thus
> the linker complains with multiple definitions.
>
> ScummVM uses a complicated class tree with multiple inheritance and
> virtual inheritance (!), which is quite uncommon. The problem may be
> caused by a GCC bug, probably not related with the MiNT patch.

Is the linker upto date?

I think GCC changed the C++ constructor/destructor ABI in v4.x
which required also updates in Gdb.  Maybe linker needed updates
too?


	- Eero


