Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2002 13:06:59 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Peter Wemm <peter@wemm.org>
Cc:        "Steven G. Kargl" <kargl@troutmask.apl.washington.edu>, freebsd-current@FreeBSD.ORG
Subject:   Re: Rev. 1.48 of stdio.h breaks 3rd part software
Message-ID:  <20021012200659.GB97974@troutmask.apl.washington.edu>
In-Reply-To: <20021012183424.7B7A22A88D@canning.wemm.org>
References:  <200210121729.g9CHTAxN097669@troutmask.apl.washington.edu> <20021012183424.7B7A22A88D@canning.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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