From owner-freebsd-current Sat Oct 12 13: 7:10 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 998A737B401 for ; Sat, 12 Oct 2002 13:07:08 -0700 (PDT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30DFB43EC2 for ; Sat, 12 Oct 2002 13:07:08 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.12.6/8.12.5) with ESMTP id g9CK774G098399; Sat, 12 Oct 2002 13:07:07 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.12.6/8.12.6/Submit) id g9CK6xf3098398; Sat, 12 Oct 2002 13:06:59 -0700 (PDT) Date: Sat, 12 Oct 2002 13:06:59 -0700 From: Steve Kargl To: Peter Wemm Cc: "Steven G. Kargl" , freebsd-current@FreeBSD.ORG Subject: Re: Rev. 1.48 of stdio.h breaks 3rd part software Message-ID: <20021012200659.GB97974@troutmask.apl.washington.edu> References: <200210121729.g9CHTAxN097669@troutmask.apl.washington.edu> <20021012183424.7B7A22A88D@canning.wemm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021012183424.7B7A22A88D@canning.wemm.org> User-Agent: Mutt/1.4i 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, Oct 12, 2002 at 11:34:24AM -0700, Peter Wemm wrote: > "Steven G. Kargl" wrote: > > > > Revision 1.48 / (download) - annotate - [select for diffs], \ > > Fri Oct 11 22:38:17 2002 UTC (18 hours, 14 minutes ago) by peter > > Branch: MAIN > > Changes since 1.47: +0 -8 lines > > Diff to previous 1.47 (colored) > > > > Zap the early-adopter transition aid before we get into serious > > 5.0-R territory, as threatened. This only affects antique 5.0 > > systems that have not had a 'make world' done for well over a year. > > > > kargl[203] make > > f95 -O -C=all -o testchkder chkdrv.f90 -L. -lminpack > > /usr/local/lib/NAGWare/libf96.so: undefined reference to `__sF' > > collect2: ld returned 1 exit status > > *** Error code 1 > > > The reason why this is not working is because ld looks at .a and .so files > > only. It will not link with libc.so.4, only libc.so. We only provide > /usr/lib/compat/libc.so.4 for runtime compatability, not compile time > compatability. > > Here's something to try: > mkdir /somewhere/lib > cd /somewhere/lib > ln -s /usr/lib/compat/libc.so.4 ./libc.so > ... repeat ... > This works! Thanks, Peter. f95 -c hello.f90 gcc -v -o hello -nostdlib \ /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o \ /usr/local/lib/NAGWare/quickfit.o hello.o /usr/local/lib/NAGWare/libf96.so\ -lm \ /usr/home/karg/tmp/minpack/lib/libc.so \ /usr/lib/crtend.o /usr/lib/crtn.o But, the 2nd and 6th lines in the gcc command use the crt* files from freebsd-current. The math library, -lm, is also from freebsd-current. /usr/lib/compat does not contains neither a 4.x math library nor the crt* files. The libc.so is the symlink you suggested. kargl[274] ldd hello hello: libf96.so.1 => /usr/local/lib/NAGWare/libf96.so.1 (0x2806b000) libm.so.2 => /usr/lib/libm.so.2 (0x2810b000) libc.so.4 => /usr/lib/compat/libc.so.4 (0x28129000) -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message