artichoke
Verified User
On a CentOS 4.4 system that has MySQL 4.1.22 rpms installed, i was encountering multiple symbol errors when './build all' tried to rebuild php. The problem was caused due to this version of MySQL containing its own versions of some functions that are already provided by mhash also. And the php Makefile has a symbol EXTRA_LIBS that mentions '-lz' a large number of times (when once should have been enough).
The following patch to the /usr/local/directadmin/customapache/build script let the build complete without errors:
Rahul
The following patch to the /usr/local/directadmin/customapache/build script let the build complete without errors:
Code:
===================================================================
RCS file: RCS/build,v
retrieving revision 1.1
diff -u -r1.1 build
--- build 2007/02/20 18:29:57 1.1
+++ build 2007/02/26 13:05:24
@@ -577,6 +577,10 @@
while
echo "Trying to make php..."
+
+ # Multiple symbol fix -- replace multiple -lz with just one. R.D.
+ perl -pi.bak -e '/^EXTRA_LIBS/ && s/\s+\-lz\b//g && s/$/ -lz/;' Makefile
+
do
{
C_INCLUDE_PATH=/usr/kerberos/include make
Rahul