RIP4 - Centos 5.3

The RIP4 graphics package.

RIP4 - Centos 5.3

Postby myap » Sun Aug 22, 2010 6:31 pm

Hi All,

Need some help with RIP4 compilation. I tried to compile it with (PGI/gfortran) but both option return with error and rip.exe is not generated.

I have change the configure.rip with the following

FromLOCAL_LIBS = -L/usr/X11R6/lib -lX11 -L/usr/lib/gcc/i386-redhat-linux/3.4.6 -lgcc -lg2c

To
LOCAL_LIBS = -L/usr/lib -lX11 \
-L/usr/lib64/libfortran.so.1.0.0 -lgfortran \
-L/usr/lib64 -lg2c -lgcc

Since X11R6 is no longer in use for Centos 5 and the libfortran lib is wrong


Here is the compile rip

Hope someone can advise

Thanks

**** Compiling rip ****

gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c addorfill.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c adjellip.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c angle.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c barb.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c bes.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c bogs.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c brnshr.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c bshear.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c bvfricalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c capecalc3d.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c ceilingcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c colram.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c colrln.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c condheat.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c contrive2.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c cpchhl.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c cpchll.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c cpcolr.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c cpmpxy.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c createdtg.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c cttcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c dbzcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c -L/share/apps/WRF/NetCDF-4.0.1/lib -lnetcdf -I/share/apps/WRF/NetCDF-4.0.1/include refmos2calc.f
gfortran: -lnetcdf: linker input file unused because linking not done
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c -L/share/apps/WRF/NetCDF-4.0.1/lib -lnetcdf -I/share/apps/WRF/NetCDF-4.0.1/include refmos3calc.f
gfortran: -lnetcdf: linker input file unused because linking not done
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c ddpcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c ddx.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c ddy.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c derivc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c drawcl.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getpt.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c driver.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c egridfill.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c eqthecalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c extingcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c fields.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c fillarray.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c finterp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c finterp2d.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c fregcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c frtitle.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c fx.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c fy.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getbasicvars.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getbasicvars_newdom.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getchar.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getconvals.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getdash.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getdims.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getheadinfo.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getheadinfo_newdom.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getinum.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getminfo.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getrnum.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c gettimes.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getvar.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c getvarinfo.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hboxdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hbulldraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hchadraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hcondraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hiresmap.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hlinedraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hmapdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hodograph.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hsidsdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hstrdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hticdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c htrajdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c hvecdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c igetcoind.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c lennonblank.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c liftparcel.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c locinterp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c maptform.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c maptick.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c mconvert.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c mktrjpts.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c mlen.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c monotonic.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c netasc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c numeric.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c omgcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c pfcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c pltitle.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c prcver.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c precprob.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c premaptform.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c profil.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c profvelcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c pvocalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c qgomg.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c rdcolt.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c readspec.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c relhl.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c rhucalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c ricalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c rip.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c rotipslab.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c rotpslab.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c sateqthecalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c saweli.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c scondraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c seaprs.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c setripheader.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c smooth.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c smoothcp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c smoothcz.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c smoothrain.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c srflow.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c srflow2.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c sstats.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c sticdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c sticdraw_polar.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c svecdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c tdpcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c tfpcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c thecalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c tonpsadiabat.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c tserprep.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c turb.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c typhoon.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c unblank.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vbardraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vc2dcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vcondraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c velbrb.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c velvctmts.f
In file velvctmts.f:470

IF (NSET) 101,102,106
1
Warning: Obsolete: arithmetic IF statement at (1)
In file velvctmts.f:488

IF (NX-NY) 103,105,104
1
Warning: Obsolete: arithmetic IF statement at (1)
In file velvctmts.f:520

IF (ISP-2) 109,111,110
1
Warning: Obsolete: arithmetic IF statement at (1)
In file velvctmts.f:567

IF (ISP-1) 121,119,120
1
Warning: Obsolete: arithmetic IF statement at (1)
In file velvctmts.f:568

