moc doesn't depend on any Qt library. Do you have an earlier installation of Qt? Did you modify any of its files (especially in the mkspecs directory) or paths?