plot package problem

Discussion about analysis, visualization, and collaboration tools and techniques

Moderators: arango, robertson

Post Reply
Message
Author
Ing_Luca_Barbusca

plot package problem

#1 Unread post by Ing_Luca_Barbusca »

Hi,
I am trying to install a plotting package for ROMS on a linux-12.04 lts 64bit and I have a problem maybe when am trying to run plot package to built ccnt, cnt, csec, sec files.
I use ncarg 5.2.0 (binary package installed in /usr/local) netcdf-4, gfortran. I have problems to get the plot package in Myplot from makefile in src/plot.
> cd src/plot/src :(where is makefile and after compile with the follow

> CC=gcc FC=gfortran F77=gfortran F90=gfortran CPPFLAGS=-DpgiFortran make

After compiling I have that message on the screen:
cd Build_plt; /usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math cnt.f90
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/lucabarbusca/MyPlot/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
/usr/bin/ld: warning: libnetcdf.so.6, needed by /usr/local/lib/libnetcdff.so, may conflict with libnetcdf.so.7
Build_plt/cnt.o: In function `pltfield_':
cnt.f90:(.text+0x283): undefined reference to `frame_'
cnt.f90:(.text+0x523): undefined reference to `set_'
cnt.f90:(.text+0xa3f): undefined reference to `set_'
Build_plt/cnt.o: In function `get_parm_':
cnt.f90:(.text+0x2084): undefined reference to `gscr_'
cnt.f90:(.text+0x209f): undefined reference to `gscr_'
Build_plt/cpmpxy2d.o: In function `cpmpxy_':
cpmpxy2d.f90:(.text+0x20c): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x2c5): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x2f1): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x325): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x355): undefined reference to `maptrn_'
Build_plt/stumsl.o: In function `stumsl_':
stumsl.f90:(.text+0x2b): undefined reference to `curve_'
Build_plt/stumxy.o: In function `stumxy_':
stumxy.f90:(.text+0x269): undefined reference to `maptra_'
stumxy.f90:(.text+0x332): undefined reference to `maptrn_'
stumxy.f90:(.text+0x360): undefined reference to `maptrn_'
stumxy.f90:(.text+0x395): undefined reference to `maptrn_'
stumxy.f90:(.text+0x3c6): undefined reference to `maptrn_'
Build_plt/stumxy.o: In function `stuixy_':
stumxy.f90:(.text+0x5a1): undefined reference to `maptri_'
stumxy.f90:(.text+0x5d9): undefined reference to `maptri_'
Build_plt/vvumxy.o: In function `vvumxy_':
vvumxy.f90:(.text+0x2a0): undefined reference to `maptra_'
vvumxy.f90:(.text+0x42e): undefined reference to `maptra_'
vvumxy.f90:(.text+0x633): undefined reference to `cufx_'
vvumxy.f90:(.text+0x65d): undefined reference to `cufx_'
vvumxy.f90:(.text+0x676): undefined reference to `cufy_'
vvumxy.f90:(.text+0x73a): undefined reference to `cufx_'
vvumxy.f90:(.text+0x7a8): undefined reference to `cufy_'
Build_plt/libUTIL.a(dombox.o): In function `dombox_':
dombox.f90:(.text+0x49): undefined reference to `set_'
dombox.f90:(.text+0x7a): undefined reference to `gslwsc_'
dombox.f90:(.text+0x93): undefined reference to `line_'
dombox.f90:(.text+0xac): undefined reference to `line_'
dombox.f90:(.text+0xc5): undefined reference to `line_'
dombox.f90:(.text+0xde): undefined reference to `line_'
dombox.f90:(.text+0xea): undefined reference to `gslwsc_'
dombox.f90:(.text+0x103): undefined reference to `gslwsc_'
dombox.f90:(.text+0x171): undefined reference to `maptrn_'
dombox.f90:(.text+0x18b): undefined reference to `curve_'
dombox.f90:(.text+0x1eb): undefined reference to `maptrn_'
dombox.f90:(.text+0x205): undefined reference to `curve_'
dombox.f90:(.text+0x257): undefined reference to `maptrn_'
dombox.f90:(.text+0x271): undefined reference to `curve_'
dombox.f90:(.text+0x2b3): undefined reference to `maptrn_'
dombox.f90:(.text+0x2cd): undefined reference to `curve_'
dombox.f90:(.text+0x2d9): undefined reference to `gslwsc_'
dombox.f90:(.text+0x34f): undefined reference to `maptrn_'
dombox.f90:(.text+0x369): undefined reference to `frstpt_'
dombox.f90:(.text+0x42f): undefined reference to `maptrn_'
dombox.f90:(.text+0x449): undefined reference to `frstpt_'
dombox.f90:(.text+0x50e): undefined reference to `curve_'
dombox.f90:(.text+0x607): undefined reference to `curve_'
dombox.f90:(.text+0x670): undefined reference to `curve_'
dombox.f90:(.text+0x81f): undefined reference to `curve_'
dombox.f90:(.text+0x8b4): undefined reference to `curve_'
dombox.f90:(.text+0x8fa): undefined reference to `maptrn_'
dombox.f90:(.text+0x942): undefined reference to `maptrn_'
dombox.f90:(.text+0x959): undefined reference to `vector_'
dombox.f90:(.text+0x971): undefined reference to `vector_'
dombox.f90:(.text+0x990): undefined reference to `curve_'
dombox.f90:(.text+0x9a9): undefined reference to `curve_'
Build_plt/libUTIL.a(streamlines.o): In function `streamlines_':
streamlines.f90:(.text+0x23): undefined reference to `strset_'
streamlines.f90:(.text+0x4d): undefined reference to `stseti_'
streamlines.f90:(.text+0x71): undefined reference to `stseti_'
streamlines.f90:(.text+0x87): undefined reference to `stsetr_'
streamlines.f90:(.text+0xa9): undefined reference to `stsetr_'
streamlines.f90:(.text+0xbf): undefined reference to `stsetr_'
streamlines.f90:(.text+0xe0): undefined reference to `stsetr_'
streamlines.f90:(.text+0xf6): undefined reference to `stsetr_'
streamlines.f90:(.text+0x10c): undefined reference to `stseti_'
streamlines.f90:(.text+0x122): undefined reference to `stsetr_'
streamlines.f90:(.text+0x138): undefined reference to `stsetr_'
streamlines.f90:(.text+0x14e): undefined reference to `stseti_'
streamlines.f90:(.text+0x164): undefined reference to `stseti_'
streamlines.f90:(.text+0x17a): undefined reference to `stseti_'
streamlines.f90:(.text+0x190): undefined reference to `stsetr_'
streamlines.f90:(.text+0x1a6): undefined reference to `stsetr_'
streamlines.f90:(.text+0x1ca): undefined reference to `stseti_'
streamlines.f90:(.text+0x1f0): undefined reference to `gsplci_'
streamlines.f90:(.text+0x224): undefined reference to `stinit_'
streamlines.f90:(.text+0x245): undefined reference to `stream_'
streamlines.f90:(.text+0x25f): undefined reference to `gsplci_'
streamlines.f90:(.text+0x285): undefined reference to `stseti_'
streamlines.f90:(.text+0x29b): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2b1): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2c7): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2dd): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2fd): undefined reference to `arinam_'
streamlines.f90:(.text+0x362): undefined reference to `arpram_'
streamlines.f90:(.text+0x39a): undefined reference to `arscam_'
streamlines.f90:(.text+0x3b5): undefined reference to `stseti_'
Build_plt/libUTIL.a(gksinit.o): In function `gksinit_':
gksinit.f90:(.text+0x7): undefined reference to `opngks_'
gksinit.f90:(.text+0x13): undefined reference to `gsclip_'
gksinit.f90:(.text+0x1f): undefined reference to `gsasf_'
gksinit.f90:(.text+0x2f): undefined reference to `gsfais_'
Build_plt/libUTIL.a(hbackground.o): In function `maplbm_':
hbackground.f90:(.text+0x3f): undefined reference to `mapgtc_'
hbackground.f90:(.text+0x98): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x193): undefined reference to `mapgti_'
hbackground.f90:(.text+0x1ff): undefined reference to `getset_'
hbackground.f90:(.text+0x20e): undefined reference to `kfpx_'
hbackground.f90:(.text+0x220): undefined reference to `kfpx_'
hbackground.f90:(.text+0x232): undefined reference to `kfpy_'
hbackground.f90:(.text+0x243): undefined reference to `kfpy_'
hbackground.f90:(.text+0x2cc): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x33e): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x357): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x370): undefined reference to `mapgti_'
hbackground.f90:(.text+0x5e8): undefined reference to `line_'
hbackground.f90:(.text+0x707): undefined reference to `pwrit_'
Build_plt/libUTIL.a(hbackground.o): In function `mapgrd_':
hbackground.f90:(.text+0xa9f): undefined reference to `icfell_'
hbackground.f90:(.text+0xb27): undefined reference to `mdpchi_'
hbackground.f90:(.text+0xb3d): undefined reference to `icfell_'
hbackground.f90:(.text+0xe39): undefined reference to `mapit_'
hbackground.f90:(.text+0xe4f): undefined reference to `icfell_'
hbackground.f90:(.text+0xeaf): undefined reference to `mapit_'
hbackground.f90:(.text+0xec5): undefined reference to `icfell_'
hbackground.f90:(.text+0xf06): undefined reference to `mdpchi_'
hbackground.f90:(.text+0xf1c): undefined reference to `icfell_'
hbackground.f90:(.text+0xf25): undefined reference to `maplmb_'
hbackground.f90:(.text+0xf3b): undefined reference to `icfell_'
hbackground.f90:(.text+0x127c): undefined reference to `mapit_'
hbackground.f90:(.text+0x1292): undefined reference to `icfell_'
hbackground.f90:(.text+0x12ef): undefined reference to `mapit_'
hbackground.f90:(.text+0x1305): undefined reference to `icfell_'
hbackground.f90:(.text+0x1670): undefined reference to `maptrn_'
hbackground.f90:(.text+0x1686): undefined reference to `icfell_'
hbackground.f90:(.text+0x170a): undefined reference to `maptrn_'
hbackground.f90:(.text+0x1720): undefined reference to `icfell_'
Build_plt/libUTIL.a(hbackground.o): In function `hbackground_':
hbackground.f90:(.text+0x17f4): undefined reference to `set_'
hbackground.f90:(.text+0x1800): undefined reference to `dashdb_'
hbackground.f90:(.text+0x180c): undefined reference to `gsclip_'
hbackground.f90:(.text+0x19a8): undefined reference to `dashdb_'
hbackground.f90:(.text+0x1a28): undefined reference to `gsclip_'
hbackground.f90:(.text+0x1d5e): undefined reference to `plchhq_'
hbackground.f90:(.text+0x1d90): undefined reference to `line_'
hbackground.f90:(.text+0x1daa): undefined reference to `line_'
hbackground.f90:(.text+0x2028): undefined reference to `plchhq_'
hbackground.f90:(.text+0x2047): undefined reference to `line_'
hbackground.f90:(.text+0x2066): undefined reference to `line_'
hbackground.f90:(.text+0x21d6): undefined reference to `line_'
hbackground.f90:(.text+0x21f5): undefined reference to `line_'
hbackground.f90:(.text+0x2256): undefined reference to `line_'
Build_plt/libUTIL.a(hbackground.o):hbackground.f90:(.text+0x2275): more undefined references to `line_' follow
Build_plt/libUTIL.a(hbackground.o): In function `hbackground_':
hbackground.f90:(.text+0x22da): undefined reference to `plchhq_'
hbackground.f90:(.text+0x2504): undefined reference to `maptrn_'
hbackground.f90:(.text+0x252b): undefined reference to `maptrn_'
hbackground.f90:(.text+0x263c): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2684): undefined reference to `maptrn_'
hbackground.f90:(.text+0x26ab): undefined reference to `maptrn_'
hbackground.f90:(.text+0x26d2): undefined reference to `lined_'
hbackground.f90:(.text+0x2961): undefined reference to `plchhq_'
hbackground.f90:(.text+0x2b34): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2b7c): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2ba3): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2bca): undefined reference to `lined_'
hbackground.f90:(.text+0x2e7d): undefined reference to `plchhq_'
Build_plt/libUTIL.a(clrbox.o): In function `clrbox_':
clrbox.f90:(.text+0x2a): undefined reference to `gsfaci_'
clrbox.f90:(.text+0x45): undefined reference to `gfa_'
clrbox.f90:(.text+0x59): undefined reference to `gslwsc_'
clrbox.f90:(.text+0x69): undefined reference to `gpl_'
clrbox.f90:(.text+0x75): undefined reference to `gslwsc_'
Build_plt/libUTIL.a(cnt_frame.o): In function `cnt_frame_':
cnt_frame.f90:(.text+0xc5): undefined reference to `mapstl_'
cnt_frame.f90:(.text+0x11d): undefined reference to `mapstc_'
cnt_frame.f90:(.text+0x133): undefined reference to `mapsti_'
cnt_frame.f90:(.text+0x13a): undefined reference to `mapint_'
cnt_frame.f90:(.text+0x1a4): undefined reference to `mapdrw_'
cnt_frame.f90:(.text+0x3c0): undefined reference to `set_'
cnt_frame.f90:(.text+0x952): undefined reference to `maptrn_'
cnt_frame.f90:(.text+0x96d): undefined reference to `maptrn_'
cnt_frame.f90:(.text+0xc1f): undefined reference to `mapsti_'
cnt_frame.f90:(.text+0xc45): undefined reference to `maproj_'
cnt_frame.f90:(.text+0xc6c): undefined reference to `mapset_'
cnt_frame.f90:(.text+0xcbf): undefined reference to `mapstl_'
cnt_frame.f90:(.text+0xcd5): undefined reference to `mapsti_'
Build_plt/libUTIL.a(draw_line.o): In function `draw_line_':
draw_line.f90:(.text+0x175): undefined reference to `maptrn_'
draw_line.f90:(.text+0x195): undefined reference to `frstpt_'
draw_line.f90:(.text+0x430): undefined reference to `maptrn_'
draw_line.f90:(.text+0x46a): undefined reference to `plchhq_'
draw_line.f90:(.text+0x481): undefined reference to `frstpt_'
draw_line.f90:(.text+0x502): undefined reference to `plchhq_'
draw_line.f90:(.text+0x5ac): undefined reference to `maptrn_'
draw_line.f90:(.text+0x5cc): undefined reference to `frstpt_'
draw_line.f90:(.text+0x71f): undefined reference to `gscr_'
draw_line.f90:(.text+0x726): undefined reference to `sflush_'
draw_line.f90:(.text+0x735): undefined reference to `gsplci_'
draw_line.f90:(.text+0x8af): undefined reference to `maptrn_'
draw_line.f90:(.text+0x8e0): undefined reference to `plchhq_'
draw_line.f90:(.text+0x933): undefined reference to `vector_'
draw_line.f90:(.text+0x94f): undefined reference to `vector_'
draw_line.f90:(.text+0x962): undefined reference to `vector_'
Build_plt/libUTIL.a(vecpack.o): In function `vecpack_':
vecpack.f90:(.text+0x3a): undefined reference to `vvrset_'
vecpack.f90:(.text+0x5c): undefined reference to `vvseti_'
vecpack.f90:(.text+0x72): undefined reference to `vvseti_'
vecpack.f90:(.text+0x8d): undefined reference to `vvsetc_'
vecpack.f90:(.text+0xb9): undefined reference to `vvseti_'
vecpack.f90:(.text+0xcf): undefined reference to `vvsetr_'
vecpack.f90:(.text+0xf1): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x107): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x12a): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x140): undefined reference to `vvseti_'
vecpack.f90:(.text+0x156): undefined reference to `vvseti_'
vecpack.f90:(.text+0x16f): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x188): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x1bb): undefined reference to `vvseti_'
vecpack.f90:(.text+0x1d1): undefined reference to `vvseti_'
vecpack.f90:(.text+0x1e7): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x1fd): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x213): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x229): undefined reference to `vvseti_'
vecpack.f90:(.text+0x24d): undefined reference to `vvseti_'
vecpack.f90:(.text+0x29a): undefined reference to `vvinit_'
vecpack.f90:(.text+0x2b0): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x2c6): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x2dc): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x2f5): undefined reference to `vvgetr_'
vecpack.f90:(.text+0x30e): undefined reference to `vvgetr_'
vecpack.f90:(.text+0x33c): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x352): undefined reference to `vvgetr_'
vecpack.f90:(.text+0x3af): undefined reference to `getset_'
vecpack.f90:(.text+0x3f0): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x406): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x41e): undefined reference to `vvudmv_'
vecpack.f90:(.text+0x42b): undefined reference to `vvectr_'
vecpack.f90:(.text+0x487): undefined reference to `vvsetc_'
vecpack.f90:(.text+0x49d): undefined reference to `vvseti_'
vecpack.f90:(.text+0x4b3): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x4c9): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x4df): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x505): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x51d): undefined reference to `arinam_'
vecpack.f90:(.text+0x586): undefined reference to `arpram_'
vecpack.f90:(.text+0x5be): undefined reference to `arscam_'
vecpack.f90:(.text+0x5dd): undefined reference to `vvseti_'
vecpack.f90:(.text+0x5ff): undefined reference to `vvseti_'
vecpack.f90:(.text+0x615): undefined reference to `vvseti_'
vecpack.f90:(.text+0x6ca): undefined reference to `vvseti_'
vecpack.f90:(.text+0x6ef): undefined reference to `vvseti_'
vecpack.f90:(.text+0x708): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x7c8): undefined reference to `gsclip_'
vecpack.f90:(.text+0x7fd): undefined reference to `gsclip_'
vecpack.f90:(.text+0x818): undefined reference to `gsplci_'
vecpack.f90:(.text+0x843): undefined reference to `gsplci_'
vecpack.f90:(.text+0x867): undefined reference to `vvsetc_'
vecpack.f90:(.text+0x882): undefined reference to `vvsetc_'
vecpack.f90:(.text+0x8a0): undefined reference to `vvsetr_'
Build_plt/libUTIL.a(wind_barbs.o): In function `wind_barbs_':
wind_barbs.f90:(.text+0x7a): undefined reference to `wmsetr_'
wind_barbs.f90:(.text+0xbb): undefined reference to `set_'
wind_barbs.f90:(.text+0xc7): undefined reference to `gsclip_'
wind_barbs.f90:(.text+0x303): undefined reference to `wmbarb_'
wind_barbs.f90:(.text+0x359): undefined reference to `maptrn_'
wind_barbs.f90:(.text+0x3ff): undefined reference to `arinam_'
wind_barbs.f90:(.text+0x4f6): undefined reference to `arpram_'
wind_barbs.f90:(.text+0x52e): undefined reference to `arscam_'
wind_barbs.f90:(.text+0x549): undefined reference to `wmseti_'
wind_barbs.f90:(.text+0x592): undefined reference to `wmseti_'
Build_plt/libUTIL.a(crash.o): In function `crash_':
crash.f90:(.text+0x35): undefined reference to `clsgks_'
Build_plt/libUTIL.a(draw_user.o): In function `draw_user_':
draw_user.f90:(.text+0x23): undefined reference to `sflush_'
draw_user.f90:(.text+0x3c): undefined reference to `gsplci_'
draw_user.f90:(.text+0x51): undefined reference to `gslwsc_'
draw_user.f90:(.text+0x69): undefined reference to `sflush_'
draw_user.f90:(.text+0x75): undefined reference to `gsplci_'
draw_user.f90:(.text+0x81): undefined reference to `gslwsc_'
Build_plt/libUTIL.a(landmask.o): In function `landmask_':
landmask.f90:(.text+0x60): undefined reference to `mapbla_'
landmask.f90:(.text+0x19b): undefined reference to `maptrn_'
landmask.f90:(.text+0x1bc): undefined reference to `maptrn_'
landmask.f90:(.text+0x1dd): undefined reference to `maptrn_'
landmask.f90:(.text+0x1fe): undefined reference to `maptrn_'
landmask.f90:(.text+0x31d): undefined reference to `mapiqa_'
landmask.f90:(.text+0x35a): undefined reference to `mapita_'
landmask.f90:(.text+0x398): undefined reference to `mapiqa_'
landmask.f90:(.text+0x437): undefined reference to `mapita_'
Build_plt/libUTIL.a(colram.o): In function `colram_':
colram.f90:(.text+0x92): undefined reference to `mapaci_'
colram.f90:(.text+0x116): undefined reference to `gsfaci_'
colram.f90:(.text+0x137): undefined reference to `gfa_'
colram.f90:(.text+0x1fd): undefined reference to `mapaci_'
Build_plt/libUTIL.a(cntpack.o): In function `cntpack_':
cntpack.f90:(.text+0x44): undefined reference to `cprset_'
cntpack.f90:(.text+0x5a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x80): undefined reference to `cpseti_'
cntpack.f90:(.text+0x96): undefined reference to `cpsetr_'
cntpack.f90:(.text+0xce): undefined reference to `cpsetr_'
cntpack.f90:(.text+0xe4): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x117): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x13a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x16b): undefined reference to `pcseti_'
cntpack.f90:(.text+0x181): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x19c): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x1bd): undefined reference to `cpseti_'
cntpack.f90:(.text+0x1f1): undefined reference to `cprect_'
cntpack.f90:(.text+0x205): undefined reference to `cppkcl_'
cntpack.f90:(.text+0x21e): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x232): undefined reference to `cpgetr_'
cntpack.f90:(.text+0x275): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x2b1): undefined reference to `cpseti_'
cntpack.f90:(.text+0x2d2): undefined reference to `cpgetr_'
cntpack.f90:(.text+0x319): undefined reference to `cpseti_'
cntpack.f90:(.text+0x33d): undefined reference to `cpseti_'
cntpack.f90:(.text+0x365): undefined reference to `cpseti_'
cntpack.f90:(.text+0x37d): undefined reference to `cpseti_'
cntpack.f90:(.text+0x3a7): undefined reference to `gsplci_'
cntpack.f90:(.text+0x3d7): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x3f2): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x408): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x41e): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x434): undefined reference to `cpseti_'
cntpack.f90:(.text+0x44a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x4aa): undefined reference to `arinam_'
cntpack.f90:(.text+0x4c3): undefined reference to `cplbam_'
cntpack.f90:(.text+0x4d7): undefined reference to `cplbdr_'
cntpack.f90:(.text+0x4ee): undefined reference to `arpram_'
cntpack.f90:(.text+0x50d): undefined reference to `cpcldm_'
cntpack.f90:(.text+0x531): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x54a): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x6b2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x6d2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x702): undefined reference to `cpseti_'
cntpack.f90:(.text+0x718): undefined reference to `cpseti_'
cntpack.f90:(.text+0x760): undefined reference to `cpseti_'
cntpack.f90:(.text+0x781): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x797): undefined reference to `cpseti_'
cntpack.f90:(.text+0x7d2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x7e8): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x7fe): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x814): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x82a): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x840): undefined reference to `cpsetr_'
Build_plt/libUTIL.a(cntpack.o):cntpack.f90:(.text+0x856): more undefined references to `cpsetr_' follow
Build_plt/libUTIL.a(cntpack.o): In function `cntpack_':
cntpack.f90:(.text+0x871): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x88c): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x899): undefined reference to `arinam_'
cntpack.f90:(.text+0x8ad): undefined reference to `cplbdr_'
cntpack.f90:(.text+0x8c6): undefined reference to `cplbam_'
cntpack.f90:(.text+0x8dd): undefined reference to `arpram_'
cntpack.f90:(.text+0x8e3): undefined reference to `cpdrpl_'
cntpack.f90:(.text+0x90a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x920): undefined reference to `cpseti_'
cntpack.f90:(.text+0x93f): undefined reference to `cpseti_'
cntpack.f90:(.text+0x967): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x97d): undefined reference to `cpseti_'
cntpack.f90:(.text+0x9b2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x9c3): undefined reference to `arinam_'
cntpack.f90:(.text+0x9f2): undefined reference to `aredam_'
cntpack.f90:(.text+0xa08): undefined reference to `gsplci_'
Build_plt/libUTIL.a(maptitles.o): In function `maptitles_':
maptitles.f90:(.text+0x2df): undefined reference to `set_'
maptitles.f90:(.text+0x3de): undefined reference to `plchhq_'
maptitles.f90:(.text+0x6c7): undefined reference to `plchhq_'
maptitles.f90:(.text+0xb81): undefined reference to `plchhq_'
maptitles.f90:(.text+0x150d): undefined reference to `set_'
maptitles.f90:(.text+0x17ee): undefined reference to `plchmq_'
maptitles.f90:(.text+0x1d1a): undefined reference to `plchhq_'
maptitles.f90:(.text+0x1d76): undefined reference to `plchhq_'
maptitles.f90:(.text+0x1dd2): undefined reference to `plchhq_'
maptitles.f90:(.text+0x1e3d): undefined reference to `plchmq_'
maptitles.f90:(.text+0x1e89): undefined reference to `plchhq_'
maptitles.f90:(.text+0x21fd): undefined reference to `plchmq_'
Build_plt/libUTIL.a(colorbar.o): In function `colorbar_':
colorbar.f90:(.text+0x185): undefined reference to `set_'
colorbar.f90:(.text+0x3cc): undefined reference to `plchhq_'
colorbar.f90:(.text+0x3d8): undefined reference to `gslwsc_'
colorbar.f90:(.text+0x3f0): undefined reference to `gslwsc_'
colorbar.f90:(.text+0x604): undefined reference to `plchhq_'
colorbar.f90:(.text+0x7ad): undefined reference to `plchhq_'
Build_plt/libUTIL.a(drawcl.o): In function `drawcl_':
drawcl.f90:(.text+0x3b): undefined reference to `curved_'
Build_plt/libUTIL.a(box.o): In function `box_':
box.f90:(.text+0x5e): undefined reference to `getset_'
box.f90:(.text+0xae): undefined reference to `gsfais_'
box.f90:(.text+0xba): undefined reference to `gsplci_'
box.f90:(.text+0xd0): undefined reference to `gpl_'
collect2: ld returned 1 exit status
make: *** [/home/lucabarbusca/MyPlot/cnt] Errore 1

Please, help me to solve this problems.
Thanks in advance...

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#2 Unread post by kate »

You need to be linking with ncargf90 instead of gfortran. All those missing routines are in the ncarg libraries. The ncarg libraries must have been compiled with the same version of gfortran.

You're also getting a warning about libnetcdff wanting an older libnetcdf library. You may or may not have to do something about that.

Ing_Luca_Barbusca

Re: plot package problem

#3 Unread post by Ing_Luca_Barbusca »

thank's a lot for your reply..
I don't understand what's you mean for "need to be linking with ncargf90 instead of gfortran". Could you me explain better that, possiby with an example?

I have used the same gfortran version for all the installing packages (Netcdf, hdf, ncl,...)..GNU Fortran 4.6.3

what's mean "Now copy that script to the name ncargf90 and edit it until it works"?

and how can I solve the problem with "libnetcdff wanting an older libnetcdf library"

I have red many discussion in forum-Roms, but I don't find the correct information to solve my problem...thanks in advance again...

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#4 Unread post by kate »

This package doesn't appear to be using ncargf90, but it does have:
LIBS := -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c
You don't have the ncarg libraries in your link command. You need them.

Ing_Luca_Barbusca

Re: plot package problem

#5 Unread post by Ing_Luca_Barbusca »

finally it works, thanks a lots...
after re-setting some parameters, the problems either to linking to ncarg (because of an error in LIBS linking to -lX11) and the conflict between libnetcdf's library doesn't appaer anymore. At the end I have obtained the files.

balaji426
Posts: 4
Joined: Wed May 25, 2016 12:14 am
Location: Indian Institute of Tropical Meteorology

Re: plot package problem

#6 Unread post by balaji426 »

Hi,
I am also getting same type of error
How you are able to solve, what edits need to be done
Thanks,
Balaji
Ing_Luca_Barbusca wrote:Hi,
I am trying to install a plotting package for ROMS on a linux-12.04 lts 64bit and I have a problem maybe when am trying to run plot package to built ccnt, cnt, csec, sec files.
I use ncarg 5.2.0 (binary package installed in /usr/local) netcdf-4, gfortran. I have problems to get the plot package in Myplot from makefile in src/plot.
> cd src/plot/src :(where is makefile and after compile with the follow

> CC=gcc FC=gfortran F77=gfortran F90=gfortran CPPFLAGS=-DpgiFortran make

After compiling I have that message on the screen:
cd Build_plt; /usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math cnt.f90
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/lucabarbusca/MyPlot/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf
/usr/bin/ld: warning: libnetcdf.so.6, needed by /usr/local/lib/libnetcdff.so, may conflict with libnetcdf.so.7
Build_plt/cnt.o: In function `pltfield_':
cnt.f90:(.text+0x283): undefined reference to `frame_'
cnt.f90:(.text+0x523): undefined reference to `set_'
cnt.f90:(.text+0xa3f): undefined reference to `set_'
Build_plt/cnt.o: In function `get_parm_':
cnt.f90:(.text+0x2084): undefined reference to `gscr_'
cnt.f90:(.text+0x209f): undefined reference to `gscr_'
Build_plt/cpmpxy2d.o: In function `cpmpxy_':
cpmpxy2d.f90:(.text+0x20c): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x2c5): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x2f1): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x325): undefined reference to `maptrn_'
cpmpxy2d.f90:(.text+0x355): undefined reference to `maptrn_'
Build_plt/stumsl.o: In function `stumsl_':
stumsl.f90:(.text+0x2b): undefined reference to `curve_'
Build_plt/stumxy.o: In function `stumxy_':
stumxy.f90:(.text+0x269): undefined reference to `maptra_'
stumxy.f90:(.text+0x332): undefined reference to `maptrn_'
stumxy.f90:(.text+0x360): undefined reference to `maptrn_'
stumxy.f90:(.text+0x395): undefined reference to `maptrn_'
stumxy.f90:(.text+0x3c6): undefined reference to `maptrn_'
Build_plt/stumxy.o: In function `stuixy_':
stumxy.f90:(.text+0x5a1): undefined reference to `maptri_'
stumxy.f90:(.text+0x5d9): undefined reference to `maptri_'
Build_plt/vvumxy.o: In function `vvumxy_':
vvumxy.f90:(.text+0x2a0): undefined reference to `maptra_'
vvumxy.f90:(.text+0x42e): undefined reference to `maptra_'
vvumxy.f90:(.text+0x633): undefined reference to `cufx_'
vvumxy.f90:(.text+0x65d): undefined reference to `cufx_'
vvumxy.f90:(.text+0x676): undefined reference to `cufy_'
vvumxy.f90:(.text+0x73a): undefined reference to `cufx_'
vvumxy.f90:(.text+0x7a8): undefined reference to `cufy_'
Build_plt/libUTIL.a(dombox.o): In function `dombox_':
dombox.f90:(.text+0x49): undefined reference to `set_'
dombox.f90:(.text+0x7a): undefined reference to `gslwsc_'
dombox.f90:(.text+0x93): undefined reference to `line_'
dombox.f90:(.text+0xac): undefined reference to `line_'
dombox.f90:(.text+0xc5): undefined reference to `line_'
dombox.f90:(.text+0xde): undefined reference to `line_'
dombox.f90:(.text+0xea): undefined reference to `gslwsc_'
dombox.f90:(.text+0x103): undefined reference to `gslwsc_'
dombox.f90:(.text+0x171): undefined reference to `maptrn_'
dombox.f90:(.text+0x18b): undefined reference to `curve_'
dombox.f90:(.text+0x1eb): undefined reference to `maptrn_'
dombox.f90:(.text+0x205): undefined reference to `curve_'
dombox.f90:(.text+0x257): undefined reference to `maptrn_'
dombox.f90:(.text+0x271): undefined reference to `curve_'
dombox.f90:(.text+0x2b3): undefined reference to `maptrn_'
dombox.f90:(.text+0x2cd): undefined reference to `curve_'
dombox.f90:(.text+0x2d9): undefined reference to `gslwsc_'
dombox.f90:(.text+0x34f): undefined reference to `maptrn_'
dombox.f90:(.text+0x369): undefined reference to `frstpt_'
dombox.f90:(.text+0x42f): undefined reference to `maptrn_'
dombox.f90:(.text+0x449): undefined reference to `frstpt_'
dombox.f90:(.text+0x50e): undefined reference to `curve_'
dombox.f90:(.text+0x607): undefined reference to `curve_'
dombox.f90:(.text+0x670): undefined reference to `curve_'
dombox.f90:(.text+0x81f): undefined reference to `curve_'
dombox.f90:(.text+0x8b4): undefined reference to `curve_'
dombox.f90:(.text+0x8fa): undefined reference to `maptrn_'
dombox.f90:(.text+0x942): undefined reference to `maptrn_'
dombox.f90:(.text+0x959): undefined reference to `vector_'
dombox.f90:(.text+0x971): undefined reference to `vector_'
dombox.f90:(.text+0x990): undefined reference to `curve_'
dombox.f90:(.text+0x9a9): undefined reference to `curve_'
Build_plt/libUTIL.a(streamlines.o): In function `streamlines_':
streamlines.f90:(.text+0x23): undefined reference to `strset_'
streamlines.f90:(.text+0x4d): undefined reference to `stseti_'
streamlines.f90:(.text+0x71): undefined reference to `stseti_'
streamlines.f90:(.text+0x87): undefined reference to `stsetr_'
streamlines.f90:(.text+0xa9): undefined reference to `stsetr_'
streamlines.f90:(.text+0xbf): undefined reference to `stsetr_'
streamlines.f90:(.text+0xe0): undefined reference to `stsetr_'
streamlines.f90:(.text+0xf6): undefined reference to `stsetr_'
streamlines.f90:(.text+0x10c): undefined reference to `stseti_'
streamlines.f90:(.text+0x122): undefined reference to `stsetr_'
streamlines.f90:(.text+0x138): undefined reference to `stsetr_'
streamlines.f90:(.text+0x14e): undefined reference to `stseti_'
streamlines.f90:(.text+0x164): undefined reference to `stseti_'
streamlines.f90:(.text+0x17a): undefined reference to `stseti_'
streamlines.f90:(.text+0x190): undefined reference to `stsetr_'
streamlines.f90:(.text+0x1a6): undefined reference to `stsetr_'
streamlines.f90:(.text+0x1ca): undefined reference to `stseti_'
streamlines.f90:(.text+0x1f0): undefined reference to `gsplci_'
streamlines.f90:(.text+0x224): undefined reference to `stinit_'
streamlines.f90:(.text+0x245): undefined reference to `stream_'
streamlines.f90:(.text+0x25f): undefined reference to `gsplci_'
streamlines.f90:(.text+0x285): undefined reference to `stseti_'
streamlines.f90:(.text+0x29b): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2b1): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2c7): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2dd): undefined reference to `stsetr_'
streamlines.f90:(.text+0x2fd): undefined reference to `arinam_'
streamlines.f90:(.text+0x362): undefined reference to `arpram_'
streamlines.f90:(.text+0x39a): undefined reference to `arscam_'
streamlines.f90:(.text+0x3b5): undefined reference to `stseti_'
Build_plt/libUTIL.a(gksinit.o): In function `gksinit_':
gksinit.f90:(.text+0x7): undefined reference to `opngks_'
gksinit.f90:(.text+0x13): undefined reference to `gsclip_'
gksinit.f90:(.text+0x1f): undefined reference to `gsasf_'
gksinit.f90:(.text+0x2f): undefined reference to `gsfais_'
Build_plt/libUTIL.a(hbackground.o): In function `maplbm_':
hbackground.f90:(.text+0x3f): undefined reference to `mapgtc_'
hbackground.f90:(.text+0x98): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x193): undefined reference to `mapgti_'
hbackground.f90:(.text+0x1ff): undefined reference to `getset_'
hbackground.f90:(.text+0x20e): undefined reference to `kfpx_'
hbackground.f90:(.text+0x220): undefined reference to `kfpx_'
hbackground.f90:(.text+0x232): undefined reference to `kfpy_'
hbackground.f90:(.text+0x243): undefined reference to `kfpy_'
hbackground.f90:(.text+0x2cc): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x33e): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x357): undefined reference to `mapgtr_'
hbackground.f90:(.text+0x370): undefined reference to `mapgti_'
hbackground.f90:(.text+0x5e8): undefined reference to `line_'
hbackground.f90:(.text+0x707): undefined reference to `pwrit_'
Build_plt/libUTIL.a(hbackground.o): In function `mapgrd_':
hbackground.f90:(.text+0xa9f): undefined reference to `icfell_'
hbackground.f90:(.text+0xb27): undefined reference to `mdpchi_'
hbackground.f90:(.text+0xb3d): undefined reference to `icfell_'
hbackground.f90:(.text+0xe39): undefined reference to `mapit_'
hbackground.f90:(.text+0xe4f): undefined reference to `icfell_'
hbackground.f90:(.text+0xeaf): undefined reference to `mapit_'
hbackground.f90:(.text+0xec5): undefined reference to `icfell_'
hbackground.f90:(.text+0xf06): undefined reference to `mdpchi_'
hbackground.f90:(.text+0xf1c): undefined reference to `icfell_'
hbackground.f90:(.text+0xf25): undefined reference to `maplmb_'
hbackground.f90:(.text+0xf3b): undefined reference to `icfell_'
hbackground.f90:(.text+0x127c): undefined reference to `mapit_'
hbackground.f90:(.text+0x1292): undefined reference to `icfell_'
hbackground.f90:(.text+0x12ef): undefined reference to `mapit_'
hbackground.f90:(.text+0x1305): undefined reference to `icfell_'
hbackground.f90:(.text+0x1670): undefined reference to `maptrn_'
hbackground.f90:(.text+0x1686): undefined reference to `icfell_'
hbackground.f90:(.text+0x170a): undefined reference to `maptrn_'
hbackground.f90:(.text+0x1720): undefined reference to `icfell_'
Build_plt/libUTIL.a(hbackground.o): In function `hbackground_':
hbackground.f90:(.text+0x17f4): undefined reference to `set_'
hbackground.f90:(.text+0x1800): undefined reference to `dashdb_'
hbackground.f90:(.text+0x180c): undefined reference to `gsclip_'
hbackground.f90:(.text+0x19a8): undefined reference to `dashdb_'
hbackground.f90:(.text+0x1a28): undefined reference to `gsclip_'
hbackground.f90:(.text+0x1d5e): undefined reference to `plchhq_'
hbackground.f90:(.text+0x1d90): undefined reference to `line_'
hbackground.f90:(.text+0x1daa): undefined reference to `line_'
hbackground.f90:(.text+0x2028): undefined reference to `plchhq_'
hbackground.f90:(.text+0x2047): undefined reference to `line_'
hbackground.f90:(.text+0x2066): undefined reference to `line_'
hbackground.f90:(.text+0x21d6): undefined reference to `line_'
hbackground.f90:(.text+0x21f5): undefined reference to `line_'
hbackground.f90:(.text+0x2256): undefined reference to `line_'
Build_plt/libUTIL.a(hbackground.o):hbackground.f90:(.text+0x2275): more undefined references to `line_' follow
Build_plt/libUTIL.a(hbackground.o): In function `hbackground_':
hbackground.f90:(.text+0x22da): undefined reference to `plchhq_'
hbackground.f90:(.text+0x2504): undefined reference to `maptrn_'
hbackground.f90:(.text+0x252b): undefined reference to `maptrn_'
hbackground.f90:(.text+0x263c): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2684): undefined reference to `maptrn_'
hbackground.f90:(.text+0x26ab): undefined reference to `maptrn_'
hbackground.f90:(.text+0x26d2): undefined reference to `lined_'
hbackground.f90:(.text+0x2961): undefined reference to `plchhq_'
hbackground.f90:(.text+0x2b34): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2b7c): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2ba3): undefined reference to `maptrn_'
hbackground.f90:(.text+0x2bca): undefined reference to `lined_'
hbackground.f90:(.text+0x2e7d): undefined reference to `plchhq_'
Build_plt/libUTIL.a(clrbox.o): In function `clrbox_':
clrbox.f90:(.text+0x2a): undefined reference to `gsfaci_'
clrbox.f90:(.text+0x45): undefined reference to `gfa_'
clrbox.f90:(.text+0x59): undefined reference to `gslwsc_'
clrbox.f90:(.text+0x69): undefined reference to `gpl_'
clrbox.f90:(.text+0x75): undefined reference to `gslwsc_'
Build_plt/libUTIL.a(cnt_frame.o): In function `cnt_frame_':
cnt_frame.f90:(.text+0xc5): undefined reference to `mapstl_'
cnt_frame.f90:(.text+0x11d): undefined reference to `mapstc_'
cnt_frame.f90:(.text+0x133): undefined reference to `mapsti_'
cnt_frame.f90:(.text+0x13a): undefined reference to `mapint_'
cnt_frame.f90:(.text+0x1a4): undefined reference to `mapdrw_'
cnt_frame.f90:(.text+0x3c0): undefined reference to `set_'
cnt_frame.f90:(.text+0x952): undefined reference to `maptrn_'
cnt_frame.f90:(.text+0x96d): undefined reference to `maptrn_'
cnt_frame.f90:(.text+0xc1f): undefined reference to `mapsti_'
cnt_frame.f90:(.text+0xc45): undefined reference to `maproj_'
cnt_frame.f90:(.text+0xc6c): undefined reference to `mapset_'
cnt_frame.f90:(.text+0xcbf): undefined reference to `mapstl_'
cnt_frame.f90:(.text+0xcd5): undefined reference to `mapsti_'
Build_plt/libUTIL.a(draw_line.o): In function `draw_line_':
draw_line.f90:(.text+0x175): undefined reference to `maptrn_'
draw_line.f90:(.text+0x195): undefined reference to `frstpt_'
draw_line.f90:(.text+0x430): undefined reference to `maptrn_'
draw_line.f90:(.text+0x46a): undefined reference to `plchhq_'
draw_line.f90:(.text+0x481): undefined reference to `frstpt_'
draw_line.f90:(.text+0x502): undefined reference to `plchhq_'
draw_line.f90:(.text+0x5ac): undefined reference to `maptrn_'
draw_line.f90:(.text+0x5cc): undefined reference to `frstpt_'
draw_line.f90:(.text+0x71f): undefined reference to `gscr_'
draw_line.f90:(.text+0x726): undefined reference to `sflush_'
draw_line.f90:(.text+0x735): undefined reference to `gsplci_'
draw_line.f90:(.text+0x8af): undefined reference to `maptrn_'
draw_line.f90:(.text+0x8e0): undefined reference to `plchhq_'
draw_line.f90:(.text+0x933): undefined reference to `vector_'
draw_line.f90:(.text+0x94f): undefined reference to `vector_'
draw_line.f90:(.text+0x962): undefined reference to `vector_'
Build_plt/libUTIL.a(vecpack.o): In function `vecpack_':
vecpack.f90:(.text+0x3a): undefined reference to `vvrset_'
vecpack.f90:(.text+0x5c): undefined reference to `vvseti_'
vecpack.f90:(.text+0x72): undefined reference to `vvseti_'
vecpack.f90:(.text+0x8d): undefined reference to `vvsetc_'
vecpack.f90:(.text+0xb9): undefined reference to `vvseti_'
vecpack.f90:(.text+0xcf): undefined reference to `vvsetr_'
vecpack.f90:(.text+0xf1): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x107): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x12a): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x140): undefined reference to `vvseti_'
vecpack.f90:(.text+0x156): undefined reference to `vvseti_'
vecpack.f90:(.text+0x16f): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x188): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x1bb): undefined reference to `vvseti_'
vecpack.f90:(.text+0x1d1): undefined reference to `vvseti_'
vecpack.f90:(.text+0x1e7): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x1fd): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x213): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x229): undefined reference to `vvseti_'
vecpack.f90:(.text+0x24d): undefined reference to `vvseti_'
vecpack.f90:(.text+0x29a): undefined reference to `vvinit_'
vecpack.f90:(.text+0x2b0): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x2c6): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x2dc): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x2f5): undefined reference to `vvgetr_'
vecpack.f90:(.text+0x30e): undefined reference to `vvgetr_'
vecpack.f90:(.text+0x33c): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x352): undefined reference to `vvgetr_'
vecpack.f90:(.text+0x3af): undefined reference to `getset_'
vecpack.f90:(.text+0x3f0): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x406): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x41e): undefined reference to `vvudmv_'
vecpack.f90:(.text+0x42b): undefined reference to `vvectr_'
vecpack.f90:(.text+0x487): undefined reference to `vvsetc_'
vecpack.f90:(.text+0x49d): undefined reference to `vvseti_'
vecpack.f90:(.text+0x4b3): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x4c9): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x4df): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x505): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x51d): undefined reference to `arinam_'
vecpack.f90:(.text+0x586): undefined reference to `arpram_'
vecpack.f90:(.text+0x5be): undefined reference to `arscam_'
vecpack.f90:(.text+0x5dd): undefined reference to `vvseti_'
vecpack.f90:(.text+0x5ff): undefined reference to `vvseti_'
vecpack.f90:(.text+0x615): undefined reference to `vvseti_'
vecpack.f90:(.text+0x6ca): undefined reference to `vvseti_'
vecpack.f90:(.text+0x6ef): undefined reference to `vvseti_'
vecpack.f90:(.text+0x708): undefined reference to `vvsetr_'
vecpack.f90:(.text+0x7c8): undefined reference to `gsclip_'
vecpack.f90:(.text+0x7fd): undefined reference to `gsclip_'
vecpack.f90:(.text+0x818): undefined reference to `gsplci_'
vecpack.f90:(.text+0x843): undefined reference to `gsplci_'
vecpack.f90:(.text+0x867): undefined reference to `vvsetc_'
vecpack.f90:(.text+0x882): undefined reference to `vvsetc_'
vecpack.f90:(.text+0x8a0): undefined reference to `vvsetr_'
Build_plt/libUTIL.a(wind_barbs.o): In function `wind_barbs_':
wind_barbs.f90:(.text+0x7a): undefined reference to `wmsetr_'
wind_barbs.f90:(.text+0xbb): undefined reference to `set_'
wind_barbs.f90:(.text+0xc7): undefined reference to `gsclip_'
wind_barbs.f90:(.text+0x303): undefined reference to `wmbarb_'
wind_barbs.f90:(.text+0x359): undefined reference to `maptrn_'
wind_barbs.f90:(.text+0x3ff): undefined reference to `arinam_'
wind_barbs.f90:(.text+0x4f6): undefined reference to `arpram_'
wind_barbs.f90:(.text+0x52e): undefined reference to `arscam_'
wind_barbs.f90:(.text+0x549): undefined reference to `wmseti_'
wind_barbs.f90:(.text+0x592): undefined reference to `wmseti_'
Build_plt/libUTIL.a(crash.o): In function `crash_':
crash.f90:(.text+0x35): undefined reference to `clsgks_'
Build_plt/libUTIL.a(draw_user.o): In function `draw_user_':
draw_user.f90:(.text+0x23): undefined reference to `sflush_'
draw_user.f90:(.text+0x3c): undefined reference to `gsplci_'
draw_user.f90:(.text+0x51): undefined reference to `gslwsc_'
draw_user.f90:(.text+0x69): undefined reference to `sflush_'
draw_user.f90:(.text+0x75): undefined reference to `gsplci_'
draw_user.f90:(.text+0x81): undefined reference to `gslwsc_'
Build_plt/libUTIL.a(landmask.o): In function `landmask_':
landmask.f90:(.text+0x60): undefined reference to `mapbla_'
landmask.f90:(.text+0x19b): undefined reference to `maptrn_'
landmask.f90:(.text+0x1bc): undefined reference to `maptrn_'
landmask.f90:(.text+0x1dd): undefined reference to `maptrn_'
landmask.f90:(.text+0x1fe): undefined reference to `maptrn_'
landmask.f90:(.text+0x31d): undefined reference to `mapiqa_'
landmask.f90:(.text+0x35a): undefined reference to `mapita_'
landmask.f90:(.text+0x398): undefined reference to `mapiqa_'
landmask.f90:(.text+0x437): undefined reference to `mapita_'
Build_plt/libUTIL.a(colram.o): In function `colram_':
colram.f90:(.text+0x92): undefined reference to `mapaci_'
colram.f90:(.text+0x116): undefined reference to `gsfaci_'
colram.f90:(.text+0x137): undefined reference to `gfa_'
colram.f90:(.text+0x1fd): undefined reference to `mapaci_'
Build_plt/libUTIL.a(cntpack.o): In function `cntpack_':
cntpack.f90:(.text+0x44): undefined reference to `cprset_'
cntpack.f90:(.text+0x5a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x80): undefined reference to `cpseti_'
cntpack.f90:(.text+0x96): undefined reference to `cpsetr_'
cntpack.f90:(.text+0xce): undefined reference to `cpsetr_'
cntpack.f90:(.text+0xe4): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x117): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x13a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x16b): undefined reference to `pcseti_'
cntpack.f90:(.text+0x181): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x19c): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x1bd): undefined reference to `cpseti_'
cntpack.f90:(.text+0x1f1): undefined reference to `cprect_'
cntpack.f90:(.text+0x205): undefined reference to `cppkcl_'
cntpack.f90:(.text+0x21e): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x232): undefined reference to `cpgetr_'
cntpack.f90:(.text+0x275): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x2b1): undefined reference to `cpseti_'
cntpack.f90:(.text+0x2d2): undefined reference to `cpgetr_'
cntpack.f90:(.text+0x319): undefined reference to `cpseti_'
cntpack.f90:(.text+0x33d): undefined reference to `cpseti_'
cntpack.f90:(.text+0x365): undefined reference to `cpseti_'
cntpack.f90:(.text+0x37d): undefined reference to `cpseti_'
cntpack.f90:(.text+0x3a7): undefined reference to `gsplci_'
cntpack.f90:(.text+0x3d7): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x3f2): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x408): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x41e): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x434): undefined reference to `cpseti_'
cntpack.f90:(.text+0x44a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x4aa): undefined reference to `arinam_'
cntpack.f90:(.text+0x4c3): undefined reference to `cplbam_'
cntpack.f90:(.text+0x4d7): undefined reference to `cplbdr_'
cntpack.f90:(.text+0x4ee): undefined reference to `arpram_'
cntpack.f90:(.text+0x50d): undefined reference to `cpcldm_'
cntpack.f90:(.text+0x531): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x54a): undefined reference to `cpgeti_'
cntpack.f90:(.text+0x6b2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x6d2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x702): undefined reference to `cpseti_'
cntpack.f90:(.text+0x718): undefined reference to `cpseti_'
cntpack.f90:(.text+0x760): undefined reference to `cpseti_'
cntpack.f90:(.text+0x781): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x797): undefined reference to `cpseti_'
cntpack.f90:(.text+0x7d2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x7e8): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x7fe): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x814): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x82a): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x840): undefined reference to `cpsetr_'
Build_plt/libUTIL.a(cntpack.o):cntpack.f90:(.text+0x856): more undefined references to `cpsetr_' follow
Build_plt/libUTIL.a(cntpack.o): In function `cntpack_':
cntpack.f90:(.text+0x871): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x88c): undefined reference to `cpsetc_'
cntpack.f90:(.text+0x899): undefined reference to `arinam_'
cntpack.f90:(.text+0x8ad): undefined reference to `cplbdr_'
cntpack.f90:(.text+0x8c6): undefined reference to `cplbam_'
cntpack.f90:(.text+0x8dd): undefined reference to `arpram_'
cntpack.f90:(.text+0x8e3): undefined reference to `cpdrpl_'
cntpack.f90:(.text+0x90a): undefined reference to `cpseti_'
cntpack.f90:(.text+0x920): undefined reference to `cpseti_'
cntpack.f90:(.text+0x93f): undefined reference to `cpseti_'
cntpack.f90:(.text+0x967): undefined reference to `cpsetr_'
cntpack.f90:(.text+0x97d): undefined reference to `cpseti_'
cntpack.f90:(.text+0x9b2): undefined reference to `cpseti_'
cntpack.f90:(.text+0x9c3): undefined reference to `arinam_'
cntpack.f90:(.text+0x9f2): undefined reference to `aredam_'
cntpack.f90:(.text+0xa08): undefined reference to `gsplci_'
Build_plt/libUTIL.a(maptitles.o): In function `maptitles_':
maptitles.f90:(.text+0x2df): undefined reference to `set_'
maptitles.f90:(.text+0x3de): undefined reference to `plchhq_'
maptitles.f90:(.text+0x6c7): undefined reference to `plchhq_'
maptitles.f90:(.text+0xb81): undefined reference to `plchhq_'
maptitles.f90:(.text+0x150d): undefined reference to `set_'
maptitles.f90:(.text+0x17ee): undefined reference to `plchmq_'
maptitles.f90:(.text+0x1d1a): undefined reference to `plchhq_'
maptitles.f90:(.text+0x1d76): undefined reference to `plchhq_'
maptitles.f90:(.text+0x1dd2): undefined reference to `plchhq_'
maptitles.f90:(.text+0x1e3d): undefined reference to `plchmq_'
maptitles.f90:(.text+0x1e89): undefined reference to `plchhq_'
maptitles.f90:(.text+0x21fd): undefined reference to `plchmq_'
Build_plt/libUTIL.a(colorbar.o): In function `colorbar_':
colorbar.f90:(.text+0x185): undefined reference to `set_'
colorbar.f90:(.text+0x3cc): undefined reference to `plchhq_'
colorbar.f90:(.text+0x3d8): undefined reference to `gslwsc_'
colorbar.f90:(.text+0x3f0): undefined reference to `gslwsc_'
colorbar.f90:(.text+0x604): undefined reference to `plchhq_'
colorbar.f90:(.text+0x7ad): undefined reference to `plchhq_'
Build_plt/libUTIL.a(drawcl.o): In function `drawcl_':
drawcl.f90:(.text+0x3b): undefined reference to `curved_'
Build_plt/libUTIL.a(box.o): In function `box_':
box.f90:(.text+0x5e): undefined reference to `getset_'
box.f90:(.text+0xae): undefined reference to `gsfais_'
box.f90:(.text+0xba): undefined reference to `gsplci_'
box.f90:(.text+0xd0): undefined reference to `gpl_'
collect2: ld returned 1 exit status
make: *** [/home/lucabarbusca/MyPlot/cnt] Errore 1

