From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28000 invoked by alias); 28 Oct 2002 18:26:00 -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 27972 invoked by uid 71); 28 Oct 2002 18:26:00 -0000 Date: Mon, 28 Oct 2002 10:26:00 -0000 Message-ID: <20021028182600.27965.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Benjamin Kosnik Subject: Re: libstdc++/8197: std::sin(float) causes undefined reference to sinf Reply-To: Benjamin Kosnik X-SW-Source: 2002-10/txt/msg01166.txt.bz2 List-Id: The following reply was made to PR libstdc++/8197; it has been noted by GNATS. From: Benjamin Kosnik To: Gabriel Dos Reis Cc: ehrhardt@mathematik.uni-ulm.de, gcc-gnats@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: libstdc++/8197: std::sin(float) causes undefined reference to sinf Date: Mon, 28 Oct 2002 10:21:41 -0800 >| The problem seems to be that std::sin(float) is an inline function defined in >| cmath. This inline function uses __builtin_sinf which in turn generates >| a reference to a function sinf. >| This function even exists and is exported from stubs.o: >| >| turing# nm sparc-sun-solaris2.9/libstdc++-v3/libmath/stubs.o |grep sinf >| 00000714 T sinf >| >| However, in libstdc++.so the symbol sinf is private: Phil answered this. There is no reason not to export this, or add new symbols to export in a new interface (GLIBCPP_3.2.1). You might try editing config/link-map.gnu. -benjamin