you're getting this template-based bug because the package in the subject hit a "header present but cannot be compiled" during ./configure execution. If you check my blog post in the URL, this is going to be a problem when autoconf-2.64 will be used so you should pay attention and consider fixing the issue (or let upstream know about it at least).
Thank you for your consideration. Share and enjoy!
x11-libs/openmotif-22.214.171.124:20081115-015746.log:configure: WARNING: X11/Xmu/Editres.h: present but cannot be compiled
*** Bug 257614 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of bug 82081 ***