Oh btw: make very certain that your readline library and include filesare from the same release. (If you're working with rpms, that's thelibrary and devel rpms...)
regards, tom lane