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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message