From owner-freebsd-current Sat Nov 2 12: 0:45 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7934737B401 for ; Sat, 2 Nov 2002 12:00:43 -0800 (PST) Received: from kayak.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9C2243E8A for ; Sat, 2 Nov 2002 12:00:42 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by kayak.xcllnt.net (8.12.6/8.12.6) with ESMTP id gA2K0g0N090960; Sat, 2 Nov 2002 12:00:42 -0800 (PST) (envelope-from marcel@kayak.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.6/8.12.6) with ESMTP id gA2K0gFE000744; Sat, 2 Nov 2002 12:00:42 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.6/8.12.6/Submit) id gA2K0g6L000743; Sat, 2 Nov 2002 12:00:42 -0800 (PST) Date: Sat, 2 Nov 2002 12:00:42 -0800 From: Marcel Moolenaar To: Steve Kargl Cc: Mark Murray , freebsd-current@FreeBSD.ORG Subject: Re: __sF Message-ID: <20021102200042.GB669@athlon.pn.xcllnt.net> References: <20021102181031.GB28779@troutmask.apl.washington.edu> <200211021906.gA2J6ld0072679@grimreaper.grondar.org> <20021102192432.GC28971@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021102192432.GC28971@troutmask.apl.washington.edu> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Nov 02, 2002 at 11:24:32AM -0800, Steve Kargl wrote: > On Sat, Nov 02, 2002 at 07:06:47PM +0000, Mark Murray wrote: > > > I seriously doubt that NAG will support both a > > > 4.x and 5.x version of their compiler. > > > > This shouldn't be a problem. The commercial software Should Not Be(tm) > > supporting something as variable as CURRENT, and with the STABLE libraries > > around in COMPAT mode, the compiler Will Just Work(tm) (or should with > > not much effort). > > > > By the time __sF is mainstream, I guess the vendor will have adapted > > their product to match. Win, win. > > > > No, it does not just work. The NAG f95 compiler generates a > C file. The C file is compiled by gcc. > > f95 -o a a.f90 > > is equivalent to > > f95 -c -o a.c a.f90 > gcc -o a a.c -lf96 -lm -lc > > libf96.so is linked against libc.so, which is a symlink > to libc.so.4 on a 4.x system. libm.so and libc.so are > symlinks that point to libm.so.2 and libc.so.5 on 5.x. > You pick up the wrong libc.so in the above line. I see where this is breaking. The compat libs work because binaries are already linked against them. What you're describing is a need to link against libc.so.4 whilst on a -current box. Much the same as developing under the Linuxulator: you're not using the native bits. The problem is not unsolvable, but you also need the 4.x headers to make it work. The first hurdle is getting NAG f90 to pick up a random C compiler. The random C compiler then has to pick up the 4.x headers and libraries by having an alternate system includes and libraries path. With GCC this should be simple enough. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message