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

20030606: netCDF compile release 3.5.0 problems under RH Linux 9.0



Masa,

> To: address@hidden
> From: Masa Prodanovic <address@hidden>
> Subject: release 3.5.0 problems under RH Linux 9.0
> Organization: UCAR/Unidata

The above message contained the following:

> I was unable to compile(or rather link) a code in C while using
> netCDF libraries (either release 3.4 or 3.5.0).
> 
> kernel: Red Hat Linux 3.2.2-5
> gcc version 3.2.2
> 
> The following are the error messages:
> 
> /nfs/ww/netcdf-3.4/lib/libnetcdf.a(string.o)(.text+0x37): In function 
> `NC_check_name':
> : undefined reference to `__ctype_b'
> collect2: ld returned 1 exit status
> 
> ------
> 
> /nfs/user22/netcdf-3.5.0/src/libsrc/libnetcdf.a(string.o)(.text+0x37): In 
> function
> `NC_check_name':
> : undefined reference to `__ctype_b'
> collect2: ld returned 1 exit status
> 
> Any idea how to fix this? 

The reference to `__ctype_b' should be satisfied by the C runtime
library.  Either your linker isn't referencing the C runtime library, or
the necessary definition is missing from the C runtime library that the
linker is using.  This latter case could be becaue the compiler that was
used to compile the netCDF file "string.c" assumed a differenct C runtime
library than the one actually used by your linker.

I suggest that you show this problem to your system administrator.

> Thanks!
> 
> Masha

Regards,
Steve Emmerson