From owner-freebsd-questions Wed May 5 16: 3:31 1999 Delivered-To: freebsd-questions@freebsd.org Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id CDF4914E60 for ; Wed, 5 May 1999 16:03:18 -0700 (PDT) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by finch-post-10.mail.demon.net with smtp (Exim 2.12 #1) id 10fAh9-0006XC-0A; Wed, 5 May 1999 23:03:15 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from support-3.uk.radan.com (support-3 [193.114.228.220]) by uk.radan.com (8.6.10/8.6.10) with ESMTP id AAA00367; Thu, 6 May 1999 00:02:43 +0100 Received: from marder-1. by support-3.uk.radan.com (SMI-8.6/SMI-SVR4) id XAA19164; Wed, 5 May 1999 23:50:03 +0100 Received: (from marko@localhost) by marder-1. (8.9.2/8.8.8) id XAA17096; Wed, 5 May 1999 23:50:02 +0100 (BST) (envelope-from marko) Date: Wed, 5 May 1999 23:50:02 +0100 From: Mark Ovens To: Doug White Cc: FreeBSD-questions Subject: Re: gcc differences between aout & ELF Message-ID: <19990505235002.C2189@marder-1> References: <19990504235146.D419@marder-1> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.3i In-Reply-To: ; from Doug White on Wed, May 05, 1999 at 02:15:41PM -0700 Organization: Total lack of Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, May 05, 1999 at 02:15:41PM -0700, Doug White wrote: > On Tue, 4 May 1999, Mark Ovens wrote: > > > > > Should I expect there to be any differences between the same version > > > > of gcc under 2.2.8 and 3.1, other than one outputting aout files and > > > > the other outputting ELF?. > > > > > > > > I have a (large) program that compiled and linked fine using gcc 2.8.1 > > > > (*not* the standard gcc used for building the system). After u/g to > > > > 3.1 this program wouldn't run as some of the required aout libs are > > > > not installed. I installed gcc-2.8.1 from the packages on the 3.1 CD > > > > and recompiled my program but I get errors, mainly from the linker > > > > (undefined symbols etc). > > Why don't you rebuild the required libraries to ELF? > Why should I have too? This system was installed from scratch, it's all ELF (I've file(1)'d all the libs I can find and they're all ELF, except the aout compat stuff). > > > We had to move the a.out libraries to another area and set up ldconfig to > > > cache them independently. If you didn't install the 2.2 compatibility > > > distribution then you're missing those libraries. > > > > > > The libs should be in /lib-path/aout. > > > > > > > Yes, I know. It's mainly the xview libs that are missing (not part > > of the base dist. or the 2.2 compat stuff) that is why I decided > > to re-compile it all as ELF. > > > > I'm just interested as to why the same version of gcc should, > > seemingly behave differently under 2.2.8 and 3.1 > > It's not, it's acting as it always had. You just have new libraries to > consider. > What new libs exactly? I think I may know what I've screwed up. Before I installed gcc-2.8.1 I tried egcs-1.1.1. That gave more errors, so I then installed gcc-2.8.1. I've since read some docs at Cygnus' website that mention that egcs includes a new libstdc++ (?) whereas gcc-2.8.1 doesn't. Also pkg_info -v egcs-1.1.1 mentioned something about moving some libs "to avoid conflict with the stock compiler". I've pkg_deleted both egcs and gcc and the re-installed gcc. I'm now re-compiling my job (it'll take about 1-1/4 hours to compile the ~6000 source files) so I'm keeping my fingers crossed that it'll work this time. > Doug White > Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve > http://gladstone.uoregon.edu/~dwhite | www.freebsd.org > > -- FreeBSD - The Power To Serve http://www.freebsd.org My Webpage http://www.users.globalnet.co.uk/~markov _______________________________________________________________ Mark Ovens, CNC Apps Engineer, Radan Computational Ltd. Bath UK CAD/CAM solutions for Sheetmetal Working Industry mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message