undefined reference to `H5libhdf5_settings'

I am building hdf5-1.8.7 on Ubuntu 11.10 64b. The lib itself builds
fine, but the tools give this error. Any hints how to fix are
appreciated.

Regards,
Dominik

Linking C executable ../../bin/h5repack
../../bin/libhdf5.a(H5.c.o): In function `H5check_version':
H5.c:(.text+0x1e2e): undefined reference to `H5libhdf5_settings'
H5.c:(.text+0x1ed8): undefined reference to `H5libhdf5_settings'
collect2: ld returned 1 exit status
make[2]: *** [bin/h5import] Error 1