lib/hpm2.c uses BSWAP_16 without including ipmitool/bswap.h.
I presume this happens with compiler that isn't gcc, right?
I'm seeing the build error on a Fedora 19 ppc64 box with gcc
Please, resubmit the patch.
bash-4.2$ git am -3 -s hpm2_build_fix.patch
Patch format detection failed.
Resubmitted in git format-patch format
Committed into Git.