error 9 in agrstr - end-of-file on read

From: Helen He <yhe_at_nyahnyahspammersnyahnyah>
Date: Tue Oct 02 2012 - 14:30:00 MDT

For the following system, I downloaded the binary: ncl_ncarg-6.0.0.Linux_Debian_x86_64_nodap_gcc432.tar.gz

% uname -m
x86_64

% gcc --version
gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

With the attached files: arex.f and arex01.f. "arex.f" runs correctly, but "arex01.f" has this "ERROR 9 IN AGRSTR - END-OF-FILE ON READ" error. The differences between these two source codes are that "arex01.f" uses the agsave and agrstr functions.

% diff arex.f arex01.f
147,149c147,154
< CY call agsave(21)
< CY rewind(21)
< CY call agrstr(21)

---
>         call agsave(21)
>         write(*,*) PERIX
>         write(*,*) BASD
>         write(*,*) SBOX
>         write(*,*) CHRA
>         write(*,*) XMIN, XMAX, YMIN, YMAX
>         rewind(21)
>         call agrstr(21)
Note: The underneath compiler used under the compiler wrapper "ftn" is PGI.    We also want this function to work with the Intel compiler.  How can I resolve this error under both PGI and Intel compilers?
% ncargf77 -o arex arex.f
ftn -fPIC -O arex.f -L/usr/common/usg/ncar/6.0.0/lib -L/usr/lib64 -L/opt/gcc/4.6.1/snos/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lxcb -lxcb-xlib -lXau -ldl -lgfortran
/usr/lib64/libX11.a(CrGlCur.o): In function `open_library':
/usr/src/packages/BUILD/libX11-1.1.5/src/CrGlCur.c:72: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/common/usg/ncar/6.0.0/lib/libncarg_c.a(ncarg_path.o): In function `_NGResolvePath':
ncarg_path.c:(.text+0xe1): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ncarg_path.c:(.text+0xf9): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ncarg_path.c:(.text+0x103): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libX11.a(GetDflt.o): In function `GetHomeDir':
/usr/src/packages/BUILD/libX11-1.1.5/src/GetDflt.c:133: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/src/packages/BUILD/libX11-1.1.5/src/GetDflt.c:135: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libxcb.a(xcb_util.o): In function `_xcb_open_tcp':
/usr/src/packages/BUILD/libxcb-1.1/src/xcb_util.c:229: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libX11.a(xim_trans.o): In function `UnixHostReallyLocal':
/usr/include/X11/Xtrans/Xtranssock.c:1973: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libX11.a(xim_trans.o): In function `_XimXTransSocketINETConnect':
/usr/include/X11/Xtrans/Xtranssock.c:1753: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
% ./arex
 Done
% ncargf77 -o arex01 arex01.f
ftn -fPIC -O arex01.f -L/usr/common/usg/ncar/6.0.0/lib -L/usr/lib64 -L/opt/gcc/4.6.1/snos/lib64 -lncarg -lncarg_gks -lncarg_c -lX11 -lxcb -lxcb-xlib -lXau -ldl -lgfortran
/usr/lib64/libX11.a(CrGlCur.o): In function `open_library':
/usr/src/packages/BUILD/libX11-1.1.5/src/CrGlCur.c:72: warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/common/usg/ncar/6.0.0/lib/libncarg_c.a(ncarg_path.o): In function `_NGResolvePath':
ncarg_path.c:(.text+0xe1): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ncarg_path.c:(.text+0xf9): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
ncarg_path.c:(.text+0x103): warning: Using 'endpwent' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libX11.a(GetDflt.o): In function `GetHomeDir':
/usr/src/packages/BUILD/libX11-1.1.5/src/GetDflt.c:133: warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/src/packages/BUILD/libX11-1.1.5/src/GetDflt.c:135: warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libxcb.a(xcb_util.o): In function `_xcb_open_tcp':
/usr/src/packages/BUILD/libxcb-1.1/src/xcb_util.c:229: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libX11.a(xim_trans.o): In function `UnixHostReallyLocal':
/usr/include/X11/Xtrans/Xtranssock.c:1973: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib64/libX11.a(xim_trans.o): In function `_XimXTransSocketINETConnect':
/usr/include/X11/Xtrans/Xtranssock.c:1753: warning: Using 'getservbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
% ./arex01
  0.9000000      0.9000000      0.1000000      0.1000000      0.9000000    
  0.0000000E+00
  0.0000000E+00
  0.0000000E+00
  0.0000000E+00  0.0000000E+00  0.0000000E+00  0.0000000E+00
 ERROR    9 IN AGRSTR - END-OF-FILE ON READ
Thanks!
Helen


     

_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install

Received on Tue Oct 2 14:30:33 2012

This archive was generated by hypermail 2.1.8 : Wed Oct 31 2012 - 09:15:44 MDT