Bug in build script (customapache)?

barts

Verified User
Joined
Nov 22, 2005
Messages
29
Hello,

I had problem with compile PHP. I use 64bit processors and my lib dir is /usr/lib64. There is /usr/lib64/libltdl.so.
Your build script has:

build: if [ ! -e /usr/lib/libltdl.so ]; then
build: ln -s libltdl.so.3 /usr/lib/libltdl.so

so it create link to file that doesn't exists. PHP has problem because it try use file /usr/lib/libltdl.so BUT MY libltdl.so is in /usr/lib64.

I changed build script to:

build: if [ ! -e /usr/lib64/libltdl.so ]; then
build: ln -s libltdl.so.3 /usr/lib64/libltdl.so

and it work great now.

Maybe it is not bug, but why PHP looking for libltdl.so in /usr/lib? I think it should looking for libltdl.so first in /usr/lib64.
 
Changed it to:
Code:
        if [ -e /usr/lib64 ]; then
                if [ ! -e /usr/lib64/libltdl.so ]; then
                        ln -s libltdl.so.3 /usr/lib64/libltdl.so
                fi
        else
                if [ ! -e /usr/lib/libltdl.so ]; then
                        ln -s libltdl.so.3 /usr/lib/libltdl.so
                fi
        fi
John
 
Back
Top