This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
On Tue, 28 Dec 2004, Unidata Support wrote: > >To: address@hidden > >From: biswanath nandi <address@hidden> > >Subject: Make Install for decoder not working > >Organization: UCAR/Unidata > >Keywords: 200412280928.iBS9SDlI016928 > > Please find the errors below. Compilation error for > gribtonc came up when compiled with gcc compiler on > Red hat Linux work station version 3.0. > > please advice how to circumvent the situation > > > ----error ocuured during make install for decoders on > Red hat Linux work station version 3.0 ----- > > > [root@cnwpmet src]# make install > > making `install' in directory > /home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc > > make[1]: Entering directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > make[2]: Entering directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > make[3]: Entering directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > cp gribdump > /home/mm1/3DVAR/decoder/decoders-3.0.7/bin/gribdump > make[3]: Leaving directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > make[3]: Entering directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > /usr/bin/gcc -g -O2 emalloc.o gbds.o gbytem.o gdes.o > get_prod.o grib1.o gribtypes.o inetutil.o levels.o > params.o product_data.o quasi.o timeunits.o > user_param.o ulog.o gribtonc.o mkdirs_open.o nc.o > ncfloat.o nuwg.o recs.o units.o \ > -L/home/mm1/3DVAR/netcdf-3.6.0/lib -lnetcdf > -L/home/mm1/3DVAR/netcdf-3.6.0/udunits-1.11.7/lib > -ludunits -ludport -lm -o gribtonc > /home/mm1/3DVAR/netcdf-3.6.0/udunits-1.11.7/lib/libudunits.a(utlib.o)(.text+0xde6): > In function `DecodeUnit': > : undefined reference to `__ctype_b' > /home/mm1/3DVAR/netcdf-3.6.0/udunits-1.11.7/lib/libudunits.a(utlib.o)(.text+0xe34): > In function `DecodeUnit': > : undefined reference to `__ctype_b' > /home/mm1/3DVAR/netcdf-3.6.0/udunits-1.11.7/lib/libudunits.a(utlib.o)(.text+0xfaf): > In function `ScanUnit': > : undefined reference to `__ctype_b' > collect2: ld returned 1 exit status > make[3]: *** [gribtonc] Error 1 > make[3]: Leaving directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > make[2]: *** [installed_binfiles] Error 1 > make[2]: Leaving directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > make[1]: *** [installed_programs] Error 2 > make[1]: Leaving directory > `/home/mm1/3DVAR/decoder/decoders-3.0.7/src/gribtonc' > make: *** [gribtonc/install] Error 1 biswanath, the problem appears to be the different versions of the GNU (gcc) compiler used to compile the netcdf, udunits, and gribtonc packages. to solve this problem, do the following: % make cleandist for all packages % setenv CC gcc get the correct compiler flags for gcc % ./configure % make % make test % make install details of the problem are at: http://my.unidata.ucar.edu/cgi-bin/getfile?file=/content/support/help/MailArchives/decoders/msg00317.html robb... > > > ===== > B Nandi > Wg Cdr > > ________________________________________________________________________ > Yahoo! India Matrimony: Find your life partner online > Go to: http://yahoo.shaadi.com/india-matrimony > > -- > NOTE: All email exchanges with Unidata User Support are recorded in the > Unidata inquiry tracking system and then made publicly available > through the web. If you do not want to have your interactions made > available in this way, you must let us know in each email you send to us. > =============================================================================== Robb Kambic Unidata Program Center Software Engineer III Univ. Corp for Atmospheric Research address@hidden WWW: http://www.unidata.ucar.edu/ ===============================================================================