Since I upgraded a server to RH7, I've had the garbled DSO problem, and tried to solve it by a recompile of PHP-4.0.4 and also 4.0.4pl1. Everything looks good until make install quits:
Making install in .
make[1]: Entering directory /home/usr/local/php-4.0.4'
/usr/sbin/apxs -i -a -n php4 libs/libphp4.so
cp libs/libphp4.so /usr/lib/apache/libphp4.so
cp: cannot statlibs/libphp4.so': No such file or directory
apxs:Break: Command failed with rc=65536
make[1]: [install-sapi] Error 1
make[1]: Leaving directory `/home/usr/local/php-4.0.4'
make: [install-recursive] Error 1
(by the way, links exist from /usr to /home/usr . I had to cope with a partition situation)
So I see that libphp4.so is never created.
The garbled libphp4.so files are, I think, from attempts to use rpms to install various mod_php..rpms from Red Hat.
so far, this has probably cost me 40 hours of getting past several types of errors, but I can't figure this last one out.
Thanks in advance for any ideas.