hpijs-1.7.1 fails to compile with gcc-4, because of a missing forward declaration. The attached patch resolves this issue and allows it to compile.
Created attachment 66266 [details, diff] gcc4 patch
Feel free to commit the patch to gentoo cvs and report the bug upstream.
fixed