From owner-freebsd-ports Fri May 19 8:41:22 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 5B17E37BF09 for ; Fri, 19 May 2000 08:41:14 -0700 (PDT) (envelope-from adsharma@sharmas.dhs.org) Received: (from adsharma@localhost) by sharmas.dhs.org (8.9.3/8.9.3) id IAA47832; Fri, 19 May 2000 08:39:48 -0700 (PDT) (envelope-from adsharma) Date: Fri, 19 May 2000 08:39:47 -0700 From: Arun Sharma To: kde-devel@kde.org Cc: ports@freebsd.org Subject: C++ exception handling and non Linux platforms Message-ID: <20000519083947.A47819@sharmas.dhs.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Most non Linux platforms do not link in libgcc.a by default. libkhtml.so uses exception handling. So it has undefined references to __eh_rtime_match etc. A stand alone binary like konqueror or khelpcenter does not have libgcc.a linked in the current build system. Therefore, they crash at runtime, when they dlopen(3) libkhtml.so and do not find __eh_rtime_match. I've found that linking such executables with -lgcc -Wl,-export-symbols fixes the problem. Can someone make the right changes to the build system for this ? -Arun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message