119 IF (UI-SPV1) 121,122,121
1
Warning: Obsolete: arithmetic IF statement at (1)
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vgp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vinterp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c virtual.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c virtualhyd.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c viscalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vticdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vtrajdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vvecdraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c vwinddraw.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c wdircalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c wetbulbcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c writefile.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c wspcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c xmapcalc.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c xtodot.f
/bin/rm -f binio.o
cc -I. -DLITTLE -DUNDERSCORE -c -c binio.c
/bin/rm -f v5d.o
cc -I. -DLITTLE -DUNDERSCORE -c -c v5d.c
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o rip addorfill.o adjellip.o angle.o barb.o bes.o bogs.o brnshr.o bshear.o bvfricalc.o capecalc3d.o ceilingcalc.o colram.o colrln.o condheat.o contrive2.o cpchhl.o cpchll.o cpcolr.o cpmpxy.o createdtg.o cttcalc.o dbzcalc.o refmos2calc.o refmos3calc.o ddpcalc.o ddx.o ddy.o derivc.o drawcl.o driver.o egridfill.o eqthecalc.o extingcalc.o fields.o fillarray.o finterp.o finterp2d.o fregcalc.o frtitle.o fx.o fy.o getbasicvars.o getbasicvars_newdom.o getchar.o getconvals.o getdash.o getdims.o getheadinfo.o getheadinfo_newdom.o getinum.o getminfo.o getpt.o getrnum.o gettimes.o getvar.o getvarinfo.o hboxdraw.o hbulldraw.o hchadraw.o hcondraw.o hiresmap.o hlinedraw.o hmapdraw.o hodograph.o hsidsdraw.o hstrdraw.o hticdraw.o htrajdraw.o hvecdraw.o igetcoind.o lennonblank.o liftparcel.o locinterp.o maptform.o maptick.o mconvert.o mktrjpts.o mlen.o monotonic.o netasc.o numeric.o omgcalc.o pfcalc.o pltitle.o prcver.o precprob.o premaptform.o profil.o profvelcalc.o pvocalc.o qgomg.o rdcolt.o readspec.o relhl.o rhucalc.o ricalc.o rip.o rotipslab.o rotpslab.o sateqthecalc.o saweli.o scondraw.o seaprs.o setripheader.o smooth.o smoothcp.o smoothcz.o smoothrain.o srflow.o srflow2.o sstats.o sticdraw.o sticdraw_polar.o svecdraw.o tdpcalc.o tfpcalc.o thecalc.o tonpsadiabat.o tserprep.o turb.o typhoon.o unblank.o vbardraw.o vc2dcalc.o vcondraw.o velbrb.o velvctmts.o vgp.o vinterp.o virtual.o virtualhyd.o viscalc.o vticdraw.o vtrajdraw.o vvecdraw.o vwinddraw.o wdircalc.o wetbulbcalc.o writefile.o wspcalc.o xmapcalc.o xtodot.o binio.o v5d.o -L/share/apps/WRF/NetCDF-4.0.1/lib -lnetcdf -I/share/apps/WRF/NetCDF-4.0.1/include -L/share/apps/RIP4.fail/ncarg//lib -lncarg -lcgm -lncarg_gks -lncarg_c -lX11 -lm -L/usr/lib -lX11 -L/usr/lib64/libfortran.so.1.0.0 -lgfortran -L/usr/lib64 -lg2c -lgcc
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc
/share/apps/RIP4.fail/ncarg//lib/libncarg_gks.a(pixwrite_png.o): In function `write_png':
pixwrite_png.c:(.text+0x60): undefined reference to `png_create_write_struct'
pixwrite_png.c:(.text+0x88): undefined reference to `png_create_info_struct'
pixwrite_png.c:(.text+0xa1): undefined reference to `png_destroy_write_struct'
pixwrite_png.c:(.text+0xd4): undefined reference to `png_destroy_write_struct'
pixwrite_png.c:(.text+0x103): undefined reference to `png_init_io'
pixwrite_png.c:(.text+0x116): undefined reference to `png_malloc'
pixwrite_png.c:(.text+0x163): undefined reference to `png_set_rows'
pixwrite_png.c:(.text+0x19e): undefined reference to `png_set_IHDR'
pixwrite_png.c:(.text+0x1be): undefined reference to `png_write_png'
pixwrite_png.c:(.text+0x1cd): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make: [rip] Error 1 (ignored)
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripcomp ripcomp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -c writefile_rdp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripdp_mm5 ripdp_mm5.f fillarray.o mconvert.o writefile_rdp.o \
virtual.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripdp_wrfarw ripdp_wrfarw.f -L/share/apps/WRF/NetCDF-4.0.1/lib -lnetcdf -I/share/apps/WRF/NetCDF-4.0.1/include \
premaptform.o maptform.o fillarray.o mconvert.o writefile_rdp.o \
virtual.o xtodot.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripdp_wrfnmm ripdp_wrfnmm.f -L/share/apps/WRF/NetCDF-4.0.1/lib -lnetcdf -I/share/apps/WRF/NetCDF-4.0.1/include \
maptform.o premaptform.o fillarray.o mconvert.o writefile_rdp.o \
virtual.o xmapcalc.o egridfill.o xtodot.o
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripcut ripcut.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripinterp ripinterp.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o ripshow ripshow.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o showtraj showtraj.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o tabdiag tabdiag.f lennonblank.f
gfortran -I. -fcray-pointer -fconvert=big-endian -frecord-marker=4 -o upscale upscale.f
myap
 
Posts: 6
Joined: Mon Feb 01, 2010 10:01 pm

Re: RIP4 - Centos 5.3

Postby kwthomas » Mon Aug 23, 2010 6:48 pm

Based on the man page output for our older version of "gfortran", I'd say adding "-std-legacy" to the compile line should get you past the rather old "IF" syntax.

I suspect that there may be 32 vs 64 bit issues, however, you need to get past the first set of complaints.

Kevin Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 61
Joined: Thu Aug 07, 2008 6:53 pm

Re: RIP4 - Centos 5.3

Postby hugo9995 » Mon Oct 25, 2010 7:02 pm

Hi
you need fix the flags, like that
dec:
(cd src/ ; $(MAKE) all \
"CF = gfortran" \
"FFLAGS = -O2 -fcray-pointer " \
"FFLAGS2 = -O2 -fcray-pointer " \
"FFLAGS3 = -O2 -fcray-pointer " \
"CCFLAGS = -DLITTLE -DUNDERSCORE -c" \
"LDFLAGS = " \
"LOCAL_LIBS = " \
"NETCDFLIB = /root/Desktop/netcdf4Binary/lib" \
"NETCDFINC = /root/Desktop/netcdf4Binary/include" \
"LIBS = -L$(NCARG_ROOT)/lib -L$(NETCDFLIB) -I$(NETCDFINC) -lncarg -lncarg_gks -lncarg_c -lX11 -lm" )
( $(RM) $(RM_LIST_EXE) ; $(LN) src/rip . ; $(LN) src/ripdp_mm5 . ; $(LN) src/ripdp_wrfarw . ; $(LN) src/ripdp_wrfnmm . ; $(LN) src/ripcomp . ; $(LN) src/ripcut . ; $(LN) src/ripinterp . ; $(LN) src/ripshow . ; $(LN) src/showtraj . ; $(LN) src/tabdiag . ; $(LN) src/upscale . )

and just use gfotran compiler.
i hope that can help you, i can compile RIP 4, 4.3 and 4.4 version successfuly, using a binary precompiled of netcdf4.

rgds
hugo9995
 
Posts: 20
Joined: Mon Oct 11, 2010 8:24 pm
Location: Mexico

Re: RIP4 - Centos 5.3

Postby robncyns » Wed May 04, 2011 1:53 pm

Hi; i'm on CentOS 5.5 and am getting the same errors with undefined reference. did you ever resolve the issue. i've tried the suggestions in the thread but still no luck... i'm on a 64 bit machine using 64bit libs across the board. when i try to use the 32bit libs for NCARG i get a error saying NCARG is incompatible...

/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x63): undefined reference to `png_create_write_struct'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x79): undefined reference to `png_create_info_struct'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0xa8): undefined reference to `png_init_io'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0xbb): undefined reference to `png_malloc'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x109): undefined reference to `png_set_rows'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x144): undefined reference to `png_set_IHDR'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x161): undefined reference to `png_write_png'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x170): undefined reference to `png_destroy_write_struct'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x19a): undefined reference to `png_destroy_write_struct'
/usr/lib64/ncarg//libncarg_gks.a(pixwrite_png.o): In function `write_png':
(.text+0x1c6): undefined reference to `png_destroy_write_struct'
collect2: ld returned 1 exit status
make: [rip] Error 1 (ignored)

Please Help Me!!!!!!
robncyns
 
Posts: 15
Joined: Thu Apr 17, 2008 8:34 am


Return to RIP4

Who is online

Users browsing this forum: No registered users and 2 guests