Bug #77446 [Opn->Nab]: Trying to compile PHP with LDAP without using shared libs
| From: | cmb@php.net | Date: | Thu, 19 Aug 2021 15:40:22 +0000 |
| Subject: | Bug #77446 [Opn->Nab]: Trying to compile PHP with LDAP without using shared libs | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-235967@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77446&edit=1
ID: 77446
Updated by: cmb@php.net
Reported by: cyril dot makloufi at gmail dot com
Summary: Trying to compile PHP with LDAP without using shared
libs
-Status: Open
+Status: Not a bug
Type: Bug
-Package: Compile Failure
+Package: LDAP related
Operating System: MacOS
PHP Version: 7.3.1
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
If you want to build fully static, you need a static build of
libldap and liblber. Obviously, that's not the case in your
setup.
Previous Comments:
------------------------------------------------------------------------
[2019-01-11 13:44:15] cyril dot makloufi at gmail dot com
Description:
------------
Hello,
I'm trying to build PHP with LDAP as a static library.
But the make command always ask for ldap.dylib.
I removed LIBS="$LIBS $LDAP_SHARED_LIBADD" in php-sources/ext/ldap/config.m4 (line 195)
and it looks to be working.
I may have missed something but I didn't find any option to do this correctly.
LDAP is the only extension that makes this problem.
Test script:
---------------
LDAP Building :
./configure --prefix="$DEPS_DIR"
--disable-backends
--enable-ldap
--without-fetch
--without-cyrus-sasl
--enable-shared=no
--enable-static=yes
make
make install
PHP Building :
./configure --prefix="$INSTALL_DIR"
--disable-cli
--enable-cgi
--enable-shared=no
--enable-static=yes
--with-ldap=$DEPS_DIR"
make
make install
Expected result:
----------------
PHP build correctly
Actual result:
--------------
make command failed and ask for libldap.dylib and liblber.dylib
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77446&edit=1