After upgrading to xemacs-21.4.15-r3, I get the following message: xemacs: error while loading shared libraries: libpq.so.4: cannot open shared object file: No such file or directory I'm running postgres-8.0.1-r3. I suspect 21.4.15 has a missing dependency on postgresql or libpq >=8.03.
The libpq library from the postgresql package has changed major version number between 8.0.1 and 8.0.2. You had 8.0.2 installed and compiled xemacs against it. Then 8.0.2 has been package.mask'ed and forced a downgrade to 8.0.1. Please use revdep-rebuild --soname libpq.so.4 to rebuild packages and have them linked against your new (the old libpq.so.3 from 8.0.1) version.