libSM.so.6 for vncviewer

I tried running vncviewer today from a terminal under Photon and I got an error message that libSM.so.6 was not found. I checked all my library paths and indeed it was not installed. I have XPhoton 4.2 and XFree 86 4.2 installed with all the standard dependancies from the May 2003 QSSL unsupported repository. What am i missing?

vncviewer was compiled against XFree 86 4.3 which you can download from sf.net/projects/openqnx

you can install the tar file by
cd /
tar zxvf filename.tar.gz

then, make sure LD_LIBRARY_PATH has /usr/X11R6/lib in it.
echo $LD_LIBRARY_PATH
export LD_LIBRARY_PATH=/usr/X11R6/lib:$LD_LIBRARY_PATH