From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29303 invoked by alias); 27 Jan 2003 13:06:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 29288 invoked by uid 71); 27 Jan 2003 13:06:01 -0000 Date: Mon, 27 Jan 2003 13:06:00 -0000 Message-ID: <20030127130601.29287.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Subject: Re: c++/8847: dynamic_cast segfaults with shared lib Reply-To: X-SW-Source: 2003-01/txt/msg01500.txt.bz2 List-Id: The following reply was made to PR c++/8847; it has been noted by GNATS. From: To: , , , , , Cc: Subject: Re: c++/8847: dynamic_cast segfaults with shared lib Date: Mon, 27 Jan 2003 14:00:23 +0100 =20 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=3Dview%20audit-trail&databas= e=3Dgcc&pr=3D88 47 Hi, i had the same problem with linking against libGLU.so.=20 It seems to be that dynamic_cast is internally using the symbol __dynam= ic_cast,=20 which is exported by libGLU: >nm /usr/lib/libGLU.so | grep dynamic_cast >0007b1d4 T __dynamic_cast but also by libstdc++: >nm /usr/local/lib/libstdc++.so | grep dynamic_cast >00050a00 T __dynamic_cast In my case, it is enough to export the environment variable LD_PRELOAD = to the=20 /usr/local/lib/libstdc++.so, or to pass the linker flag -lstdc++ as the= _first_=20 -l option. Kind Regards, -----------------------------------------------------------------------= --------- ----- Christoph Wiedemann=20 DaimlerChrysler AG, Research Center Ulm=20 P.O. Box 2360, 89013 Ulm, Germany=20 Phone: +49 731 505 4123=20 e-mail: christoph.wiedemann@daimlerchrysler.com=20 -----------------------------------------------------------------------= --------- ----- =