On SUSE 10.0, why can I get any Java code (samples or my own code) that calls Berkeley DB to run?
The version of GCC shipped with SuSE 10 produces incorrect code when run with optimization level ‘-O2’. That is now the default when DB is configured. By changing the Makefile in between running configure and make, with: sed -i ‘s/O2/O/g’ Makefile the error no longer occurs. The version of gcc that ships with SUSE 10 is: gcc (GCC) 4.0.