Usually on HP, i have better luck with
gcc ... actually... it seems that way on most OS's :). You may want to check your path and make sure that the
cc in root's path is the one you expect, as that has bitten me a few times.
from the frivolous to the serious