The Macro _XftPatternVapBuild takes three parameters.
It is called with two in xftlist.c line 313.
It is just a gues but
pattern = _XftPatternVapBuild (0, &va);
_XftPatternVapBuild (pattern, 0, &va);
SIS_IOCTL_AGP_INIT not declared, but used in xf86drmSiS.c line 57
I just commented it out. I don't have SiS chip set.