Please, help me to solve this problems.
Thanks in advance...

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#7 Unread post by kate »

All those missing symbols are from the NCARG libraries. You need to link to them. The easiest way to do so is to invoke the ncargf90 command instead of gfortran for linking. Your link statement is this:

Code: Select all

/usr/bin/gfortran -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/lucabarbusca/MyPlot/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf 
You have at least two choices - find out how to change the makefile so that LD is ncargf90 or simply paste in:

Code: Select all

/usr/local/bin/ncargf90 -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/lucabarbusca/MyPlot/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf 
and see what happens.

balaji426
Posts: 4
Joined: Wed May 25, 2016 12:14 am
Location: Indian Institute of Tropical Meteorology

Re: plot package problem

#8 Unread post by balaji426 »

kate wrote:All those missing symbols are from the NCARG libraries. You need to link to them. The easiest way to do so is to invoke the ncargf90 command instead of gfortran for linking. Your link statement is this:

Code: Select all

/usr/bin/gfortran -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/lucabarbusca/MyPlot/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf 
You have at least two choices - find out how to change the makefile so that LD is ncargf90 or simply paste in:

Code: Select all

/usr/local/bin/ncargf90 -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/lucabarbusca/MyPlot/cnt Build_plt/libUTIL.a -L/usr/local/lib -lnetcdff -lnetcdf -lnetcdf 
and see what happens.
Hi,
I tried this and getting error as:
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -frepack-arrays -O3 -ffast-math Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /home/user/Documents/Myroms/romsplot/src/Build_plt/cnt Build_plt/libUTIL.a -L/usr/lib -lnetcdff -L/usr/lib -lncarg -lncarg_gks -lncarg_c -lX11 -lXext -lcairo -lfontconfig -lpixman-1 -lfreetype -lexpat -lpng -lz -lpthread -lbz2 -lXrender
/usr/bin/ld: Warning: size of symbol `mapcm1_' changed from 28 in Build_plt/libUTIL.a(hbackground.o) to 40 in /usr/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm2_' changed from 60 in Build_plt/libUTIL.a(cnt_frame.o) to 128 in /usr/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm4_' changed from 128 in Build_plt/libUTIL.a(hbackground.o) to 224 in /usr/lib/libncarg.a(mapbd.o)
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: cannot find -lXext
/usr/bin/ld: cannot find -lcairo
/usr/bin/ld: cannot find -lfontconfig
/usr/bin/ld: cannot find -lpixman-1
/usr/bin/ld: cannot find -lfreetype
/usr/bin/ld: cannot find -lexpat
/usr/bin/ld: cannot find -lpng
/usr/bin/ld: cannot find -lz
collect2: error: ld returned 1 exit status

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#9 Unread post by kate »

You're missing a bunch of packages. What kind of system are you on and which package manager are you using? You can probably find them with a simple online search.

balaji426
Posts: 4
Joined: Wed May 25, 2016 12:14 am
Location: Indian Institute of Tropical Meteorology

Re: plot package problem

#10 Unread post by balaji426 »

My system is Linux 64 bit, Ubuntu 14.04.4 LTS. As you said, I will do online search and get required packages. These missing files are available at different location and I need to link them.
Thanks...

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#11 Unread post by kate »

Actually, Ubuntu has a software center which should be able to download all this stuff for you. I don't see X11 in my list of installed software, but I do have several X applications which work - xterm, xfig, inkscape, etc.

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: plot package problem

#12 Unread post by agpc »

Hi Kate,
I have a problem with install plot package. The error is presented below:
/usr/bin/ld: Warning: size of symbol `mapcm1_' changed from 28 in Build_plt/libUTIL.a(hbackground.o) to 40 in /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm2_' changed from 60 in Build_plt/libUTIL.a(cnt_frame.o) to 128 in /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm4_' changed from 128 in Build_plt/libUTIL.a(hbackground.o) to 224 in /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: cannot find -lX11
collect2: error: ld returned 1 exit status
make: *** [/work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/cntG] Error
I also attach my makefile and Linux-gfortran.mk files the attachments. Besides, I have installed X11 library on my system by conda command, this error still occurred.
Please help me to solve the problem.
Thank you in advance.
Bests,
Attachments
makefile.txt
(12.48 KiB) Downloaded 701 times
Linux-gfortran.mk.txt
(2.48 KiB) Downloaded 677 times

