Error message is
Workaround is to start Asterisk with LD_LIBRARY_PATH pointing to /usr/local/lib.
Kernel 2.4.18-19.7.x, gcc (GCC) 3.4.1, gmake 3.81. Interestingly, gcc itself is located under /usr/local, so is gmake.
My system had gcc 2.96 installed under /usr as an RPM package. (Later gcc was compiled locally.) Due to dependences, I’m not able to remove gcc 2.96, but I removed executable from /usr/bin.
Could this be a bug or is there a trick to get the local path into compiled code?