first thing you should try is finding/getting installed the newest version of XQuartz possible... if its building XQuartz in Macports, and using that and not Apple's X11 (I forget how it works on 10.5) then mak sure its updated to the newest available (all the xorg stuff in Macports, like xorg-server)...