[SAC-HELP] problems with sacio.a on the mac
Arthur Snoke
snoke at vt.edu
Wed Mar 8 14:45:00 PST 2006
I am trying to port (fortran) programs using sacio from sun solaris to
both the mac and linux. Things seem to work on linux, but not on the mac.
Hopefully someone has some insights to share.
OS 10.4.5 gcc 4 g77 (but not built for gcc 4).
sacio.a built on February 18 this year.
Simple program:
PROGRAM RSAC
PARAMETER (MAX=1000)
DIMENSION YARRAY(MAX)
CHARACTER*10 KNAME
KNAME='FILE1'
CALL RSAC1(KNAME,YARRAY,NLEN,BEG,DEL,MAX,NERR)
stop
END
f77 rsac.f -L/usr/local/lib -lsacio -o rsac
/usr/bin/ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_printf$LDBLStub
_sscanf$LDBLStub
collect2: ld returned 1 exit status
When I tried a more elaborate program, I got more messages:
/usr/bin/ld: warning multiple definitions of symbol _fmax
/usr/local/lib/libsacio.a(math.o) definition of _fmax in section
(__TEXT,__text)
/usr/lib/system/libmathCommon.A.dylib(single module) definition of _fmax
/usr/bin/ld: warning multiple definitions of symbol _fmin
/usr/local/lib/libsacio.a(math.o) definition of _fmin in section
(__TEXT,__text)
/usr/lib/system/libmathCommon.A.dylib(single module) definition of _fmin
/usr/bin/ld: Undefined symbols:
_fprintf$LDBLStub
_sprintf$LDBLStub
_printf$LDBLStub
_sscanf$LDBLStub
collect2: ld returned 1 exit status
Any suggestons would be appreciated.
More information about the sac-help
mailing list