From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27346 invoked by alias); 7 Aug 2002 07:36:09 -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 27315 invoked by uid 71); 7 Aug 2002 07:36:08 -0000 Resent-Date: 7 Aug 2002 07:36:08 -0000 Resent-Message-ID: <20020807073608.27314.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, lionel.champalaune@sophia.inria.fr Received: (qmail 11508 invoked by uid 61); 7 Aug 2002 07:28:58 -0000 Message-Id: <20020807072858.11507.qmail@sources.redhat.com> Date: Wed, 07 Aug 2002 00:36:00 -0000 From: lionel.champalaune@sophia.inria.fr Reply-To: lionel.champalaune@sophia.inria.fr To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/7518: Problem on opening a shared library with Gcc3.1.1 X-SW-Source: 2002-08/txt/msg00128.txt.bz2 List-Id: >Number: 7518 >Category: c++ >Synopsis: Problem on opening a shared library with Gcc3.1.1 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: unassigned >State: open >Class: wrong-code >Submitter-Id: net >Arrival-Date: Wed Aug 07 00:36:04 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Lionel Champalaune >Release: GCC 3.1.1 >Organization: >Environment: i686-pc-linux >Description: An error message appear when a shared library is opened. > Error: ./libTestlib.so: undefined symbol: _ZNSt19basic_ostringstreamIcSt11char_traitsIcESaIcEEC1ESt13_Ios_Openmode This problem didn't appear with the 3.1 version. Libtool is used, and it's in the generated compilation that the bug appears. This problem doesn't appear when the -g option to gcc is given. By using g++ instead of gcc, the problem disappear. gcc is used by libtool in a looklike utilization. >How-To-Repeat: run the file Command: >./Commandgcc >Fix: Used g++ instead of gcc in the second line: >./Commandg++ >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="Commandgcc" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="Commandgcc" ZysrIC1jIC1vIFRlc3RsaWIubG8gVGVzdGxpYi5DIApnY2MgLXNoYXJlZCBUZXN0bGliLmxvIC1X bCwtc29uYW1lIC1XbCxsaWJUZXN0bGliLnNvIC1vIGxpYlRlc3RsaWIuc28KZysrIFRlc3RtYWlu LkMgLWxkbAouL2Eub3V0Cg==