Hi Sourish,
I think the problem is in the way you built the HDF 4 library. HDF has  
its own version of the NetCDF interface, which must be disabled if you  
are going to link to the actual NetCDF library in addition to HDF.  
When disabled, substitute wrapper routines with the 'sd_' prefix are  
supplied for the NetCDF calls. Depending on which version of HDF you  
have you to add  to the HDF configure line either:
    '-DHAVE_NETCDF' (meaning there is an external version of the  
NetCDF library), or
    '--disable-netcdf'  (meaning disable the internal HDF NetCDF API)
The first is used with HDF4.2r1
The second is used with HDF4.2r4 (the current version I think).
See the section on builiding HDF4 in http://www.ncl.ucar.edu/Download/build_from_src.shtml 
  for more information.
Hope this helps.
  -dave
On Dec 8, 2009, at 2:18 PM, Sourish Basu wrote:
> Oops, I forgot that nio.so was looking for sd_ncvargetg, not just
> ncvargetg. So who's supposed to define this symbol?
>
> ======================================================
>
> Hi All,
>
>    I've been trying to install PyNIO from source, and I get this error
> when I try to import the installed Nio module:
>
> ImportError: /usr/lib/python2.5/site-packages/PyNIO/nio.so: undefined
> symbol: sd_ncvargetg
>
> As far as I can see, this is defined in libnetcdf.a:
>
> nm /usr/local/lib/libnetcdf.a | grep ncvargetg
> 000005b0 T ncvargetg
>
> and I compiled PyNIO with HAS_NETCDF4=1 and NETCDF4_PREFIX=/usr/local
>
> Can anyone help?
>
> Thanks,
>
> -Sourish Basu
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
_______________________________________________
ncl-install mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-install
Received on Tue Dec  8 17:41:39 2009
This archive was generated by hypermail 2.1.8 : Thu Dec 10 2009 - 11:30:59 MST