[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inquiry about undefined reference to __ctype_b error



>To: address@hidden
>From: "GOOKYOUNG HEO" <address@hidden>
>Subject: Re: 20041227: undefined reference to __ctype_b error
>Organization: Center for Energy and Environmental Resources, University of 
>Texas at Austin
>Keywords: 200412272308.iBRN8YlI006891

Hi,

> While compiling the SMOKE (ver 2.1,
> http://www.cmascenter.org/html/models.html), I received error
> messages related to "undefined reference__ctype_b".  (Actually, I
> spent several days to find possible errors in a program (uam2ncf in
> SMOKE) that use a netCDF library.  But I coudln't, then I tried to
> recomplie SMOKE programs using the source codes given.)
>  
>     /SMOKE/subsys/ioapi/bin/Linux2_x86pg/libioapi.a(envgets.o)(.text+0x5e): 
> In function `envync':
>    : undefined reference to `__ctype_b'
>    /SMOKE/subsys/ioapi/bin/Linux2_x86pg/libioapi.a(envgets.o)(.text+0x79): In 
> function `envync':
>    : undefined reference to `__ctype_b'
>    /SMOKE/subsys/ioapi/bin/Linux2_x86pg/libioapi.a(envgets.o)(.text+0xbe9): 
> In function `name2cstr':
>    : undefined reference to `__ctype_b'
>   /SMOKE/subsys/netcdf/bin/Linux2_x86pg/libnetcdf.a(string.o)(.text+0x37): In 
> function `NC_check_name':
>   : undefined reference to `__ctype_b'

This is caused by trying to link with a netCDF library built on an old
RedHat 8 system.

To get around this problem, you will either have to recompile and
install the library from source, following the installation
instructions on our web site:

  http://www.unidata.ucar.edu/packages/netcdf/docs/netcdf-install/

or try installing a later binary distribution, such as the version
3.6.0 netCDF library available in:

  ftp://ftp.unidata.ucar.edu/pub/binary/linux_2.4-i686/

or use one of the RPMs for netcdf accessible by using "netcdf rpm
3.6.0" as Google search terms.

--Russ

_____________________________________________________________________

Russ Rew                                         UCAR Unidata Program
address@hidden          http://www.unidata.ucar.edu/staff/russ