wcs@homxa.UUCP (Bill Stewart HO 4K-437 x0705) (03/10/84)
The f77 library does not contain the routines referenced by the compiler for reading list-directed input from a character string. This is true on a VAX running 5.0.something (5.0.1?) and also on an IBM 370 running MAXI-UNIX. (I don't have a 3B to check it on.) The routines are called _s_rsli and _e_rsli. Here is a sample proram which dies from this error, and another with almost the same commands which doesn't. $ cat small.f c Test of input through character variables. c character *1 inputline(80) c This also fails with character *80 inputline integer a,b c read(5,10) line 10 format(A80) write(6,*) line read(UNIT=line, FMT=* ) a c The FMT= associated with the * keyword is c mentioned inn the IBM Fortran 77 manuals, c but read(UNIT=line, * ) also dies. read(5,*) b write(6,*) 'A,B: ',a,b stop end $ f77 small.f small.f: MAIN: undefined first referenced symbol in file _s_rsli small.o _e_rsli small.o ld fatal: Symbol referencing errors. No output written to a.out $ ----------------------------------------------------------------- The following compiles fine: ----------------------------------------------------------------- c Test of input through character variables. c character *80 line integer a,b c read(5,10) line 10 format(A80) write(6,*) line read(UNIT=line, 20 ) a 20 format(I6) read(5,*) b write(6,*) 'A,B: ',a,b stop end Is there a known fix for this? Thanks; -- Bill Stewart AT&T Bell Labs, Holmdel NJ HO 4K-437 x0705 (201-949-0705) ho95b!wcs ucbvax!ihnp4!ho95b!wcs decvax1harpo!ho95b!wcs
woods@hao.UUCP (Greg Woods) (03/17/84)
This bug is also present in 4.?BSD f77. Under 4.1a, use of a NAMELIST statement results in undefined routine errors at link time. Under 4.2, the compiler rejects NAMELIST statements as unrecognized. Greg "FORTRAN hacker" Woods -- {ucbvax!hplabs | allegra!nbires | decvax!stcvax | harpo!seismo | ihnp4!stcvax} !hao!woods