From owner-freebsd-ports Sat May 20 11:47:55 2000 Delivered-To: freebsd-ports@freebsd.org Received: from sharmas.dhs.org (c62443-a.frmt1.sfba.home.com [24.0.69.165]) by hub.freebsd.org (Postfix) with ESMTP id 38F3337B53A; Sat, 20 May 2000 11:47:53 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id LAA03364; Sat, 20 May 2000 11:47:34 -0700 Date: Sat, 20 May 2000 11:47:34 -0700 From: Arun Sharma To: "David O'Brien" Cc: kde-devel@kde.org, ports@freebsd.org Subject: Re: C++ exception handling and non Linux platforms Message-ID: <20000520114734.A2904@sharmas.dhs.org> References: <20000519083947.A47819@sharmas.dhs.org> <20000520103959.A12924@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.6i In-Reply-To: <20000520103959.A12924@dragon.nuxi.com>; from David O'Brien on Sat, May 20, 2000 at 10:39:59AM -0700 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, May 20, 2000 at 10:39:59AM -0700, David O'Brien wrote: > On Fri, May 19, 2000 at 08:39:47AM -0700, Arun Sharma wrote: > > Most non Linux platforms do not link in libgcc.a by default. > > Uh... NO! Try running ``cc -v'' sometimes on FreeBSD. libgcc.a is a > *REQUIRED* library to link against when using GCC. I didn't express myself correctly in that sentence. Though libgcc.a is linked by default, the symbols don't participate in dynamic linking. With -Wl,-export-dynamic: $ objdump -T .libs/konqueror | grep __eh 0804ad64 g DF .text 00000022 __eh_alloc 0804ad88 g DF .text 00000013 __eh_free 0804cf44 g DF .text 00000042 __eh_rtime_match and without -Wl,-export-dynamic: $ objdump -T .libs/konqueror | grep __eh 08049338 g DF .text 00000022 __eh_alloc > There is C++ exception handling code in Linux's glibc2, that I cannot > fathom why they put it there. I have a feeling your problems are the > fault of the software you are trying to port. I don't see any C++ exception handling symbols in Linux glibc2. $ nm /lib/libc.so.6 | grep eh 0005b8f0 t freehook 0005c0e0 t tr_freehook -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message