[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unidata Support: 970529: Unable to build netcdf3.3
- Subject: Re: Unidata Support: 970529: Unable to build netcdf3.3
- Date: Fri, 30 May 1997 10:13:22 -0600
> The saga unfortunately continues. I tried to use the netcdf libraries
> you sent me yesterday but it seems as if they don't work on my system.
> I was trying to build a set of netcdf utilities (nco by C. Zender)
> when I got the following message:
>
> gcc -o ./ncks ./ncks.o -L. -L/usr/local/lib -lnco -lnetcdf -lnetcdf_c++
> collect2: /usr/lib/old_ld returned 1 exit status
> /usr/lib/old_ld:
> Object file format error in: /usr/local/lib/libnetcdf.a(v2i.o): bad symbolic
header (magic number)
> make: *** [ncks] Error 1
> rm ./cal_util.o ./nc_fortran.o ./csz.o
>
> Were the libraries you sent me built with the -n32 option? I think this is
> required for IRIX 6.3 "for o2".
I don't know what your problem is, it works fine for me on your machine.
Perhaps you should use the vendor's compiler.
carson 6% file /carson/glenn/netcdf-3.3.1a/lib/libnetcdf.a
/carson/glenn/netcdf-3.3.1a/lib/libnetcdf.a: current ar archive containing
32-bit objects
carson 7% pwd
/carson/glenn/netcdf-3.3.1a/src/libsrc
carson 8% rm t_nc.o
carson 9% make test
c89 -n32 -c -O -I. -DNDEBUG t_nc.c
ar cru libnetcdf.a attr.o dim.o error.o libvers.o nc.o ncio.o
ncx.o putget.o string.o v1hpg.o v2i.o var.o
: libnetcdf.a
c89 -n32 -o t_nc -O t_nc.o -L. -lnetcdf
./t_nc
(...t_nc output...)
*** Success ***
The "installed" library also works:
carson 14% c89 -n32 -o t_nc -O t_nc.o -L/carson/glenn/netcdf-3.3.1a/lib
-lnetcdf
carson 15% ./t_nc
... the appropriate output.
-glenn