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

Re: [bgl-discuss] netcdf compilation on BGL



On Tue, Jul 12, 2005 at 03:14:59PM -0500, Kazutomo Yoshii wrote:
> seems to me that this is linking order issue
> because error,__ctype**,etc are all libc symbols.
> nm /bgl/BlueLight/ppcfloor/blrts-gnu/powerpc-bgl-blrts-gnu/lib/libc.a

[...]
> >>../netcdf/ibm_power3/libnetcdf.a(ncio.o)(.text+0x11be): In function
> >>`px_pgin':
> >>: undefined reference to `errno'
> >>../netcdf/ibm_power3/libnetcdf.a(string.o)(.text+0xe): In function
> >>`toupper':
> >>: undefined reference to `__ctype_toupper'
> >>../netcdf/ibm_power3/libnetcdf.a(string.o)(.text+0x4f6): In function
> >>`NC_check_name':
> >>: undefined reference to `__ctype_b'

My memory's a bit hazy, but IIRC, these symbols are no longer defined
in newer versions of glibc, having been replaced by locale-aware
versions (see, eg,
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=86465).  Perhaps
the netcdf library being linked against
(/home/walkup/local/netcdf-3.5.1/lib/libnetcdf.a) was created with an
older glibc?  In that case, perhaps linking against a netcdf library
which was created under the current glibc would work?  Don't know if
such a library exists offhand.

John

- --------------------------------------------------------------------
To add or remove yourself from this mailing list, use the 'notifyme'
command on any BGL machine. To remove: notifyme -n, to add: notifyme -y.