Can you run configure with '--with-scrollbars=lucid
--with-dialogs=lucid' and see if that helps? The motif libraries have
been the source of some problems. There is a 5.7 patch for motif,
107081-40 107656-07, alternatively, you can try applying that before
rebuilding from scratch.
HTH,
vin