robertson
Site Admin
Posts: 227
Joined: Wed Feb 26, 2003 3:12 pm
Location: IMCS, Rutgers University

Re: plot package problem

#13 Unread post by robertson »

Perhaps Conda didn't put libX11 in a location the linker knows about. Find out where libX11 actually resides and make sure that path is in the LD_LIBRARY_PATH and LIBRARY_PATH environment variables.

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: plot package problem

#14 Unread post by agpc »

Hi Robertson,
Following your suggestion, I set my LD_LIBRARY_PATH and LIBRARY_PATH environment variables with X11 and Netcdf, mpich libraries.
However, it reported that:
/work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/hbackground.f90:656: undefined reference to `mapchi_'
/work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/hbackground.f90:804: undefined reference to `mapchi_'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `setSurfaceTransform':
cro.c:(.text+0x213): undefined reference to `cairo_identity_matrix'
cro.c:(.text+0x226): undefined reference to `cairo_translate'
cro.c:(.text+0x237): undefined reference to `cairo_rotate'
cro.c:(.text+0x24f): undefined reference to `cairo_scale'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `CROpict_init':
cro.c:(.text+0x2b5): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x2d0): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x2dd): undefined reference to `cairo_set_operator'
cro.c:(.text+0x30d): undefined reference to `cairo_clip_extents'
cro.c:(.text+0x315): undefined reference to `cairo_reset_clip'
cro.c:(.text+0x325): undefined reference to `cairo_move_to'
cro.c:(.text+0x341): undefined reference to `cairo_line_to'
cro.c:(.text+0x369): undefined reference to `cairo_line_to'
cro.c:(.text+0x385): undefined reference to `cairo_line_to'
cro.c:(.text+0x395): undefined reference to `cairo_line_to'
cro.c:(.text+0x39d): undefined reference to `cairo_clip'
cro.c:(.text+0x3ad): undefined reference to `cairo_move_to'
cro.c:(.text+0x3c9): undefined reference to `cairo_line_to'
cro.c:(.text+0x3f1): undefined reference to `cairo_line_to'
cro.c:(.text+0x40d): undefined reference to `cairo_line_to'
cro.c:(.text+0x41d): undefined reference to `cairo_line_to'
cro.c:(.text+0x425): undefined reference to `cairo_fill'
cro.c:(.text+0x438): undefined reference to `cairo_move_to'
cro.c:(.text+0x44c): undefined reference to `cairo_line_to'
cro.c:(.text+0x460): undefined reference to `cairo_line_to'
cro.c:(.text+0x473): undefined reference to `cairo_line_to'
cro.c:(.text+0x486): undefined reference to `cairo_line_to'
cro.c:(.text+0x48e): undefined reference to `cairo_clip'
cro.c:(.text+0x498): undefined reference to `cairo_save'
cro.c:(.text+0x4a0): undefined reference to `cairo_reset_clip'
cro.c:(.text+0x4a8): undefined reference to `cairo_identity_matrix'
cro.c:(.text+0x4c8): undefined reference to `cairo_rectangle'
cro.c:(.text+0x4d0): undefined reference to `cairo_fill'
cro.c:(.text+0x4d8): undefined reference to `cairo_restore'
cro.c:(.text+0x4e5): undefined reference to `cairo_set_operator'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `CROInitCairoContext':
cro.c:(.text+0x962): undefined reference to `cairo_set_fill_rule'
cro.c:(.text+0x96f): undefined reference to `cairo_set_line_cap'
cro.c:(.text+0x97c): undefined reference to `cairo_set_line_join'
cro.c:(.text+0x98a): undefined reference to `cairo_surface_destroy'
cro.c:(.text+0x99d): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x9a5): undefined reference to `cairo_new_path'
cro.c:(.text+0x9bd): undefined reference to `cairo_move_to'
cro.c:(.text+0x9dd): undefined reference to `cairo_line_to'
cro.c:(.text+0xa05): undefined reference to `cairo_line_to'
cro.c:(.text+0xa25): undefined reference to `cairo_line_to'
cro.c:(.text+0xa3d): undefined reference to `cairo_line_to'
cro.c:(.text+0xa45): undefined reference to `cairo_clip'
cro.c:(.text+0xa9d): undefined reference to `cairo_set_source_rgba'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `CROset_dashpattern':
cro.c:(.text+0xc11): undefined reference to `cairo_set_dash'
cro.c:(.text+0xc5a): undefined reference to `cairo_set_dash'
cro.c:(.text+0xc91): undefined reference to `cairo_set_dash'
cro.c:(.text+0xce7): undefined reference to `cairo_set_dash'
cro.c:(.text+0xd44): undefined reference to `cairo_set_dash'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o):cro.c:(.text+0xd5c): more undefined references to `cairo_set_dash' follow
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `GetCROClipping':
cro.c:(.text+0xd99): undefined reference to `cairo_clip_extents'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_Cellarray':
cro.c:(.text+0x10b1): undefined reference to `cairo_get_source'
cro.c:(.text+0x10be): undefined reference to `cairo_pattern_reference'
cro.c:(.text+0x1560): undefined reference to `cairo_image_surface_create_for_data'
cro.c:(.text+0x1585): undefined reference to `cairo_set_source_surface'
cro.c:(.text+0x158d): undefined reference to `cairo_paint'
cro.c:(.text+0x1595): undefined reference to `cairo_surface_finish'
cro.c:(.text+0x159d): undefined reference to `cairo_surface_destroy'
cro.c:(.text+0x15c9): undefined reference to `cairo_set_source'
cro.c:(.text+0x15d1): undefined reference to `cairo_pattern_destroy'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_ClearWorkstation':
cro.c:(.text+0x161b): undefined reference to `cairo_stroke'
cro.c:(.text+0x1623): undefined reference to `cairo_show_page'
cro.c:(.text+0x1644): undefined reference to `cairo_surface_flush'
cro.c:(.text+0x168a): undefined reference to `cairo_surface_write_to_png'
cro.c:(.text+0x16bf): undefined reference to `cairo_surface_flush'
cro.c:(.text+0x176d): undefined reference to `cairo_svg_surface_create'
cro.c:(.text+0x1781): undefined reference to `cairo_create'
cro.c:(.text+0x179e): undefined reference to `cairo_set_source_surface'
cro.c:(.text+0x17a6): undefined reference to `cairo_paint'
cro.c:(.text+0x17ae): undefined reference to `cairo_destroy'
cro.c:(.text+0x17b6): undefined reference to `cairo_surface_destroy'
cro.c:(.text+0x17c5): undefined reference to `cairo_surface_destroy'
cro.c:(.text+0x17db): undefined reference to `cairo_recording_surface_create'
cro.c:(.text+0x17e6): undefined reference to `cairo_create'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_CloseWorkstation':
cro.c:(.text+0x18b4): undefined reference to `cairo_destroy'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_Esc':
cro.c:(.text+0x1cb0): undefined reference to `cairo_set_antialias'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_OpenWorkstation':
cro.c:(.text+0x236d): undefined reference to `cairo_ps_surface_create'
cro.c:(.text+0x2383): undefined reference to `cairo_ps_surface_set_eps'
cro.c:(.text+0x239b): undefined reference to `cairo_ps_surface_set_size'
cro.c:(.text+0x23a3): undefined reference to `cairo_create'
cro.c:(.text+0x240c): undefined reference to `cairo_pdf_surface_create'
cro.c:(.text+0x2417): undefined reference to `cairo_create'
cro.c:(.text+0x245f): undefined reference to `cairo_image_surface_create'
cro.c:(.text+0x246a): undefined reference to `cairo_create'
cro.c:(.text+0x24d6): undefined reference to `cairo_image_surface_create'
cro.c:(.text+0x24e1): undefined reference to `cairo_create'
cro.c:(.text+0x2557): undefined reference to `cairo_create'
cro.c:(.text+0x2576): undefined reference to `cairo_xlib_surface_get_width'
cro.c:(.text+0x2584): undefined reference to `cairo_xlib_surface_get_height'
cro.c:(.text+0x25cc): undefined reference to `cairo_recording_surface_create'
cro.c:(.text+0x25dc): undefined reference to `cairo_create'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_Polyline':
cro.c:(.text+0x26b8): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x26da): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x26e2): undefined reference to `cairo_new_sub_path'
cro.c:(.text+0x2705): undefined reference to `cairo_set_line_cap'
cro.c:(.text+0x2714): undefined reference to `cairo_set_line_cap'
cro.c:(.text+0x274d): undefined reference to `cairo_move_to'
cro.c:(.text+0x278a): undefined reference to `cairo_line_to'
cro.c:(.text+0x279e): undefined reference to `cairo_stroke'
cro.c:(.text+0x27ab): undefined reference to `cairo_set_line_cap'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_Polymarker':
cro.c:(.text+0x286d): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x2875): undefined reference to `cairo_get_line_cap'
cro.c:(.text+0x2885): undefined reference to `cairo_set_line_cap'
cro.c:(.text+0x288d): undefined reference to `cairo_get_line_width'
cro.c:(.text+0x28ab): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x2924): undefined reference to `cairo_set_line_cap'
cro.c:(.text+0x2934): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x2983): undefined reference to `cairo_arc'
cro.c:(.text+0x298b): undefined reference to `cairo_stroke'
cro.c:(.text+0x29a9): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x2a1b): undefined reference to `cairo_move_to'
cro.c:(.text+0x2a3a): undefined reference to `cairo_line_to'
cro.c:(.text+0x2a42): undefined reference to `cairo_stroke'
cro.c:(.text+0x2a6e): undefined reference to `cairo_move_to'
cro.c:(.text+0x2a8d): undefined reference to `cairo_line_to'
cro.c:(.text+0x2a95): undefined reference to `cairo_stroke'
cro.c:(.text+0x2b0d): undefined reference to `cairo_move_to'
cro.c:(.text+0x2b2c): undefined reference to `cairo_line_to'
cro.c:(.text+0x2b34): undefined reference to `cairo_stroke'
cro.c:(.text+0x2ba1): undefined reference to `cairo_move_to'
cro.c:(.text+0x2bd3): undefined reference to `cairo_line_to'
cro.c:(.text+0x2bdb): undefined reference to `cairo_stroke'
cro.c:(.text+0x2bee): undefined reference to `cairo_move_to'
cro.c:(.text+0x2c02): undefined reference to `cairo_line_to'
cro.c:(.text+0x2c0a): undefined reference to `cairo_stroke'
cro.c:(.text+0x2c63): undefined reference to `cairo_move_to'
cro.c:(.text+0x2c6b): undefined reference to `cairo_new_sub_path'
cro.c:(.text+0x2c9e): undefined reference to `cairo_arc'
cro.c:(.text+0x2ca6): undefined reference to `cairo_stroke'
cro.c:(.text+0x2d48): undefined reference to `cairo_move_to'
cro.c:(.text+0x2d7d): undefined reference to `cairo_line_to'
cro.c:(.text+0x2d85): undefined reference to `cairo_stroke'
cro.c:(.text+0x2d99): undefined reference to `cairo_move_to'
cro.c:(.text+0x2dad): undefined reference to `cairo_line_to'
cro.c:(.text+0x2db5): undefined reference to `cairo_stroke'
cro.c:(.text+0x2e2d): undefined reference to `cairo_move_to'
cro.c:(.text+0x2e4c): undefined reference to `cairo_line_to'
cro.c:(.text+0x2e54): undefined reference to `cairo_stroke'
cro.c:(.text+0x2ec1): undefined reference to `cairo_move_to'
cro.c:(.text+0x2ef3): undefined reference to `cairo_line_to'
cro.c:(.text+0x2efb): undefined reference to `cairo_stroke'
cro.c:(.text+0x2f0e): undefined reference to `cairo_move_to'
cro.c:(.text+0x2f22): undefined reference to `cairo_line_to'
cro.c:(.text+0x2f2a): undefined reference to `cairo_stroke'
cro.c:(.text+0x2f46): undefined reference to `cairo_set_line_cap'
cro.c:(.text+0x2f57): undefined reference to `cairo_set_line_width'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_SetClipIndicator':
cro.c:(.text+0x3163): undefined reference to `cairo_new_path'
cro.c:(.text+0x316b): undefined reference to `cairo_reset_clip'
cro.c:(.text+0x319a): undefined reference to `cairo_move_to'
cro.c:(.text+0x31ca): undefined reference to `cairo_line_to'
cro.c:(.text+0x31fa): undefined reference to `cairo_line_to'
cro.c:(.text+0x3229): undefined reference to `cairo_line_to'
cro.c:(.text+0x3258): undefined reference to `cairo_line_to'
cro.c:(.text+0x3260): undefined reference to `cairo_clip'
cro.c:(.text+0x3281): undefined reference to `cairo_reset_clip'
cro.c:(.text+0x3289): undefined reference to `cairo_new_path'
cro.c:(.text+0x3299): undefined reference to `cairo_move_to'
cro.c:(.text+0x32ad): undefined reference to `cairo_line_to'
cro.c:(.text+0x32c5): undefined reference to `cairo_line_to'
cro.c:(.text+0x32d9): undefined reference to `cairo_line_to'
cro.c:(.text+0x32e9): undefined reference to `cairo_line_to'
cro.c:(.text+0x32f1): undefined reference to `cairo_clip'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_Text':
cro.c:(.text+0x38e7): undefined reference to `cairo_text_extents'
cro.c:(.text+0x38fa): undefined reference to `cairo_get_font_matrix'
cro.c:(.text+0x3912): undefined reference to `cairo_matrix_scale'
cro.c:(.text+0x391d): undefined reference to `cairo_set_font_matrix'
cro.c:(.text+0x3928): undefined reference to `cairo_get_font_matrix'
cro.c:(.text+0x396b): undefined reference to `FT_Init_FreeType'
cro.c:(.text+0x3a1b): undefined reference to `FT_New_Face'
cro.c:(.text+0x3a56): undefined reference to `cairo_ft_font_face_create_for_ft_face'
cro.c:(.text+0x3a61): undefined reference to `cairo_set_font_face'
cro.c:(.text+0x3a6e): undefined reference to `cairo_font_extents'
cro.c:(.text+0x3a98): undefined reference to `cairo_set_font_size'
cro.c:(.text+0x3aab): undefined reference to `cairo_get_font_matrix'
cro.c:(.text+0x3ad3): undefined reference to `cairo_text_extents'
cro.c:(.text+0x3afe): undefined reference to `cairo_matrix_scale'
cro.c:(.text+0x3b09): undefined reference to `cairo_set_font_matrix'
cro.c:(.text+0x3b17): undefined reference to `cairo_text_extents'
cro.c:(.text+0x3b85): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x3c8c): undefined reference to `cairo_text_extents'
cro.c:(.text+0x3cc4): undefined reference to `cairo_text_extents'
cro.c:(.text+0x3d06): undefined reference to `cairo_text_extents'
cro.c:(.text+0x3e83): undefined reference to `cairo_save'
cro.c:(.text+0x3e9d): undefined reference to `cairo_move_to'
cro.c:(.text+0x3ec6): undefined reference to `cairo_rotate'
cro.c:(.text+0x3fb7): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x3fc2): undefined reference to `cairo_show_text'
cro.c:(.text+0x3ffc): undefined reference to `cairo_get_font_matrix'
cro.c:(.text+0x4081): undefined reference to `cairo_matrix_scale'
cro.c:(.text+0x408c): undefined reference to `cairo_set_font_matrix'
cro.c:(.text+0x40d9): undefined reference to `cairo_text_extents'
cro.c:(.text+0x4176): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x41b4): undefined reference to `cairo_text_extents'
cro.c:(.text+0x41bf): undefined reference to `cairo_show_text'
cro.c:(.text+0x41d4): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x4209): undefined reference to `cairo_save'
cro.c:(.text+0x4231): undefined reference to `cairo_text_extents'
cro.c:(.text+0x4242): undefined reference to `cairo_rotate'
cro.c:(.text+0x43ca): undefined reference to `cairo_text_extents'
cro.c:(.text+0x4442): undefined reference to `cairo_text_extents'
cro.c:(.text+0x4476): undefined reference to `cairo_translate'
cro.c:(.text+0x4484): undefined reference to `cairo_rotate'
cro.c:(.text+0x44c1): undefined reference to `cairo_text_extents'
cro.c:(.text+0x4541): undefined reference to `cairo_text_extents'
cro.c:(.text+0x4589): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x4599): undefined reference to `cairo_show_text'
cro.c:(.text+0x45cf): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x45ec): undefined reference to `cairo_text_extents'
cro.c:(.text+0x463c): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x4647): undefined reference to `cairo_show_text'
cro.c:(.text+0x467d): undefined reference to `cairo_rel_move_to'
cro.c:(.text+0x46ad): undefined reference to `cairo_restore'
cro.c:(.text+0x46b5): undefined reference to `cairo_restore'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_UpdateWorkstation':
cro.c:(.text+0x4714): undefined reference to `cairo_surface_flush'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_SoftFill':
cro.c:(.text+0x4d54): undefined reference to `cairo_move_to'
cro.c:(.text+0x4da7): undefined reference to `cairo_line_to'
cro.c:(.text+0x4daf): undefined reference to `cairo_stroke'
cro.c:(.text+0x4ed2): undefined reference to `cairo_move_to'
cro.c:(.text+0x4f29): undefined reference to `cairo_line_to'
cro.c:(.text+0x4f31): undefined reference to `cairo_stroke'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_FillArea':
cro.c:(.text+0x4fe9): undefined reference to `cairo_get_line_width'
cro.c:(.text+0x502f): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x507b): undefined reference to `cairo_set_source_rgba'
cro.c:(.text+0x50cd): undefined reference to `cairo_move_to'
cro.c:(.text+0x510c): undefined reference to `cairo_line_to'
cro.c:(.text+0x5148): undefined reference to `cairo_line_to'
cro.c:(.text+0x5150): undefined reference to `cairo_stroke'
cro.c:(.text+0x5186): undefined reference to `cairo_move_to'
cro.c:(.text+0x51c7): undefined reference to `cairo_line_to'
cro.c:(.text+0x5205): undefined reference to `cairo_line_to'
cro.c:(.text+0x5216): undefined reference to `cairo_fill'
cro.c:(.text+0x5253): undefined reference to `cairo_fill'
cro.c:(.text+0x5260): undefined reference to `cairo_save'
cro.c:(.text+0x5268): undefined reference to `cairo_clip_preserve'
cro.c:(.text+0x5278): undefined reference to `cairo_set_line_width'
cro.c:(.text+0x5280): undefined reference to `cairo_fill_preserve'
cro.c:(.text+0x5288): undefined reference to `cairo_stroke'
cro.c:(.text+0x5290): undefined reference to `cairo_restore'
cro.c:(.text+0x529d): undefined reference to `cairo_get_antialias'
cro.c:(.text+0x52ac): undefined reference to `cairo_set_antialias'
cro.c:(.text+0x52b4): undefined reference to `cairo_fill'
cro.c:(.text+0x52be): undefined reference to `cairo_set_antialias'
cro.c:(.text+0x52f2): undefined reference to `cairo_move_to'
cro.c:(.text+0x5331): undefined reference to `cairo_line_to'
cro.c:(.text+0x5346): undefined reference to `cairo_stroke'
cro.c:(.text+0x5389): undefined reference to `cairo_stroke'
cro.c:(.text+0x53ae): undefined reference to `cairo_stroke'
cro.c:(.text+0x53d3): undefined reference to `cairo_stroke'
cro.c:(.text+0x53f8): undefined reference to `cairo_stroke'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o):cro.c:(.text+0x5430): more undefined references to `cairo_stroke' follow
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(cro.o): In function `cro_FillArea':
cro.c:(.text+0x54a1): undefined reference to `cairo_move_to'
cro.c:(.text+0x54e0): undefined reference to `cairo_line_to'
cro.c:(.text+0x551c): undefined reference to `cairo_line_to'
cro.c:(.text+0x5524): undefined reference to `cairo_stroke'
cro.c:(.text+0x5558): undefined reference to `cairo_move_to'
cro.c:(.text+0x5597): undefined reference to `cairo_line_to'
cro.c:(.text+0x55d3): undefined reference to `cairo_line_to'
cro.c:(.text+0x55db): undefined reference to `cairo_stroke'
cro.c:(.text+0x55ec): undefined reference to `cairo_set_line_width'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(crotiff.o): In function `crotiff_writeImage':
crotiff.c:(.text+0x30a): undefined reference to `cairo_image_surface_get_width'
crotiff.c:(.text+0x315): undefined reference to `cairo_image_surface_get_height'
crotiff.c:(.text+0x324): undefined reference to `cairo_image_surface_get_stride'
crotiff.c:(.text+0x74d): undefined reference to `cairo_image_surface_get_data'
crotiff.c:(.text+0x775): undefined reference to `cairo_image_surface_get_data'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(crotiff.o): In function `crotiff_writeImageCompressed':
crotiff.c:(.text+0xb21): undefined reference to `cairo_image_surface_get_width'
crotiff.c:(.text+0xb2d): undefined reference to `cairo_image_surface_get_height'
crotiff.c:(.text+0xb87): undefined reference to `cairo_image_surface_get_data'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(crodisplay.o): In function `croCreateNativeDisplaySurface':
crodisplay.c:(.text+0x38f): undefined reference to `cairo_xlib_surface_create'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(crodisplay.o): In function `croFreeNativeSurface':
crodisplay.c:(.text+0x3a4): undefined reference to `cairo_xlib_surface_get_display'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(crodisplay.o): In function `croX11Pause':
crodisplay.c:(.text+0x3c2): undefined reference to `cairo_xlib_surface_get_display'
crodisplay.c:(.text+0x3d2): undefined reference to `cairo_surface_flush'
/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_gks.a(crodisplay.o): In function `croActivateX11':
crodisplay.c:(.text+0x41e): undefined reference to `cairo_xlib_surface_get_display'
crodisplay.c:(.text+0x429): undefined reference to `cairo_xlib_surface_get_drawable'
crodisplay.c:(.text+0x43d): undefined reference to `cairo_surface_flush'
crodisplay.c:(.text+0x56d): undefined reference to `cairo_xlib_surface_set_size'
collect2: error: ld returned 1 exit status
make: *** [/work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/cntG] Error 1
Please help me to solve it.
Thank you very much!
Bests,
Manh,

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#15 Unread post by kate »

cairo is a library which you'll need to link to as well. Try adding -lcairo to your link command.

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: plot package problem

#16 Unread post by agpc »

Hi Kate,
Following your suggesion, I add -lcairo in the lib, however it still failed.
cd Build_plt; /work/apps/gnu_4.8.5/mvapich2/2.3.2/bin/mpif90 -c -g -fbounds-check cnt.f90
/work/apps/gnu_4.8.5/mvapich2/2.3.2/bin/mpif90 -g -fbounds-check Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/cntG Build_plt/libUTIL.a -L/work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib -lncarg -lncarg_gks -lncarg_c -L/work/users/cloud/user/ndnam/miniconda3/lib -lX11 -lcairo
/usr/bin/ld: Warning: size of symbol `mapcm1_' changed from 28 in Build_plt/libUTIL.a(hbackground.o) to 40 in /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm2_' changed from 60 in Build_plt/libUTIL.a(cnt_frame.o) to 128 in /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm4_' changed from 128 in Build_plt/libUTIL.a(hbackground.o) to 224 in /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg_gks.a(cro.o): undefined reference to symbol 'FT_Init_FreeType'
//lib64/libfreetype.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Please help me to solve it.
Thank you very much!
Bests,

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#17 Unread post by kate »

