[ncl-install] error 9 in agrstr - end-of-file on read

Helen He yhe at lbl.gov
Tue Oct 2 16:34:29 MDT 2012


Thanks, Rick.  Which NCL binary version did you use or did you build your own?  We have higher versions of gcc installed on the system too, so I can try other pre-built binaries.

Helen

On Oct 2, 2012, at 3:24 PM, Rick Brownrigg wrote:

> Hi Helen,
> 
> I am unfortunately unable to reproduce the problem on my system (gcc 4.4.6, x86_64); both programs run to completion without error.  I noticed there's no file explicitly opened for unit 21, but I guess that's accepted in some (all?) versions of fortran?  I used gfortran 4.4.6.
> 
> Rick
> 
> On Oct 2, 2012, at 2:30 PM, ncl-install-request at ucar.edu wrote:
> 
>> Send ncl-install mailing list submissions to
>> 	ncl-install at ucar.edu
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://mailman.ucar.edu/mailman/listinfo/ncl-install
>> or, via email, send a message with subject or body 'help' to
>> 	ncl-install-request at ucar.edu
>> 
>> You can reach the person managing the list at
>> 	ncl-install-owner at ucar.edu
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ncl-install digest..."
>> 
>> 
>> Today's Topics:
>> 
>>  1. error 9 in agrstr - end-of-file on read (Helen He)
>> 
>> 
>> ----------------------------------------------------------------------
>> 
>> Message: 1
>> Date: Tue, 2 Oct 2012 13:30:00 -0700
>> From: Helen He <yhe at lbl.gov>
>> Subject: [ncl-install] error 9 in agrstr - end-of-file on read
>> To: ncl-install at ucar.edu
>> Message-ID: <149E776C-EDA9-4E06-80FC-08F60AA3F799 at lbl.gov>
>> Content-Type: text/plain; charset="us-ascii"
>> 
>> 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
>> 
>> 
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: arex.f
>> Type: application/octet-stream
>> Size: 14448 bytes
>> Desc: not available
>> Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20121002/1d52126c/attachment.obj 
>> -------------- next part --------------
>> 
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: arex01.f
>> Type: application/octet-stream
>> Size: 14581 bytes
>> Desc: not available
>> Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20121002/1d52126c/attachment-0001.obj 
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>> 
>> 
>> End of ncl-install Digest, Vol 60, Issue 3
>> ******************************************
> 



More information about the ncl-install mailing list