(this bug report will look strange again, as bugzilla is obviously slanted against portability bugs) The statfs check fails abysmally on OpenBSD. Thus transaction.c does not compile. On OpenBSD, to get struct statfs, one must #include <sys/param.h> #include <sys/mount.h> -> hence STATSFS_IN_SYS_MOUNT_H is never verified. sys/mount.h alone is not enough. The configure.in comment is right, rpm should borrow fileutils test or something better.
There's a FreeBSD patch that has been applied since rpm-3.0.4. Will that also fix this OpenBSD issue? You're right about fileutils tests.
AFAIK, rpm-4.0 will build on *BSD systems. Stealing the tests from fileutils is still a good idea, that's were many of the existing tests were cribbed in the first place. I suspect that the tests should be made identical.
Please reopen with a patch.