Project

General

Profile

error installing libs4cdo [h5diff.lo]

Added by larry chou almost 9 years ago

I have difficulties installing the libs4cdo openSUSE 13.1.
I downloaded the libs file from your website and then I tried
make libs4cdo.It gave me an error message.
With my best wishes,
Larry

This is the error I get:
make5: * [h5diff.lo] Error 1
make5: Waiting for unfinished jobs....
make4: [all-recursive] Error 1
make3: [all-recursive] Error 1
make2: [hdf5-1.8.8] Error 2
make1: [all] Error 2
make: ** [libs4cdo] Error


Replies (2)

RE: error installing libs4cdo [h5diff.lo] - Added by Thomas Jahns almost 9 years ago

The problem is that -ansi is in your CFLAGS but ISO C99 support is needed. Since your C compiler seems to be gcc 4.8.1, the correct flag would be -std=gnu99 or -std=c99, which is what -ansi is normally replaced by. Why the replacement does not happen in your case, becomes clear once one looks at hdf5-1.8.8/config/gnu-flags where the replacement in line 186 only happens for gcc 4.6 and 4.7 versions. I'm deeply impressed by HDF5. The easiest way for you to go forward with libs4cdo 0.0.10 is probably to patch the line to read

 gcc-4.[6789]*|gcc-[56789]*)

instead of
 gcc-4.[67]*)

But there is a newer version, namely libs4cdo-0.0.11, where hdf5 contains specific settings for gcc 4.8 and 4.9. Why didn't you use that?

RE: error installing libs4cdo [h5diff.lo] - Added by Ralf Mueller almost 9 years ago

I already updated hdf5 in libs4cdo-0.0.11

    (1-2/2)