From owner-freebsd-current Thu May 30 14:39:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by hub.freebsd.org (Postfix) with ESMTP id 6B01937B43E; Thu, 30 May 2002 14:38:47 -0700 (PDT) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.11.6/8.11.6) with ESMTP id g4ULckf25288; Thu, 30 May 2002 23:38:46 +0200 (CEST) Date: Thu, 30 May 2002 23:39:31 +0200 (CEST) From: Martin Blapp To: "Bruce A. Mah" Cc: Peter Wemm , , Subject: Re: Solved: libstdc++ problem with recent CURRENT In-Reply-To: <200205302104.g4UL45vL043785@intruder.bmah.org> Message-ID: <20020530233512.N18017-100000@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Seems I was wrong. Uhm. It's late here... Anyway, I've really running it now. If we add this patch, we should also add the bits in libm: #ifndef HAVE_SQRTL long double sqrtl(long double x) { return sqrt((double) x); } #endif #ifndef HAVE_COSL long double cosl(long double x) { return cos((double) x); } #endif #ifndef HAVE_SINL long double sinl(long double x) { return sin((double) x); } #endif or we just compile stubs.c in and the gcc provided bits. But I guess we would also not to link against libm then. root@fuchur:/usr/src# diff -ruN gnu/lib/libstdc++/Makefile.orig gnu/lib/libstdc++/Makefile --- gnu/lib/libstdc++/Makefile.orig Thu May 30 23:35:38 2002 +++ gnu/lib/libstdc++/Makefile Thu May 30 23:32:19 2002 @@ -32,7 +32,7 @@ valarray-inst.cc ext-inst.cc # C parts of math -SRCS+= nan.c signbit.c signbitf.c signbitl.c # stubs.c +SRCS+= nan.c signbit.c signbitf.c signbitl.c stubs.c # Embedded copy of libsupc++ SRCS+= del_op.cc del_opnt.cc del_opv.cc del_opvnt.cc \ But now it's working ... root@fuchur:/usr/src/gnu/lib/libstdc++# nm /usr/lib/libstdc++.a | grep cosl 0000002a T cosl root@fuchur:/usr/src/gnu/lib/libstdc++# nm /usr/lib/libstdc++.a | grep sqrtl 0000016c T sqrtl root@fuchur:/usr/src/gnu/lib/libstdc++# nm /usr/lib/libstdc++.a | grep sinl 00000134 T sinl Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 061 826 93 00: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message