[php-src] Issue #15333: Cannot configure PHP from source to use the desired Kerberos library path

From: Date: Sat, 10 Aug 2024 17:46:01 +0000
Subject: [php-src] Issue #15333: Cannot configure PHP from source to use the desired Kerberos library path
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247475@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15333 Author: ricky-rockstar ### Description On Oracle Linux 8 I configure, make and make install my Kerberos library as follows ./configure --prefix=/kerberos-1.21.3 --enable-dns-for-realm The above creates the folder /kerberos-1.21.3/lib with all my libraries in it. I manually amend all /kerberos-1.21.3/lib/pkgconfig/*.pc files to contain the value **libdir=/library** I copy /kerberos-1.21.3/lib/* folder to my desired library folder /library I "configure", "make" and "make install" PHP with the following: env LD_LIBRARY_PATH=/library PKG_CONFIG=/usr/bin/pkg-config PKG_CONFIG_PATH=/library/pkgconfig KERBEROS_LIBS="-L/library -Wl,-rpath,/library" KERBEROS_CFLAGS="-I/kerberos-1.21.3/include" KERBEROS_LIBS="-L/library -Wl,-rpath,/library" ./configure --prefix=/myphp --with-kerberos Everything completes as normal All the documentation I have read says that with my configuration for above ldd command the expected library location for the libkrb5.so.3 is: libkrb5.so.3 => /library/libkrb5.so.3 but when I run ldd /myphp/bin/php I get the following: libkrb5.so.3 => /kerberos-1.21.3/lib/libkrb5.so.3 Why am I getting the wrong library location? I am literally tearing my hair out with this. Thanks ### PHP Version php 8.2.22 ### Operating System Oracle Linux 8.10

« previous php.bugs (#247475) next »