Usenet comp.os.linux.announce (1993-2013)
 help / color / mirror / Atom feed
* Libg++ 2.5.3l.1 was miscompiled.
@ 1994-02-10 12:50 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 1994-02-10 12:50 UTC (permalink / raw)


The binaries of libg++ 2.5.3l.1 on tsx-11.mit.edu under
pub/linux/packages/GCC were miscompiled. I just put a new
libg++-2.5.3l.1-p1.tar.gz on tsx-11.mit.edu under
pub/linux/packages/GCC. If you compile it yourself with the
latest gcc 2.5.8, it should be ok.

> 
> 
> >> to run executables that use the libg++ String class.  It dies on memset.c:63
> >> apparently.
> >Send me small piece code to show that.
> 
> 	The following errors are reproducible (IE, other linuxers
> running linux 0.99.15, libc 4.5.20, libg++ 2.5.3l.1, gcc 2.5.8 got the
> same errors).
> 
> The code: test.cc, breaks in more than one way on my machine
> 
> #include <stream.h>
> #include <String.h>
> #include <math.h>
> #include <assert.h>
> 
> static inline double log2(double x)
> {
>     register double lgx=log(x)*M_LOG2E;
> 
>     assert( !isnan(lgx) && !isinf(lgx));
>     return lgx;
> }
> 
> main()
> {
>     String foo="Test\n";
>     cout << foo;
>     cout << log2(5);
> }
> 
> when I compile with
> g++ -g -o new new.cc -lm
> gives me:
> new.cc:8 (new.o): Undefined symbol _log referenced from text segment
> /usr/lib/libm.a(isinf.o): Undefined symbol "___isinf" referenced
> /usr/lib/libm.a(isnan.o): Undefined symbol "___isnan" referenced

Please do

cd /usr/lib
ar -d libm.a __.SYMDEF
ranlib libm.a

>  
> Remove -g, and it compiles without errors.
> But then, it crashes without giving any output.  Using gdb, I traced it
> to memset.c:63.

Please try it with a new libg++-2.5.3l.1-p1.tar.gz.

H.J.

--
Mail submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu
PLEASE remember Keywords: and a short description of the software.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1994-02-10 12:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-10 12:50 Libg++ 2.5.3l.1 was miscompiled H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox