This thread has too many parallel discussions!!
I suggested trying Gutenprint---and no response.
You talked about switching distros, and I made a comment, and now you're back to trying to compile something!!!!
/usr/include/bits/errno.h:25:26: error: linux/errno.h: No such file or directory
This means that it cannot find the file it is looking for (errno.h). On my system, this appears in: /usr/src/linux-2.6.31-ARCH/include/linux (I have the full sources installed---If you only have the headers, then it may be somewhere else)
Regardless of where they are, the kernel header files have to be installed before you can compile any software.
BUT: In something like 7 years using Linux, I have never
had to compile a printer driver---and with the current level of HP Linux support, I have trouble seeing how this would be necessary.
How about humouring me and at least trying Gutenprint???