There's a freetype library too, I would guess. Perhaps a quick web search is what you need.

The warnings are a little concerning too, like maybe there's a version inconsistency.

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: plot package problem

#18 Unread post by agpc »

Hi Kate,
I have added the freetype library on my compiler file, however it still failed.
Anyway, I have tried 2 methods to compile this package. The first is that I used all of library from conda. The problem is presented in the below:
The Open MPI wrapper compiler was unable to find the specified compiler
x86_64-conda-linux-gnu-gfortran in your PATH.

Note that this compiler was either specified at configure time or in
one of several possible environment variables.
--------------------------------------------------------------------------
make: *** [Build_plt/get_nc3dat.o] Error 1
The another is that I used the libraries of netcdf, mpich, hdf5, ncar form my module set-up, the libraries of cairo, X11, freestype were used in the conda.
The result was displayed like that:
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `/work/apps/gnu_4.8.5/mvapich2/2.3.2/bin/mpif90 -g -fbounds-check Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/cntG Build_plt/libUTIL.a -L/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib -lncarg -lncarg_gks -lncarg_c -L/work/users/cloud/user/ndnam/miniconda3/lib -lX11 -lcariro -lfreetype unknown option: --flib Usage: nc-config [OPTION] Available values for OPTION include: --help display this help message and exit --all display all options --cc C compiler --cflags pre-processor and compiler flags --has-dap whether OPeNDAP is enabled in this build --has-nc2 whether NetCDF-2 API is enabled --has-nc4 whether NetCDF-4/HDF-5 is enabled in this build --has-hdf5 whether HDF5 is used in build (always the same as --has-nc4) --has-hdf4 whether HDF4 was used in build --has-pnetcdf whether parallel-netcdf (a.k.a. pnetcdf) was used in build --libs library linking information for netcdf --prefix Install prefix --includedir Include directory --version Library version --fc Fortran compiler --fflags flags needed to compile a Fortran program --flibs libraries needed to link a Fortran program --has-f90 whether Fortran 90 API is installed '
make: *** [/work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/cntG] Error 1
Please help me to solve this problem.
Thank you again.

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#19 Unread post by kate »

unknown option: --flib Usage: nc-config
Try --flibs instead of --flib

agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: plot package problem

#20 Unread post by agpc »

Hi Kate,
I found the issue that related to the conflict with each library in my set-up.
/usr/bin/ld: warning: libmpi.so.12, needed by /work/apps/gnu_4.8.5/mvapich2/2.3.2/lib/libmpifort.so, may conflict with libmpi.so.40
/usr/bin/ld: warning: libgfortran.so.3, needed by /work/apps/gnu_4.8.5/mvapich2/2.3.2/lib/libmpifort.so, may conflict with libgfortran.so.4
/usr/bin/ld: /work/apps/gnu_4.8.5/ncl_ncarg/6.3.0/lib/libncarg_c.a(r1mach.o): undefined reference to symbol '_gfortran_stop_numeric_f08@@GFORTRAN_1.4'
//lib64/libgfortran.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Can you have any suggestions for me?
Thank you very much!
Bests,

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: plot package problem

#21 Unread post by kate »


agpc
Posts: 63
Joined: Mon Jul 27, 2020 7:44 pm
Location: Applied Geophysics Center (AGPC)

Re: plot package problem

#22 Unread post by agpc »

Hi Kate,
Thank you for your reply.
I found in your link and I add "-lm" in the LIBS line, however it still wrong.
/usr/bin/cpp -P -traditional -I/work/apps/gnu_4.8.5/netcdf/4.3.3.1/include -DLINUX -DX86_64 -DGFORTRAN -DNCARG630 -Drmdocinc -IInclude -IUtility Drivers/cnt.F > Build_plt/cnt.f90
Bin/cpp_clean Build_plt/cnt.f90
cd Build_plt; /work/apps/gnu_4.8.5/mvapich2/2.3.2/bin/mpif90 -c -g -fbounds-check cnt.f90
/work/apps/gnu_4.8.5/mvapich2/2.3.2/bin/mpif90 -g -fbounds-check Build_plt/cnt.o Build_plt/cpmpxy2d.o Build_plt/mapeod.o Build_plt/stumsl.o Build_plt/stumxy.o Build_plt/vvumxy.o -o /work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/cntG Build_plt/libUTIL.a -L/work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib -lncarg -lncarg_gks -lncarg_c -L/usr/lib64 -lX11 -lm -L/work/users/cloud/user/ndnam/miniconda3/lib -lnetcdff -lnetcdf
/usr/bin/ld: Warning: size of symbol `mapcm1_' changed from 28 in Build_plt/libUTIL.a(hbackground.o) to 40 in /work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm2_' changed from 60 in Build_plt/libUTIL.a(cnt_frame.o) to 128 in /work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm4_' changed from 128 in Build_plt/libUTIL.a(hbackground.o) to 224 in /work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg.a(mapbd.o)
/usr/bin/ld: warning: libmpi.so.12, needed by /work/apps/gnu_4.8.5/mvapich2/2.3.2/lib/libmpifort.so, may conflict with libmpi.so.40
/usr/bin/ld: warning: libgfortran.so.3, needed by /work/apps/gnu_4.8.5/mvapich2/2.3.2/lib/libmpifort.so, may conflict with libgfortran.so.4
/usr/bin/ld: warning: libgfortran.so.3, needed by /work/apps/gnu_4.8.5/mvapich2/2.3.2/lib/libmpifort.so, may conflict with libgfortran.so.4
/usr/bin/ld: /work/apps/gnu_4.8.5/ncl_ncarg/6.4.0/lib/libncarg_c.a(r1mach.o): undefined reference to symbol '_gfortran_stop_numeric_f08@@GFORTRAN_1.4'
//lib64/libgfortran.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [/work/users/cloud/user/manh/COAWST/COAWST_Nonesting/plot/src/Build_plt/cntG] Error 1

Post Reply