When building samba, the cups application is build AFTER gimp-print. However, gimp-print has cups as a dependency (refuses to configure without it). I resolved it by building gimp-print before building samba, but I guess it's still a problem.
*** This bug has been marked as a duplicate of 8527 ***