Re: [ncl-install] undefined symbol: sd_ncvargetg

From: Sourish Basu <sbasu_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 09 2009 - 01:16:22 MST

Hi Dave,

    Yep, that solved the problem. Thanks!

-Sourish

On 12/09/2009 01:41 AM, David Brown wrote:
> 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 Wed Dec 9 01:16:32 2009

This archive was generated by hypermail 2.1.8 : Thu Dec 10 2009 - 11:30:59 MST