Building Qt 3.3.1 (or earlier) from source may require the following modification to be made to the src/moc/moc.pro file:
LIBS = -lm
It may also be necessary to ensure that -lm is used when building qmake itself.
Copyright 2008, Trolltech ASA