Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2002 23:39:31 +0200 (CEST)
From:      Martin Blapp <mb@imp.ch>
To:        "Bruce A. Mah" <bmah@FreeBSD.ORG>
Cc:        Peter Wemm <peter@wemm.org>, <obrien@FreeBSD.ORG>, <current@FreeBSD.ORG>
Subject:   Re: Solved: libstdc++ problem with recent CURRENT 
Message-ID:  <20020530233512.N18017-100000@levais.imp.ch>
In-Reply-To: <200205302104.g4UL45vL043785@intruder.bmah.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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, <mb@imp.ch> <mbr@FreeBSD.org>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 061 826 93 00: +41 61 826 93 01
PGP: <finger -l mbr@freebsd.org>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020530233512.N18017-100000>