Unset all those variables, run make confclean in Qt 4.6's directory and run it again