Try the otool command to see which libraries (and from where) your version of XEmacs expects. Then check to see which ones are missing or out of place.
Larry Paulson