usually that means you having installed the -development.rpm of some package.
I would try to compile with a clean cpp/lib/sip/sipgen directory,
deleting files that are not in the repo and reverting files that have
been changed, or getting the whole sip/sipgen (or even sip) directory
from the repo again.
Regards,
Zsolt