From owner-freebsd-current Wed Oct 16 21:30:15 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id VAA02291 for current-outgoing; Wed, 16 Oct 1996 21:30:15 -0700 (PDT) Received: from unix.guru.org (kmitch@unix.guru.org [198.82.200.65]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id VAA02286 for ; Wed, 16 Oct 1996 21:30:11 -0700 (PDT) Received: (from kmitch@localhost) by unix.guru.org (8.7.6/8.7.3) id AAA01023 for current@freebsd.org; Thu, 17 Oct 1996 00:30:07 -0400 (EDT) From: Keith Mitchell Message-Id: <199610170430.AAA01023@unix.guru.org> Subject: Re: Weirdness in current In-Reply-To: from kmitch at "Oct 13, 96 11:34:30 am" To: kmitch@unix.guru.org (kmitch) Date: Thu, 17 Oct 1996 00:29:54 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL25 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > 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.