That command line still works for me. Are you running Lion? Le the know what version of OS X and Xcode you have installed.
I should have read this thread earlier as the error corresponds closely to mine, but since no solution has been posted yet, I'm going to butt in with my info:
I am running Lion, 10.7.3.
My version of clang is 3.1, see VERSION below).
My version of Xcode is 4.3
And FWIW, your book 4th Edition) omits the need to separately download the "command line tools"; i.e. they do not come with Xcode 4.3. Perhaps an update???
Apple clang version 3.1 (tags/Apple/clang-318.0.45) (based on LLVM 3.1svn)
Thread model: posix