When reinstalling PHP4 from source code, I got an error during make, so here’s a memo on the solution.
I want to reinstall after doing make install once and changing the ./configure options.
# ./configure
# make
# make install
# ./configure
# make
...
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6'
make: *** [all-recursive] Error 1
If you get an error like the above, just run make clean
# make clean
# make
# make install
That’s all from the Gemba.