[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #VGI-905197]: libnetcdff.so: Fortran runtime library



> Dear Sir or Madam,
>
> We've compiled the netcdf-3.6.2 with gcc 4.1.x for our users some time
> ago.
>
> Leaving this as it has been but upgrading to gcc 4.3.x they've
> encountered some problems regarding libgfortran (propably due to ABI
> changes http://gcc.gnu.org/ml/gcc-bugs/2007-10/msg00250.html) and
> linking to the new libgfortran.so.3 when compiling their programs).
> The correct way, I think would be to have libnetcdff.so referencing the
> libgfortran it was compiled against, but it doesn't:
>
> m222086@visen:~$ldd /sw/etch-ia32/netcdf-3.6.2-gcc/lib/libnetcdff.so
> linux-gate.so.1 =>  (0xffffe000)
> libc.so.6 => /lib/tls/libc.so.6 (0xb7d69000)
> /lib/ld-linux.so.2 (0x80000000)
>
> I've tried it with the daily snapshot (yesterday) and the issue is still
> there.
>
> However: info automake mentions this problem with convenience libraries
> for mixed languages (libnetcdff90.la) under
> info automake -> 8. Building programs and libraries -> 8.3 Building a
> Shared Library -> 8.3.5 Libtool Convenience Libraries
> and give a "trick" on how to achieve the desired behaviour.
>
> I've applied that "trick" to fortran/Makefile.am and created a  context
> diff attached to this mail.
>
> For me it worked very well at home:
>
> nic@nic-laptop:~/mynetcdf/fortran/.libs$ ldd libnetcdff.so
> linux-vdso.so.1 =>  (0x00007fff447fe000)
> libnetcdf.so.4 => /usr/lib/libnetcdf.so.4 (0x00007f793c301000)
> libgfortran.so.3 => /usr/lib/libgfortran.so.3 (0x00007f793c025000)
> libm.so.6 => /lib/libm.so.6 (0x00007f793bd9f000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007f793bb87000)
> libc.so.6 => /lib/libc.so.6 (0x00007f793b815000)
> /lib64/ld-linux-x86-64.so.2 (0x00007f793c7bb000)
>
> Regards
>
> Nicolai Stange
>
>

Howdy Nicolai!

I have applied your patch and if it passes the daily testing it will be in
tomorrow's snapshot.

Thanks!

Ed

Ticket Details
===================
Ticket ID: VGI-905197
Department: Support netCDF
Priority: Normal
Status: Closed