> Subject: Re: conflicting subroutines (fwd)
> A student here was trying to compile a code on an SGI power challenge
> and got the following from the link editor:
>
> > ld: FATAL 12: Object class error (/usr/local/lib/libnetcdf.a): not a 32-bit
object.
>
> He says he was compiling in "32 bit mode", alledgedly to be compatible
> with the IMSL library. Is there anything he can do, short of rebuilding
> NetCDF on his own?
>
> Thank-you
> Bill
>
> William Weibel weibel@xxxxxxxxxxxxxx
> UCLA Department of Atmospheric Sciences Tel. (310)206-4441 \\\\/
> Los Angeles, CA 90095-1565 Fax (310)206-5219 O-O
> U.S.A. |
> -
>
> "Id quod est praestantissimum maximeque optabile omnibus sanis et bonis et
> beatis, cum dignitate otium." (The thing which is the most outstanding and
> chiefly to be desired by all healthy and good and well-off persons, is
> leisure with honour.) Cicero - Pro Sestio,
xlv.98
>
> |||| | | | | | | | | | | | | | | | | | | | | | |
||||
application must be either 32 bit or 64 bit.
It appears that the link is being requested as 32bit ('cc -32' or 'cc -n32')
while the netcdf library was built as a 64 bit object ('cc -64' or just 'cc'
on this system).
So, you can rebuild IMSL as a 64 bit object and link with 'cc' or
you can rebuild libnetcdf.a as a 32 object and relink using 'cc -n32'.
To rebuild netcdf in 32 bit mode.
% make distclean
% setenv CC 'cc -n32'
% ./configure
% make
-glenn