[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20020503: McIDAS gribdec
- Subject: 20020503: McIDAS gribdec
- Date: Fri, 03 May 2002 10:14:53 -0600
>From: Robert Mullenax <address@hidden>
>Organization: Universal Weather
>Keywords: 200205031513.g43FDDa05925 McIDAS gribdec.tar.Z
Robert,
>I was reading in the support archive where Brian Hoeth is using Tom's
>modified gribdec to decode the AVN 1x1 grids.
Right. Not only do the code modifications allow for decoding of 1x1 degree
grids, but they also allow for decoding of a lot of gribs in NOAAPORT
that were larger than the previous limit (300000 pts). The code mods
have been rolled into Unidata McIDAS (in XCD) and, hopefully, will
see their way into SSEC McIDAS-XCD 7.9.
>I obtained the file from the FTP server
>but have been unable to build it on RH Linux 7.2 using gcc/g77 I followed
>the README file,
>but it had problems finding header files and McIDAS libs and header files.
This is probably my screw-up. I will work through the build on RH 7.1
using gcc/g77 and see what I missed.
>So I did the following in user mcgribdec's account
>
>Created a $MCROOT/lib and $MCROOT/inc directories and copied everything
>from ~mcidas/lib and ~mcidas/inc to their respective dir in mcgribdec's and
>copied the .h and .inc files from ~/mcgribdec to ~/lib.
>
>I ran make all and the C programs compiled fine but the .f files failed..see
>below. Can I not use gcc/g77 to compile this?
You should be able to. The problem must be mine. I will find it,
fix it, and cut a new distribution of gribdec.tar.Z later today.
Hold on... I just took a look at your compilation code included below.
The mccomp invocation is specifying the use of '-vendor' instead of 'g77'.
This must be the location of the problem since the mccomp invocation
should look like:
mccomp -g77 -o ...
I will take a look as soon as I get into the office and get back to you.
>Thanks,
>Robert Mullenax
>
>gribdec.f:
> main0:
>mccomp -vendor -o gribdec.k gribdec.o btab.o Mcgribdecoder.o Mcmkmcgrid.o
>Mcupackbit.o Mcisbitset.o Mcgtpstrg.o Mcibmfloat.o Mcgetmemory.o
>/WX/users/mcgribdec/lib/main.o -L. -L/WX/users/mcgribdec/lib -lmcidas -lm
>mcfc -o gribdec.k gribdec.o btab.o Mcgribdecoder.o Mcmkmcgrid.o Mcupackbit.o
>Mcisbitset.o Mcgtpstrg.o Mcibmfloat.o Mcgetmemory.o
>/WX/users/mcgribdec/lib/main.o -L. -L/WX/users/mcgribdec/lib
>-L/usr/local/lib -L/usr/X11R6/lib -lmcidas -lm -lf2c -ldl -lm
>/usr/local/lib/libf2c.a(endfile.o): In function `t_runc':
>endfile.o(.text+0x208): the use of `tmpnam' is dangerous, better use
>`mkstemp'
>/WX/users/mcgribdec/lib/libmcidas.a(ddesrvx.o): In function `m0sxread_':
>ddesrvx.o(.text+0xb8): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(ddesrvx.o): In function `m0sxsend_':
>ddesrvx.o(.text+0x1ac): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(ddesub.o): In function `m0cxout_':
>ddesub.o(.text+0x30e): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(m0split.o): In function `m0split_':
>m0split.o(.text+0x26): undefined reference to `G77_lnblnk_0'
>collect2: ld returned 1 exit status
>mccomp -vendor -c grib2img.pgm -I. -I/WX/users/mcgribdec/inc
>rm -f grib2img.o
>mcfc -c -I. -I/WX/users/mcgribdec/inc grib2img.f
>grib2img.f:
> main0:
> make_directory:
> make_navigation:
> make_image:
> get_image_info:
>mccomp -vendor -o grib2img.k grib2img.o btab.o Mcgribdecoder.o Mcmkmcgrid.o
>Mcupackbit.o Mcisbitset.o Mcgtpstrg.o Mcibmfloat.o Mcgetmemory.o
>/WX/users/mcgribdec/lib/main.o -L. -L/WX/users/mcgribdec/lib -lmcidas -lm
>mcfc -o grib2img.k grib2img.o btab.o Mcgribdecoder.o Mcmkmcgrid.o
>Mcupackbit.o Mcisbitset.o Mcgtpstrg.o Mcibmfloat.o Mcgetmemory.o
>/WX/users/mcgribdec/lib/main.o -L. -L/WX/users/mcgribdec/lib
>-L/usr/local/lib -L/usr/X11R6/lib -lmcidas -lm -lf2c -ldl -lm
>/usr/local/lib/libf2c.a(endfile.o): In function `t_runc':
>endfile.o(.text+0x208): the use of `tmpnam' is dangerous, better use
>`mkstemp'
>/WX/users/mcgribdec/lib/libmcidas.a(ddesrvx.o): In function `m0sxread_':
>ddesrvx.o(.text+0xb8): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(ddesrvx.o): In function `m0sxsend_':
>ddesrvx.o(.text+0x1ac): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(ddesub.o): In function `m0cxout_':
>ddesub.o(.text+0x30e): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(m0split.o): In function `m0split_':
>m0split.o(.text+0x26): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(mcaput.o): In function
>`__g77_masterfun_mcaput':
>mcaput.o(.text+0xa1): undefined reference to `G77_lnblnk_0'
>/WX/users/mcgribdec/lib/libmcidas.a(mcaput.o)(.text+0x209): more undefined
>references to `G77_lnblnk_0' follow
>collect2: ld returned 1 exit status
>
>Robert Mullenax
>Weather Systems Administrator
>Universal Weather and Aviation
Tom