(I hope I'm doing this right. I haven't a clue what I'm doing when it comes to programming and I'm not used to posting bug reports. If I messed anything up please let me know) The hp5400 driver that comes with sane-backends-1.0.12 doesn't work for me. scanimage dumps core when trying to scan. To work around the broken driver first I downloaded the sane-backends tar ball and extracted it. Next I downloaded cvs version of the driver (cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/hp5400backend co hp5400). Then I had to edit hp5400/hp5400.c (in the directory I got from CVS) and add "#define NO_STRING_VERSION_MATCH" to the top. Finally, I copied all the *.c and *.h files from that directory to <sane-backends_base>/backend, then compiled as normal.
Since the release of .13 is scheduled in less than two weeks (see http://www.sane-project.org/), I think we should not touch this any more.
.13 is out for a while, please re-open this bug if you still have a problem.