sounds more like you're missing a library, not a qt problem:
quote:
configure:1901: g++ -o conftest -O2 -Wall -s conftest.C -lsocket 1>&5
/usr/bin/ld: cannot find -lsocket
the "-l<name>" flag for ld is searching for any instance of <path>/lib<name>.so or <path>/lib<name>.a, where <path> is replaced by each line in "/etc/ld.so.conf". If you can find the library (ie, /usr/lib/qt-2.3.1/lib/libsocket.so), then you might have to add that path to "/etc/ld.so.conf" and run ldconfig to update the cache.
do "man ld" and "man ldconfig" for more info.