RE: decoders building problem

NOTE: The decoders mailing list is no longer active. The list archives are made available for historical reasons.

On Tue, 25 Nov 2003, Enils Bashi wrote:

Hi Rorik,

I ran configure as follows:
$> CC=gcc ./configure --prefix=/data/decoders-3.0.1
and then
$> make
and I got the following:

[root@nutria src]# make

making `all' in directory /data/decoders-3.0.1/src/gribtonc

make[1]: Entering directory `/data/decoders-3.0.1/src/gribtonc'
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
emalloc.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
gbds.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
gbytem.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
gdes.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
get_prod.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
grib1.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
gribtypes.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
inetutil.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
levels.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
params.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
product_data.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
quasi.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
timeunits.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
user_param.c
gcc -c -g -DNO_REPLACE_SYSLOG -DLOGNAME_ISSOCK
-I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/includ
e  ulog.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
centers.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
gribdump.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
models.c
gcc -g emalloc.o gbds.o gbytem.o gdes.o get_prod.o grib1.o gribtypes.o
inetutil.o levels.o params.o product_da
ta.o quasi.o timeunits.o user_param.o ulog.o centers.o gribdump.o models.o
-lm  -o gribdump
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
gribtonc.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
mkdirs_open.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
nc.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
ncfloat.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
nuwg.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
recs.c
gcc -c -g -I/usr/local/netcdf-3.5.0/include -I/data/udunits-1.11.7/include
units.c
gcc -g emalloc.o gbds.o gbytem.o gdes.o get_prod.o grib1.o gribtypes.o
inetutil.o levels.o params.o product_da
ta.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/usr/local/netcdf-3.5.0/lib -lnetcdf  -L/data/udunits-1.11.7/lib
-ludunits -ludport -lm  -o gribtonc
/usr/local/netcdf-3.5.0/lib/libnetcdf.a(string.o)(.text+0x37): In function
`NC_check_name':
: undefined reference to `__ctype_b'
/data/udunits-1.11.7/lib/libudunits.a(utlib.o)(.text+0xde6): In function
`DecodeUnit':
: undefined reference to `__ctype_b'
/data/udunits-1.11.7/lib/libudunits.a(utlib.o)(.text+0xe34): In function
`DecodeUnit':
: undefined reference to `__ctype_b'
/data/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[1]: *** [gribtonc] Error 1

Enils,

This is a linking problem with the netCDF and udunits libraries. Sorry to
tell you this but you need to rebuild netcdf and udunits setting CC to gcc.
Don't forget to do  a

% make distclean

before redoing the configure.

Robb...
***********************************************


Enils

-----Original Message-----
From: Rorik Peterson [mailto:ffrap1@xxxxxxxxxxxxxx]
Sent: Tuesday, November 25, 2003 5:11 PM
To: Enils Bashi
Subject: Re: decoders building problem


For Linux, use gcc instead of c89 (which is really 'gcc -std=c89'); set

CC=gcc

in CUSTOMIZE

rorik



==============================================================================
Robb Kambic                                Unidata Program Center
Software Engineer III                      Univ. Corp for Atmospheric Research
rkambic@xxxxxxxxxxxxxxxx                   WWW: http://www.unidata.ucar.edu/
==============================================================================


  • 2003 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the decoders archives: