Re: [netcdfgroup] auto linking hdf5 libraries?

  • Subject: Re: [netcdfgroup] auto linking hdf5 libraries?
  • From: Dennis Heimbigner <dmh@xxxxxxxxxxxxxxxx>
  • Date: Thu, 08 Apr 2010 17:12:18 -0600
You might do an nm command on libnetcdf.so(.6)
and see if the hdf5 library was directly included
in it. If not, then you might see if the ./configure
command ever found a usable hdf5 library.

=Dennis Heimbigner


Chris Webster wrote:
I am aware that what I was asking for would not work for static libs. Specifically what I found was that if I ran "ldd /usr/lib/libnetcdf_c++.so", some installations would list libnetcdf.so as a dependency, and others would not:

Fedora 10 and the rpmforge/epel RHEL5 did not list libnetcdf.so. The RPMs we build and Fedora 11 did list libnetcdf.so. Perhaps F10, and epel did not have the --enabled-shared on.

The RPMs we build did not list hdf5 as a dependency. Here is our configure:

%configure --enable-netcdf-4 \
          --enable-shared \
          --enable-extra-example-tests \
          --enable-valgrind-tests

230% ldd libnetcdf_c++.so
       linux-gate.so.1 =>  (0x00d2f000)
       libnetcdf.so.6 => /usr/lib/libnetcdf.so.6 (0x008de000)
       libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00633000)
       libm.so.6 => /lib/libm.so.6 (0x0053c000)
       libc.so.6 => /lib/libc.so.6 (0x00d8e000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00fdf000)
       /lib/ld-linux.so.2 (0x00348000)


Thanks,
Chris

Dennis pointed out that if the target system was built from the latest
source with --enable-shared, then the shared netCDF library is supposed
to link to the HDF5 libraries, if needed.

However, using the nc-config utility may work for what you have in mind,
even if the target system has a static build of netCDF libraries.

_______________________________________________
netcdfgroup mailing list
netcdfgroup@xxxxxxxxxxxxxxxx
For list information or to unsubscribe, visit: http://www.unidata.ucar.edu/mailing_lists/



  • 2010 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: