problems compiling the plot package
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
problems compiling the plot package
I've successful installed roms and I'm now running with "real" bathymetry... But I didn't yet manage to install the plot package; running the makefile I get the following message:
monteiroi@gridpt15:~/plot/src$ make
/usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math crash.f90
In file crash.f90:249
if (ierr.ne.nf_noerr) print 10, nf_strerror (ierr)
1
Error: Symbol 'nf_noerr' at (1) has no IMPLICIT type
In file crash.f90:236
status=nf_close(ncid1)
1
Error: Function 'nf_close' at (1) has no IMPLICIT type
In file crash.f90:237
if ((iref.eq.2).or.(iref.eq.3)) status=nf_close(ncid2)
1
Error: Function 'nf_close' at (1) has no IMPLICIT type
In file crash.f90:249
if (ierr.ne.nf_noerr) print 10, nf_strerror (ierr)
1
Error: Function 'nf_strerror' at (1) has no IMPLICIT type
make: ** [crash.o] Erro 1
Can someone please help me
Isabel
monteiroi@gridpt15:~/plot/src$ make
/usr/bin/gfortran -c -frepack-arrays -O3 -ffast-math crash.f90
In file crash.f90:249
if (ierr.ne.nf_noerr) print 10, nf_strerror (ierr)
1
Error: Symbol 'nf_noerr' at (1) has no IMPLICIT type
In file crash.f90:236
status=nf_close(ncid1)
1
Error: Function 'nf_close' at (1) has no IMPLICIT type
In file crash.f90:237
if ((iref.eq.2).or.(iref.eq.3)) status=nf_close(ncid2)
1
Error: Function 'nf_close' at (1) has no IMPLICIT type
In file crash.f90:249
if (ierr.ne.nf_noerr) print 10, nf_strerror (ierr)
1
Error: Function 'nf_strerror' at (1) has no IMPLICIT type
make: ** [crash.o] Erro 1
Can someone please help me
Isabel
Re: problems compiling the plot package
Those nf_xxx variables and functions are all declared in netcdf.inc. There should be a "#include <netcdf.inc>" at the top of the crash.F file. Did you see warnings from the cpp phase of the compile? You need to tell it where to look for netcdf.inc with a "-I $(NETCDF_INCDIR)" in the CPPFLAGS.
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
In fact in the "crash.f90" that I downloaded there is no "#include "netcdf.inc" so I put it in the code and now I get the following message:
gfortran -c -frepack-arrays -O3 -ffast-math crash.f90
Warning: crash.f90:39: Illegal preprocessor directive
and I still can´t visualize my fields
Thanks
gfortran -c -frepack-arrays -O3 -ffast-math crash.f90
Warning: crash.f90:39: Illegal preprocessor directive
and I still can´t visualize my fields
Thanks
Re: problems compiling the plot package
Where did you download it from? Also, what is on line 39 of that file?
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
I download it from
https://www.myroms.org/index.php?page=Processing ,
In that line I included:
#include "netcdf.inc"
https://www.myroms.org/index.php?page=Processing ,
In that line I included:
#include "netcdf.inc"
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
I've overcome the problem of not recognizing #include "netcdf.inc" I just took the "#" and line 39 now is include "netcdf.inc".
But now I have another problem first I have to hand copy the *.F to *.f90 to plot/src/ directory where I have the Makefile (its annoying but I can do it) but the worst is that I get a lot of compilation errors in the subroutine bcintrp_new.f90:
monteiroi@gridpt15:~/plot/src$ make
gfortran -c -frepack-arrays -O3 -ffast-math bcintrp_new.f90
Warning: bcintrp_new.f90:1: Illegal preprocessor directive
Warning: bcintrp_new.f90:2: Illegal preprocessor directive
Warning: bcintrp_new.f90:38: Illegal preprocessor directive
Warning: bcintrp_new.f90:39: Illegal preprocessor directive
Warning: bcintrp_new.f90:42: Illegal preprocessor directive
Warning: bcintrp_new.f90:44: Illegal preprocessor directive
Warning: bcintrp_new.f90:53: Illegal preprocessor directive
Warning: bcintrp_new.f90:104: Illegal preprocessor directive
Warning: bcintrp_new.f90:109: Illegal preprocessor directive
Warning: bcintrp_new.f90:110: Illegal preprocessor directive
Warning: bcintrp_new.f90:111: Illegal preprocessor directive
Warning: bcintrp_new.f90:179: Illegal preprocessor directive
Warning: bcintrp_new.f90:207: Illegal preprocessor directive
Warning: bcintrp_new.f90:213: Illegal preprocessor directive
Warning: bcintrp_new.f90:223: Illegal preprocessor directive
Warning: bcintrp_new.f90:229: Illegal preprocessor directive
Warning: bcintrp_new.f90:239: Illegal preprocessor directive
Warning: bcintrp_new.f90:245: Illegal preprocessor directive
Warning: bcintrp_new.f90:255: Illegal preprocessor directive
Warning: bcintrp_new.f90:261: Illegal preprocessor directive
Warning: bcintrp_new.f90:271: Illegal preprocessor directive
Warning: bcintrp_new.f90:277: Illegal preprocessor directive
Warning: bcintrp_new.f90:287: Illegal preprocessor directive
Warning: bcintrp_new.f90:293: Illegal preprocessor directive
Warning: bcintrp_new.f90:303: Illegal preprocessor directive
Warning: bcintrp_new.f90:309: Illegal preprocessor directive
Warning: bcintrp_new.f90:319: Illegal preprocessor directive
Warning: bcintrp_new.f90:325: Illegal preprocessor directive
Warning: bcintrp_new.f90:355: Illegal preprocessor directive
Warning: bcintrp_new.f90:360: Illegal preprocessor directive
Warning: bcintrp_new.f90:365: Illegal preprocessor directive
In file bcintrp_new.f90:43
real dfc, dfx(0:1,0:1), dfy(0:1,0:1), f(0:1,0:1)
1
Error: Symbol 'f' at (1) already has basic type of REAL
In file bcintrp_new.f90:202
dfx(1,1)=dfc
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:204
dfx(1,1)=dfc
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:206
dfx(1,1)=fld(is+2,js+1)-f(1,1)
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:209
dfx(1,1)=0.0
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:211
dfx(1,1)=LIMTR*dfc
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:218
dfx(1,0)=dfc ! differences, "dfx" and
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:220
dfx(1,0)=dfc ! sign and differ in
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:222
Isabel
But now I have another problem first I have to hand copy the *.F to *.f90 to plot/src/ directory where I have the Makefile (its annoying but I can do it) but the worst is that I get a lot of compilation errors in the subroutine bcintrp_new.f90:
monteiroi@gridpt15:~/plot/src$ make
gfortran -c -frepack-arrays -O3 -ffast-math bcintrp_new.f90
Warning: bcintrp_new.f90:1: Illegal preprocessor directive
Warning: bcintrp_new.f90:2: Illegal preprocessor directive
Warning: bcintrp_new.f90:38: Illegal preprocessor directive
Warning: bcintrp_new.f90:39: Illegal preprocessor directive
Warning: bcintrp_new.f90:42: Illegal preprocessor directive
Warning: bcintrp_new.f90:44: Illegal preprocessor directive
Warning: bcintrp_new.f90:53: Illegal preprocessor directive
Warning: bcintrp_new.f90:104: Illegal preprocessor directive
Warning: bcintrp_new.f90:109: Illegal preprocessor directive
Warning: bcintrp_new.f90:110: Illegal preprocessor directive
Warning: bcintrp_new.f90:111: Illegal preprocessor directive
Warning: bcintrp_new.f90:179: Illegal preprocessor directive
Warning: bcintrp_new.f90:207: Illegal preprocessor directive
Warning: bcintrp_new.f90:213: Illegal preprocessor directive
Warning: bcintrp_new.f90:223: Illegal preprocessor directive
Warning: bcintrp_new.f90:229: Illegal preprocessor directive
Warning: bcintrp_new.f90:239: Illegal preprocessor directive
Warning: bcintrp_new.f90:245: Illegal preprocessor directive
Warning: bcintrp_new.f90:255: Illegal preprocessor directive
Warning: bcintrp_new.f90:261: Illegal preprocessor directive
Warning: bcintrp_new.f90:271: Illegal preprocessor directive
Warning: bcintrp_new.f90:277: Illegal preprocessor directive
Warning: bcintrp_new.f90:287: Illegal preprocessor directive
Warning: bcintrp_new.f90:293: Illegal preprocessor directive
Warning: bcintrp_new.f90:303: Illegal preprocessor directive
Warning: bcintrp_new.f90:309: Illegal preprocessor directive
Warning: bcintrp_new.f90:319: Illegal preprocessor directive
Warning: bcintrp_new.f90:325: Illegal preprocessor directive
Warning: bcintrp_new.f90:355: Illegal preprocessor directive
Warning: bcintrp_new.f90:360: Illegal preprocessor directive
Warning: bcintrp_new.f90:365: Illegal preprocessor directive
In file bcintrp_new.f90:43
real dfc, dfx(0:1,0:1), dfy(0:1,0:1), f(0:1,0:1)
1
Error: Symbol 'f' at (1) already has basic type of REAL
In file bcintrp_new.f90:202
dfx(1,1)=dfc
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:204
dfx(1,1)=dfc
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:206
dfx(1,1)=fld(is+2,js+1)-f(1,1)
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:209
dfx(1,1)=0.0
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:211
dfx(1,1)=LIMTR*dfc
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:218
dfx(1,0)=dfc ! differences, "dfx" and
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:220
dfx(1,0)=dfc ! sign and differ in
1
Error: Unclassifiable statement at (1)
In file bcintrp_new.f90:222
Isabel
Re: problems compiling the plot package
I suggest that you fetch the code from the ROMS svn site:
https://www.myroms.org/svn/src/plot/
https://www.myroms.org/svn/src/plot/
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
kate wrote:I suggest that you fetch the code from the ROMS svn site:
https://www.myroms.org/svn/src/plot/
Well I did so and now I have some fresh new problems (with ncarg libs I suppose ):
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math \
cnt.o cpmpxy2d.o mapeod.o stumsl.o stumxy.o vvumxy.o -o /home/monteiroi/bin/cnt \
libUTIL.a -L/home/monteiroi/lib -lncarg -lncarg_gks -L/usr/X11R6/lib64 -lX11 -L/home/monteiroi/roms/lib -lnetcdf -L/home/freitass/HDF5_LIBS/HDF5_1.6.10/lib -lhdf5_hl -lhdf5 -lz
/usr/bin/ld: Warning: size of symbol `mapcm2_' changed from 128 in libUTIL.a(hbackground.o) to 56 in /home/monteiroi/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: alignment 16 of symbol `mapcm1_' in /home/monteiroi/lib/libncarg.a(mapbd.o) is smaller than 32 in libUTIL.a(hbackground.o)
/usr/bin/ld: Warning: size of symbol `mapcm1_' changed from 48 in libUTIL.a(hbackground.o) to 28 in /home/monteiroi/lib/libncarg.a(mapbd.o)
/usr/bin/ld: Warning: size of symbol `mapcm4_' changed from 224 in libUTIL.a(hbackground.o) to 128 in /home/monteiroi/lib/libncarg.a(mapbd.o)
libUTIL.a(hbackground.o): In function `mapgrd_':
hbackground.f90:(.text+0x9b2): undefined reference to `mdpchi_'
hbackground.f90:(.text+0x10e9): undefined reference to `mdpchi_'
/home/monteiroi/lib/libncarg.a(arinit.o): In function `arinit_':
arinit.f:(.text+0xff): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(cpsetr.o): In function `cpsetr_':
cpsetr.f:(.text+0x8ec): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(cpgiws.o): In function `cpgiws_':
cpgiws.f:(.text+0x108): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(cpgrws.o): In function `cpgrws_':
cpgrws.f:(.text+0xf5): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(dashdc.o): In function `dashdc_':
dashdc.f:(.text+0x97): undefined reference to `ishift_'
dashdc.f:(.text+0x118): undefined reference to `ishift_'
dashdc.f:(.text+0x423): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(dashdb.o): In function `dashdb_':
dashdb.f:(.text+0x83): undefined reference to `ishift_'
dashdb.f:(.text+0xcd): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(dashdb.o):dashdb.f:(.text+0x113): more undefined references to `ishift_' follow
/home/monteiroi/lib/libncarg.a(mapbla.o): In function `mapbla_':
mapbla.f:(.text+0x2d65): undefined reference to `ngofro_'
mapbla.f:(.text+0x2ff8): undefined reference to `ngclfi_'
/home/monteiroi/lib/libncarg.a(mprdnm.o): In function `mprdnm_':
mprdnm.f:(.text+0x41): undefined reference to `ngrdch_'
mprdnm.f:(.text+0x9b): undefined reference to `ngrdch_'
/home/monteiroi/lib/libncarg.a(plchhq.o): In function `plchhq_':
plchhq.f:(.text+0x6b): undefined reference to `i1mach_'
plchhq.f:(.text+0xc9): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(pccffc.o): In function `pccffc_':
pccffc.f:(.text+0x1d2): undefined reference to `ishift_'
pccffc.f:(.text+0x1f2): undefined reference to `ishift_'
pccffc.f:(.text+0x357): undefined reference to `ishift_'
pccffc.f:(.text+0x3a3): undefined reference to `ishift_'
pccffc.f:(.text+0x482): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(pccffc.o):pccffc.f:(.text+0x499): more undefined references to `ishift_' follow
/home/monteiroi/lib/libncarg.a(pcffgp.o): In function `pcffgp_':
pcffgp.f:(.text+0x5a): undefined reference to `gbytes_'
pcffgp.f:(.text+0x94): undefined reference to `gbytes_'
pcffgp.f:(.text+0xc9): undefined reference to `gbytes_'
/home/monteiroi/lib/libncarg.a(pcffme.o): In function `pcffme_':
pcffme.f:(.text+0x25): undefined reference to `gbytes_'
pcffme.f:(.text+0x4a): undefined reference to `gbytes_'
/home/monteiroi/lib/libncarg.a(pcffme.o):pcffme.f:(.text+0xbb): more undefined references to `gbytes_' follow
/home/monteiroi/lib/libncarg.a(pcgneg.o): In function `pcgneg_':
pcgneg.f:(.text+0x20): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(pcfcls.o): In function `pcfcls_':
pcfcls.f:(.text+0x1f): undefined reference to `ngclfi_'
pcfcls.f:(.text+0x39): undefined reference to `bclred_'
/home/monteiroi/lib/libncarg.a(pcfopn.o): In function `pcfopn_':
pcfopn.f:(.text+0x57): undefined reference to `gngpat_'
pcfopn.f:(.text+0xaf): undefined reference to `ngofro_'
/home/monteiroi/lib/libncarg.a(pcfred.o): In function `pcfred_':
pcfred.f:(.text+0x33): undefined reference to `ngrdin_'
/home/monteiroi/lib/libncarg.a(bofred.o): In function `bofred_':
bofred.c:(.text+0x41): undefined reference to `getFcapname'
/home/monteiroi/lib/libncarg.a(stinit.o): In function `stinit_':
stinit.f:(.text+0x114): undefined reference to `i1mach_'
stinit.f:(.text+0x124): undefined reference to `r1mach_'
/home/monteiroi/lib/libncarg.a(strset.o): In function `strset_':
strset.f:(.text+0x299): undefined reference to `i1mach_'
strset.f:(.text+0x2a9): undefined reference to `r1mach_'
/home/monteiroi/lib/libncarg.a(seter.o): In function `seter_':
seter.f:(.text+0x40): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(bcgetr.o): In function `bcgetr_':
bcgetr.f:(.text+0x81): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(bcsetr.o): In function `bcsetr_':
bcsetr.f:(.text+0x81): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(vvectr.o): In function `vvectr_':
vvectr.f:(.text+0x16b8): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg.a(vvrset.o): In function `vvrset_':
vvrset.f:(.text+0x3fa): undefined reference to `i1mach_'
vvrset.f:(.text+0x40a): undefined reference to `r1mach_'
/home/monteiroi/lib/libncarg.a(vvinit.o): In function `vvinit_':
vvinit.f:(.text+0xfd): undefined reference to `i1mach_'
vvinit.f:(.text+0x10d): undefined reference to `r1mach_'
/home/monteiroi/lib/libncarg.a(cfvld.o): In function `cfvld_':
cfvld.f:(.text+0x51a): undefined reference to `ishift_'
cfvld.f:(.text+0x53a): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(mapchi.o): In function `mapchi_':
mapchi.f:(.text+0x1fd): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg.a(mapio.o): In function `mapio_':
mapio.f:(.text+0xf3): undefined reference to `ngofro_'
mapio.f:(.text+0x135): undefined reference to `ngrdin_'
mapio.f:(.text+0x154): undefined reference to `ngclfi_'
mapio.f:(.text+0x18c): undefined reference to `ngrdfl_'
mapio.f:(.text+0x1bc): undefined reference to `ngclfi_'
/home/monteiroi/lib/libncarg.a(mpdbdi.o): In function `mpdbdi_':
mpdbdi.f:(.text+0x47): undefined reference to `gngpat_'
/home/monteiroi/lib/libncarg.a(stdraw.o): In function `stdraw_':
stdraw.f:(.text+0x7c8): undefined reference to `r1mach_'
stdraw.f:(.text+0x7e3): undefined reference to `i1mach_'
stdraw.f:(.text+0xa34): undefined reference to `sbytes_'
stdraw.f:(.text+0xa73): undefined reference to `sbytes_'
stdraw.f:(.text+0xab2): undefined reference to `sbytes_'
stdraw.f:(.text+0xc6f): undefined reference to `gbytes_'
stdraw.f:(.text+0xcf9): undefined reference to `sbytes_'
stdraw.f:(.text+0x1159): undefined reference to `gbytes_'
stdraw.f:(.text+0x120e): undefined reference to `sbytes_'
stdraw.f:(.text+0x1c29): undefined reference to `gbytes_'
stdraw.f:(.text+0x1dbe): undefined reference to `sbytes_'
stdraw.f:(.text+0x1e92): undefined reference to `sbytes_'
stdraw.f:(.text+0x1eb9): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg_gks.a(gesc.o): In function `gesc_':
gesc.f:(.text+0x9c3): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg_gks.a(g01wdr.o): In function `g01wdr_':
g01wdr.f:(.text+0x2ca): undefined reference to `i1mach_'
g01wdr.f:(.text+0x4b4): undefined reference to `gbytes_'
g01wdr.f:(.text+0x5ff): undefined reference to `gbytes_'
g01wdr.f:(.text+0x63f): undefined reference to `gbytes_'
g01wdr.f:(.text+0x7c3): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg_gks.a(wks.o): In function `delfil_':
wks.c:(.text+0x61): undefined reference to `GetNCARGPath'
/home/monteiroi/lib/libncarg_gks.a(wks.o): In function `rdwks_':
wks.c:(.text+0x5bb): undefined reference to `bcopyswap'
/home/monteiroi/lib/libncarg_gks.a(wks.o): In function `wrtwks_':
wks.c:(.text+0x765): undefined reference to `bcopyswap'
wks.c:(.text+0x814): undefined reference to `bcopyswap'
/home/monteiroi/lib/libncarg_gks.a(wks.o): In function `opnwks_':
wks.c:(.text+0xbc9): undefined reference to `GetNCARGPath'
/home/monteiroi/lib/libncarg_gks.a(gwiwdr.o): In function `gwiwdr_':
gwiwdr.f:(.text+0x1fc): undefined reference to `i1mach_'
/home/monteiroi/lib/libncarg_gks.a(fort_c.o): In function `ggkwdr_':
fort_c.c:(.text+0x10a): undefined reference to `ErrGetNum'
fort_c.c:(.text+0x118): undefined reference to `ErrGetMsg'
fort_c.c:(.text+0x1f4): undefined reference to `ErrGetMsg'
fort_c.c:(.text+0x27e): undefined reference to `ErrGetMsg'
fort_c.c:(.text+0x37f): undefined reference to `ErrGetMsg'
/home/monteiroi/lib/libncarg_gks.a(gksc.o): In function `WriteToGKSC':
gksc.c:(.text+0x278): undefined reference to `ESprintf'
gksc.c:(.text+0x359): undefined reference to `ESprintf'
gksc.c:(.text+0x3c9): undefined reference to `ESprintf'
gksc.c:(.text+0x436): undefined reference to `ESprintf'
gksc.c:(.text+0x4c9): undefined reference to `ESprintf'
/home/monteiroi/lib/libncarg_gks.a(gksc.o):gksc.c:(.text+0x535): more undefined references to `ESprintf' follow
/home/monteiroi/lib/libncarg_gks.a(g01flb.o): In function `g01flb_':
g01flb.f:(.text+0x6b): undefined reference to `sbytes_'
g01flb.f:(.text+0x90): undefined reference to `sbytes_'
g01flb.f:(.text+0xd9): undefined reference to `sbytes_'
/home/monteiroi/lib/libncarg_gks.a(gflcnv.o): In function `gflcnv_':
gflcnv.f:(.text+0x74): undefined reference to `ishift_'
/home/monteiroi/lib/libncarg_gks.a(gmflod.o): In function `gmflod_':
gmflod.f:(.text+0x6a): undefined reference to `sbytes_'
gmflod.f:(.text+0xa3): undefined reference to `sbytes_'
/home/monteiroi/lib/libncarg_gks.a(gwiflb.o): In function `gwiflb_':
gwiflb.f:(.text+0x70): undefined reference to `sbytes_'
gwiflb.f:(.text+0x95): undefined reference to `sbytes_'
gwiflb.f:(.text+0xba): undefined reference to `sbytes_'
/home/monteiroi/lib/libncarg_gks.a(gks_device.o): In function `GKS_GetDevByName':
gks_device.c:(.text+0xe2): undefined reference to `ESprintf'
/home/monteiroi/lib/libncarg_gks.a(xcontrol.o): In function `X11_ClearWorkstation':
xcontrol.c:(.text+0x4a): undefined reference to `ESprintf'
/home/monteiroi/lib/libncarg_gks.a(xcontrol.o): In function `X11_ActivateWorkstation':
xcontrol.c:(.text+0x161): undefined reference to `ESprintf'
/home/monteiroi/lib/libncarg_gks.a(xcontrol.o): In function `X11_Exec':
xcontrol.c:(.text+0x3f3): undefined reference to `ESprintf'
xcontrol.c:(.text+0x4dc): undefined reference to `ESprintf'
/home/monteiroi/lib/libncarg_gks.a(xcontrol.o):xcontrol.c:(.text+0x684): more undefined references to `ESprintf' follow
/home/monteiroi/lib/libncarg_gks.a(gwilod.o): In function `gwilod_':
gwilod.f:(.text+0x9f): undefined reference to `sbytes_'
/home/monteiroi/lib/libncarg_gks.a(font.o): In function `SetFont':
font.c:(.text+0x35): undefined reference to `ESprintf'
font.c:(.text+0x51): undefined reference to `getFcapname'
font.c:(.text+0x8d): undefined reference to `ESprintf'
font.c:(.text+0xd9): undefined reference to `ESprintf'
font.c:(.text+0x12e): undefined reference to `ESprintf'
font.c:(.text+0x580): undefined reference to `ESprintf'
font.c:(.text+0x598): undefined reference to `ESprintf'
collect2: ld returned 1 exit status
make: ** [/home/monteiroi/bin/cnt] Erro 1
Re: problems compiling the plot package
Well, that's quite the collection of errors. The warnings about mapcm2 and friends is from telling it the wrong value for your NCAR graphics version in your makefile. Also, there's a third library you should be linking to after libncarg and libncarg_gks: libncarg_c.
What do you get from ncargversion?
What do you get from ncargversion?
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
My ncargversion is 4.2.2.
I've included LIBS path and now I'm getting the folloing error
monteiroi@gridpt15:~/plot_from_svn$ make
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math \
cnt.o cpmpxy2d.o mapeod.o stumsl.o stumxy.o vvumxy.o -o /home/monteiroi/bin/cnt \
libUTIL.a -L/home/monteiroi/ncarg-4.2.2/common/src/libncarg_c -lncarg_c -L/usr/X11R6/lib64 -lX11 -L/home/monteiroi/roms/lib -lnetcdf -L/home/freitass/HDF5_LIBS/HDF5_1.6.10/lib -lhdf5_hl -lhdf5 -lz
/usr/bin/ld: cannot find -lncarg_c
collect2: ld returned 1 exit status
make: ** [/home/monteiroi/bin/cnt] Erro 1
I've checked my LIBS and for libncarg_gks and libncarg
everithing is ok (there are libncarg.a and libncarg_gks.a in the Libs path)
LIBS := -L$(NCARG_ROOT)/ncarg2d/src/libncarg -lncarg
LIBS := -L$(NCARG_ROOT)/ncarg2d/src/libncarg_gks -lncarg_gks
but for libncarg_c
LIBS := -L$(NCARG_ROOT)/common/src/libncarg_c -lncarg_c
there is no libncarg_c.a in the Lib path
Isabel
I've included LIBS path and now I'm getting the folloing error
monteiroi@gridpt15:~/plot_from_svn$ make
/usr/bin/gfortran -frepack-arrays -O3 -ffast-math \
cnt.o cpmpxy2d.o mapeod.o stumsl.o stumxy.o vvumxy.o -o /home/monteiroi/bin/cnt \
libUTIL.a -L/home/monteiroi/ncarg-4.2.2/common/src/libncarg_c -lncarg_c -L/usr/X11R6/lib64 -lX11 -L/home/monteiroi/roms/lib -lnetcdf -L/home/freitass/HDF5_LIBS/HDF5_1.6.10/lib -lhdf5_hl -lhdf5 -lz
/usr/bin/ld: cannot find -lncarg_c
collect2: ld returned 1 exit status
make: ** [/home/monteiroi/bin/cnt] Erro 1
I've checked my LIBS and for libncarg_gks and libncarg
everithing is ok (there are libncarg.a and libncarg_gks.a in the Libs path)
LIBS := -L$(NCARG_ROOT)/ncarg2d/src/libncarg -lncarg
LIBS := -L$(NCARG_ROOT)/ncarg2d/src/libncarg_gks -lncarg_gks
but for libncarg_c
LIBS := -L$(NCARG_ROOT)/common/src/libncarg_c -lncarg_c
there is no libncarg_c.a in the Lib path
Isabel
Re: problems compiling the plot package
Well, why don't you have libncarg_c.a? Did you compile from source or install the binaries? Can you try fetching a newer version?
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
Well following your instructions I've got the ncl_ncarg-5.1.1 version and I did manage to instal the plot package and to get a gmeta file but when I do "idt gmeta & "kate wrote:Well, why don't you have libncarg_c.a? Did you compile from source or install the binaries? Can you try fetching a newer version?
I get idt: command not found
but from my make-output from installing ncl_ncarg I have
Making Makefiles in ./ncarview/src/bin/idt
make[5]: Entrando no diretório `/home/monteiroi/ncl_ncarg-5.1.1/ncarview/src/bin/idt'
make[5]: Nada a ser feito para `Makefiles'.
Can you help me again (I'm almost there)
Isabel
Re: problems compiling the plot package
You need to put the directory with idt into your path. You'll also need to set the NCARG_ROOT environment variable.
-
- Posts: 39
- Joined: Wed Feb 18, 2004 3:50 pm
- Location: Instituto de Meteorologia
Re: problems compiling the plot package
I have the environment variable NCARG_ROOT. The problem is that although the ncl_ncarg-5.1.1 was done with no problems (I've attached make-output file from ncl_ncarg-5.1.1 installation) I can't find idt executable anywhere!
I must say that I had to hand copy X11R6 include files because initially they were not in the Linux installation
Isabel
I must say that I had to hand copy X11R6 include files because initially they were not in the Linux installation
Isabel
- Attachments
-
- make-output.txt
- (1.32 MiB) Downloaded 376 times
Re: problems compiling the plot package
You will also need the X11 libraries. There should be an X11 programmer's kit or some such package. It will also want to link with the HDF4 library unless you explicitly told it not to bother with HDF at the very beginning.