Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 1996 00:29:54 -0400 (EDT)
From:      Keith Mitchell <kmitch@unix.guru.org>
To:        kmitch@unix.guru.org (kmitch)
Subject:   Re: Weirdness in current
Message-ID:  <199610170430.AAA01023@unix.guru.org>
In-Reply-To: <no.id> from kmitch at "Oct 13, 96 11:34:30 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> > I have a C++ program I wrote, and it works fine as long as you don't try to
> > redirect the output.  Doing so, causes it to core dump.  Compiling the
> > same program on a 2.1.0R system works fine though.
> 
> I have a little more insight on this one.  It appears that the same libraries
> are not getting linked in on current as on stable (2.1.0 or 2.1.5).  For
> some reason the math library is getting linked in on stable even though
> I don't tell it to and my program doesn't use it directly.  Current doesn't
> link in the math library.  If I manually tell it to link in the math
> library everything works fine.  I don't have a clue why its doing this
> on I/O redirection.  Anyway here are the ldd outputs in hope that someone
> will be able to find out what the problem is:

Ok.  Here's an update.  I just did a make world from a 10-16 current.
The dynamic linking now appears to work correctly using the math library
by default.  Anyone know why this is even necessary?  It still fails when
linking the program statically through the -Xlinker -Bstatic option.

Thanks.





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