[ncl-install] problems compiling NCAR Graphics program

Mary Haley haley at ucar.edu
Fri Dec 28 09:57:11 MST 2007


Ali,

It looks like you may be mixing compilers. That is, the NCAR Graphics
binaries may have been built with "g77" and you are using another
compiler like pgf90 to link your program.

This is okay, but when you do this, you usually have to "help" your
compiler find the g2c library, which is where these symbols are found.

Try adding "-lg2c" to your compile line.  If your compiler can't find
the g2c library, then you'll have to locate it yourself, and then
include a -L option telling the compiler where it it is, for example
"-L/sw/lib -lg2c".

--Mary

On Fri, 21 Dec 2007, MM Ali wrote:

> Hello,
>
> I get the following errors while compiling a fortran
> code with ncargraphics subroutines. I use pre-compiled
> binaries in PC based fedora. Please help.
>
> Regards. Ali.
>
> Errors:
>
> /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(gzgte2.o): In function
> `gzgte2_':
> gzgte2.f:(.text+0x63): undefined reference to `s_copy'
> /usr/local/lib/libncarg_gks.a(g01wdr.o): In function
> `.L44':
> g01wdr.f:(.text+0x116): undefined reference to
> `s_copy'
> /usr/local/lib/libncarg_gks.a(g01wdr.o): In function
> `.L24':
> g01wdr.f:(.text+0x2c1): undefined reference to
> `s_copy'
> g01wdr.f:(.text+0x30c): undefined reference to
> `s_copy'
> /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(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
> ): 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(gzgte2.o): In function
> `gzgte2_':
> gzgte2.f:(.text+0x63): undefined reference to `s_copy'
> /usr/local/lib/libncarg_gks.a(g01wdr.o): In function
> `.L44':
> g01wdr.f:(.text+0x116): undefined reference to
> `s_copy'
> /usr/local/lib/libncarg_gks.a(g01wdr.o): In function
> `.L24':
> g01wdr.f:(.text+0x2c1): undefined reference to
> `s_copy'
> g01wdr.f:(.text+0x30c): undefined reference to
> `s_copy'
> /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(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
> ): 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(gzgte2.o): In function
> `gzgte2_':
> gzgte2.f:(.text+0x63): undefined reference to `s_copy'
> /usr/local/lib/libncarg_gks.a(g01wdr.o): In function
> `.L44':
> g01wdr.f:(.text+0x116): undefined reference to
> `s_copy'
> /usr/local/lib/libncarg_gks.a(g01wdr.o): In function
> `.L24':
> g01wdr.f:(.text+0x2c1): undefined reference to
> `s_copy'
> g01wdr.f:(.text+0x30c): undefined reference to
> `s_copy'
> /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(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
>
>
>
>
>      ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
>


More information about the ncl-install mailing list