Compile problems using NCARG 5.0 with gfortran on RHEL 5.1

From: Greg Keith <Greg.Keith_at_nyahnyahspammersnyahnyah>
Date: Mon, 15 Sep 2008 14:03:19 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
 
Hi Mary and all -

We're still having problems trying to get Fortran code compiled using
NCARG 5.0 on a RHEL5.1 32-bit Linux system with GCC 4.1.2. Since GCC 4.x
does not include g77, I installed the gcc-gfortran package so we could
use gfortran as our Fortran compiler. I modified the ncargf77 and
ncargf90 shell scripts to have "set fortran=gfortran" and
"libextra=-lgfortran" but we're still getting compile errors like the
example below.

My users also claim:

"The NCAR Graphics libraries ... only work with g77. I looked
at their symbols, and that string is part of external references.
Also, the routines that those 600 lines reference are in the runtime
system libraries for g77, but not for gfortran. .."

Should we be adding a step somewhere that links to NCARG libraries using
the "-lncarg" flag?

Thanks for any help!

Greg

======================================================
Compiler command and resulting errors:

(prompt): ncargf77 -o plot.web plot.web.f

(result)

./usr/local/lib/libncarg.a(phi3sp.o): In function `phi3sp_':
phi3sp.f:(.text+0x14a): undefined reference to `e_wsfe'
/usr/local/lib/libncarg.a(phi4dp.o): In function `phi4dp_':
phi4dp.f:(.text+0x24c): undefined reference to `s_wsfe'
phi4dp.f:(.text+0x264): undefined reference to `do_fio'
phi4dp.f:(.text+0x272): undefined reference to `do_fio'
phi4dp.f:(.text+0x280): undefined reference to `do_fio'
phi4dp.f:(.text+0x28e): undefined reference to `do_fio'
phi4dp.f:(.text+0x29c): undefined reference to `do_fio'
/usr/local/lib/libncarg.a(phi4dp.o):phi4dp.f:(.text+0x2aa): more
undefined references to `do_fio' follow
/usr/local/lib/libncarg.a(phi4dp.o): In function `phi4dp_':
phi4dp.f:(.text+0x2d9): undefined reference to `e_wsfe'
/usr/local/lib/libncarg.a(phi4sp.o): In function `phi4sp_':
phi4sp.f:(.text+0x27d): undefined reference to `s_wsfe'
phi4sp.f:(.text+0x295): undefined reference to `do_fio'
phi4sp.f:(.text+0x2a3): undefined reference to `do_fio'
phi4sp.f:(.text+0x2b1): undefined reference to `do_fio'
phi4sp.f:(.text+0x2bf): undefined reference to `do_fio'
phi4sp.f:(.text+0x2cd): undefined reference to `do_fio'
/usr/local/lib/libncarg.a(phi4sp.o):phi4sp.f:(.text+0x2db): more
undefined references to `do_fio' follow
/usr/local/lib/libncarg.a(phi4sp.o): In function `phi4sp_':
phi4sp.f:(.text+0x30a): undefined reference to `e_wsfe'
/usr/local/lib/libncarg.a(ngdots.o): In function `ngdots_':
ngdots.f:(.text+0x73): undefined reference to `s_wsle'
ngdots.f:(.text+0x8f): undefined reference to `do_lio'
ngdots.f:(.text+0x97): undefined reference to `e_wsle'
ngdots.f:(.text+0xa6): undefined reference to `s_wsle'
ngdots.f:(.text+0xb6): undefined reference to `do_lio'
ngdots.f:(.text+0xbe): undefined reference to `e_wsle'
ngdots.f:(.text+0xcd): undefined reference to `s_wsle'
ngdots.f:(.text+0xdd): undefined reference to `do_lio'
ngdots.f:(.text+0xe5): undefined reference to `e_wsle'
/usr/local/lib/libncarg.a(plchmq.o): In function `plchmq_':
plchmq.f:(.text+0x376): undefined reference to `s_cmp'
/usr/local/lib/libncarg.a(eprin.o): In function `eprin_':
eprin.f:(.text+0x34): undefined reference to `s_wsfe'
eprin.f:(.text+0x49): undefined reference to `do_fio'
eprin.f:(.text+0x5b): undefined reference to `do_fio'
eprin.f:(.text+0x60): undefined reference to `e_wsfe'
/usr/local/lib/libncarg_gks.a(gerhnd.o): In function `gerhnd_':
gerhnd.f:(.text+0x35): undefined reference to `s_wsfe'
gerhnd.f:(.text+0x3a): undefined reference to `e_wsfe'
gerhnd.f:(.text+0x7b): undefined reference to `s_stop'
gerhnd.f:(.text+0xa3): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(gerlog.o): In function `gerlog_':
gerlog.f:(.text+0x2b): undefined reference to `s_wsfe'
gerlog.f:(.text+0x3d): undefined reference to `do_fio'
gerlog.f:(.text+0x5a): undefined reference to `do_fio'
gerlog.f:(.text+0x5f): undefined reference to `e_wsfe'
gerlog.f:(.text+0xac): undefined reference to `s_cmp'
gerlog.f:(.text+0xef): undefined reference to `s_wsfi'
gerlog.f:(.text+0x107): undefined reference to `do_fio'
gerlog.f:(.text+0x10c): undefined reference to `e_wsfi'
gerlog.f:(.text+0x12b): undefined reference to `s_wsfe'
gerlog.f:(.text+0x141): undefined reference to `do_fio'
gerlog.f:(.text+0x146): undefined reference to `e_wsfe'
/usr/local/lib/libncarg_gks.a(grqst.o): In function `grqst_':
grqst.f:(.text+0xb9): undefined reference to `s_wsfi'
grqst.f:(.text+0xcb): undefined reference to `do_fio'
grqst.f:(.text+0xd0): undefined reference to `e_wsfi'
/usr/local/lib/libncarg_gks.a(gzgte2.o): In function `gzgte2_':
gzgte2.f:(.text+0x63): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(gzputs.o): In function `gzputs_':
gzputs.f:(.text+0x5c): undefined reference to `s_copy'
gzputs.f:(.text+0xd0): undefined reference to `s_copy'
gzputs.f:(.text+0x14d): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(gzopwk.o): In function `gzopwk_':
gzopwk.f:(.text+0x470): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(g01wdr.o):g01wdr.f:(.text+0x116): more
undefined references to `s_copy' follow
/usr/local/lib/libncarg_gks.a(g01wdr.o): In function `.L26':
g01wdr.f:(.text+0x7db): undefined reference to `s_cmp'
g01wdr.f:(.text+0x7ff): undefined reference to `s_copy'
g01wdr.f:(.text+0x820): undefined reference to `s_copy'
g01wdr.f:(.text+0x85f): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(gtnlen.o): In function `gtnlen_':
gtnlen.f:(.text+0x5c): undefined reference to `s_cmp'
gtnlen.f:(.text+0x74): undefined reference to `s_cmp'
/usr/local/lib/libncarg_gks.a(gwiwdr.o): In function `.L20':
gwiwdr.f:(.text+0x1c2): undefined reference to `s_cmp'
gwiwdr.f:(.text+0x1e3): undefined reference to `s_cmp'
gwiwdr.f:(.text+0x223): undefined reference to `s_copy'
gwiwdr.f:(.text+0x391): undefined reference to `s_copy'
gwiwdr.f:(.text+0x3a5): undefined reference to `s_cmp'
/usr/local/lib/libncarg_gks.a(gdsg.o): In function `gdsg_':
gdsg.f:(.text+0x141): undefined reference to `s_copy'
gdsg.f:(.text+0x15e): undefined reference to `s_copy'
gdsg.f:(.text+0x1e1): undefined reference to `s_copy'
gdsg.f:(.text+0x29e): undefined reference to `s_copy'
gdsg.f:(.text+0x383): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(gesc.o): In function `gesc_':
gesc.f:(.text+0xc0): undefined reference to `s_rsfi'
gesc.f:(.text+0x105): undefined reference to `s_rsfi'
gesc.f:(.text+0x12d): undefined reference to `do_fio'
gesc.f:(.text+0x13d): undefined reference to `e_rsfi'
gesc.f:(.text+0x190): undefined reference to `s_rsfi'
gesc.f:(.text+0x1ad): undefined reference to `do_fio'
gesc.f:(.text+0x1b2): undefined reference to `e_rsfi'
gesc.f:(.text+0x1e7): undefined reference to `s_rsfi'
gesc.f:(.text+0x20a): undefined reference to `do_fio'
gesc.f:(.text+0x21a): undefined reference to `e_rsfi'
gesc.f:(.text+0x290): undefined reference to `s_copy'
gesc.f:(.text+0x2f1): undefined reference to `s_copy'
gesc.f:(.text+0x337): undefined reference to `s_copy'
gesc.f:(.text+0x345): undefined reference to `s_copy'
gesc.f:(.text+0x3a5): undefined reference to `s_copy'
gesc.f:(.text+0x425): undefined reference to `s_rsfi'
gesc.f:(.text+0x43d): undefined reference to `do_fio'
gesc.f:(.text+0x442): undefined reference to `e_rsfi'
gesc.f:(.text+0x4c0): undefined reference to `s_copy'
gesc.f:(.text+0x4fb): undefined reference to `s_copy'
gesc.f:(.text+0x519): undefined reference to `s_rsfi'
gesc.f:(.text+0x531): undefined reference to `do_fio'
gesc.f:(.text+0x536): undefined reference to `e_rsfi'
gzreop.f:(.text+0xc2): undefined reference to `e_rsfi'
gzreop.f:(.text+0x420): undefined reference to `s_rsfi'
gzreop.f:(.text+0x436): undefined reference to `do_fio'
gzreop.f:(.text+0x44c): undefined reference to `do_fio'
gzreop.f:(.text+0x462): undefined reference to `do_fio'
gzreop.f:(.text+0x467): undefined reference to `e_rsfi'
gzreop.f:(.text+0x572): undefined reference to `s_rsfi'
gzreop.f:(.text+0x588): undefined reference to `do_fio'
gzreop.f:(.text+0x59e): undefined reference to `do_fio'
gzreop.f:(.text+0x5b4): undefined reference to `do_fio'
gzreop.f:(.text+0x5b9): undefined reference to `e_rsfi'
gzreop.f:(.text+0x61a): undefined reference to `s_rsfi'
gzreop.f:(.text+0x64b): undefined reference to `do_fio'
gzreop.f:(.text+0x657): undefined reference to `e_rsfi'
gzreop.f:(.text+0x674): undefined reference to `s_rsfi'
gzreop.f:(.text+0x6a5): undefined reference to `do_fio'
gzreop.f:(.text+0x6b1): undefined reference to `e_rsfi'
gzreop.f:(.text+0x6ce): undefined reference to `s_rsfi'
gzreop.f:(.text+0x6ff): undefined reference to `do_fio'
gzreop.f:(.text+0x70b): undefined reference to `e_rsfi'
gzreop.f:(.text+0x728): undefined reference to `s_rsfi'
gzreop.f:(.text+0x759): undefined reference to `do_fio'
gzreop.f:(.text+0x765): undefined reference to `e_rsfi'
gzreop.f:(.text+0x782): undefined reference to `s_rsfi'
gzreop.f:(.text+0x7b3): undefined reference to `do_fio'
gzreop.f:(.text+0x7bf): undefined reference to `e_rsfi'
gzreop.f:(.text+0x7dc): undefined reference to `s_rsfi'
gzreop.f:(.text+0x80d): undefined reference to `do_fio'
gzreop.f:(.text+0x819): undefined reference to `e_rsfi'
/usr/local/lib/libncarg_gks.a(g01clw.o): In function `g01clw_':
g01clw.f:(.text+0x10e): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(g01msg.o): In function `g01msg_':
g01msg.f:(.text+0x57): undefined reference to `s_cmp'
g01msg.f:(.text+0x6f): undefined reference to `s_cmp'
/usr/local/lib/libncarg_gks.a(g01seg.o): In function `g01seg_':
g01seg.f:(.text+0x33): undefined reference to `s_wsle'
g01seg.f:(.text+0x4f): undefined reference to `do_lio'
g01seg.f:(.text+0x57): undefined reference to `e_wsle'
g01seg.f:(.text+0x68): undefined reference to `s_stop'
g01seg.f:(.text+0xf4): undefined reference to `s_copy'
/usr/local/lib/libncarg_gks.a(g01snp.o): In function `g01snp_':
g01snp.f:(.text+0x8e): undefined reference to `s_copy'
/usr/local/lib/libncarg_c.a(i1mach.o): In function `i1mach_':
i1mach.f:(.text+0x3f7): undefined reference to `s_wsfe'
i1mach.f:(.text+0x3fc): undefined reference to `e_wsfe'
i1mach.f:(.text+0x54d): undefined reference to `s_wsle'
i1mach.f:(.text+0x569): undefined reference to `do_lio'
i1mach.f:(.text+0x57e): undefined reference to `do_lio'
i1mach.f:(.text+0x58e): undefined reference to `do_lio'
i1mach.f:(.text+0x596): undefined reference to `e_wsle'
i1mach.f:(.text+0x5a7): undefined reference to `s_stop'
collect2: ld returned 1 exit status

- --
Greg Keith - Web System Administrator greg.keith(-at-)noaa.gov
NOAA ESRL Physical Sciences Division http://www.esrl.noaa.gov/psd
R/PSD, 325 Broadway, Boulder, CO phone: 303-497-6645

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
 
iD8DBQFIzr+H8IR34NeP2BwRAoFVAJoCEQqUucy7KFjTlRSfk5AWItRG7gCggIIz
r2s1EBoBEgW1i/xGpi2Ko98=
=0TiH
-----END PGP SIGNATURE-----

_______________________________________________
ncarg-talk mailing list
ncarg-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncarg-talk
Received on Mon Sep 15 2008 - 14:03:19 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 17 2008 - 23:09:39 MDT