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:
gcc-3.[0-4]*|gcc-4.[0123]*)
# 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 PROD_CFLAGS="-O0"
;;
After making these two changes, I ran:
./configure --enable-threadsafe --with-pthreads=/usr --prefix=/usr/local
make
make test
sudo make install
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 http:// www.hdfgroup. org/HDF5/ release/ known_problems5 .html:
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:
gcc- 3.[0-4] *|gcc-4. [0123]* )
PROD_CFLAGS= "-O0"
# 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
make test
sudo make install
All tests pass