RE: [pyngl-talk] PyNIO cache settings

From: Jesper Larsen <jlar_at_nyahnyahspammersnyahnyah>
Date: Thu, 02 Oct 2008 10:29:11 +0200

Hi Mary,

On Mon, 2008-09-29 at 09:08 -0600, Mary Haley wrote:
> If you only need PyNIO, then you don't need the X11 libraries.
>
> As long as you got "libnio.a" built from trying to build NCL, then
> you should be set. You may need to type:
>
> cd $NCARG/ni/src/ncl
> make all install
>
> to make sure that libnio.a and its corresponding include files get
> installed, at least. Don't worry if the build of the "ncl" executable
> fails.

Thanks for the info. I think I am almost there but I have one problem.
When I subsequently try to build PyNIO I get an error:

<snip>
running build_ext
building 'nio' extension
gcc -pthread -shared build/temp.linux-i686-2.5/niomodule.o
-L/home/jlar/local/lib -L/home/jlar/local/lib -L/usr/lib
-L/usr/local/lib -lnio -lmfhdf -ldf -ljpeg -lpng -lz -lnetcdf -lgrib2c
-ljasper -lpng -lgfortran -lpython2.5 -o
build/lib.linux-i686-2.5/PyNIO/nio.so
/home/jlar/local/lib/libnetcdf.a(nc.o): In function `NC_check_id':
/home/jlar/backup/netcdf-3.6.3/libsrc/nc.c:68: multiple definition of
`NC_check_id'
/home/jlar/local/lib/libmfhdf.a(file.o):file.c:(.text+0x190): first
defined here
/usr/bin/ld: Warning: size of symbol `NC_check_id' changed from 65
in /home/jlar/local/lib/libmfhdf.a(file.o) to 55
in /home/jlar/local/lib/libnetcdf.a(nc.o)
/home/jlar/local/lib/libnetcdf.a(var.o): In function `NC_var_shape':
/home/jlar/backup/netcdf-3.6.3/libsrc/var.c:373: multiple definition of
`NC_var_shape'
/home/jlar/local/lib/libmfhdf.a(var.o):var.c:(.text+0x3a0): first
defined here
/usr/bin/ld: Warning: size of symbol `NC_var_shape' changed from 589
in /home/jlar/local/lib/libmfhdf.a(var.o) to 410
in /home/jlar/local/lib/libnetcdf.a(var.o)
/home/jlar/local/lib/libnetcdf.a(attr.o): In function `NC_findattr':
/home/jlar/backup/netcdf-3.6.3/libsrc/attr.c:325: multiple definition of
`NC_findattr'
/home/jlar/local/lib/libmfhdf.a(attr.o):attr.c:(.text+0x90): first
defined here
/usr/bin/ld: Warning: size of symbol `NC_findattr' changed from 146
in /home/jlar/local/lib/libmfhdf.a(attr.o) to 224
in /home/jlar/local/lib/libnetcdf.a(attr.o)
/home/jlar/local/lib/libnetcdf.a(putget.o): In function `nctypelen':
/home/jlar/backup/netcdf-3.6.3/libsrc/putget.c:51: multiple definition
of `nctypelen'
/home/jlar/local/lib/libmfhdf.a(array.o):array.c:(.text+0x140): first
defined here
/usr/bin/ld: Warning: size of symbol `nctypelen' changed from 88
in /home/jlar/local/lib/libmfhdf.a(array.o) to 56
in /home/jlar/local/lib/libnetcdf.a(putget.o)
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

So it seems like some NetCDF functions are defined in both the HDF
library and (of course) in the NetCDF library. Do you know why? I am
using HDF 4.2r3 and NetCDF 3.6.3.

Best regards,
Jesper
Received on Thu Oct 02 2008 - 02:29:11 MDT

This archive was generated by hypermail 2.2.0 : Tue Oct 07 2008 - 09:10:08 MDT