Comment 2 for bug 308280

Darren Dale (dsdale24) wrote :

I dont know anything about packaging for ubuntu (though I am willing to learn if you can point me in the right direction).

This morning I upgraded to jaunty alpha 6 and compiled hdf5-1.8.2 from source. There were two issues, both covered at

1) edit the ./perform/zip_perf.c file in the source and change line 552 to:

    output = open(filename, O_RDWR | O_CREAT, S_IRWXU);

2) edit ./config/gnu-flags file in the HDF5 source code and setting PROD_CFLAGS from "-O" to "-O0".

Here is the code that needs to be modified:

        # The optimization level is reduced for gcc 3.* and 4.* due to problems
        # with code generation for src/H5Tconv.c with the -O2 & -O3
        # optimization levels (which shows up as failures for various integer
        # types -> long long conversions in the test/dtypes test). Perhaps
        # later versions of gcc will fix this bug... - QAK - 2003/10/20

After making these two changes, I ran:

    ./configure --enable-threadsafe --with-pthreads=/usr --prefix=/usr/local
    make test
    sudo make install

All tests pass