|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77446 Trying to compile PHP with LDAP without using shared libs
Submitted: 2019-01-11 13:44 UTC Modified: -
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: cyril dot makloufi at gmail dot com Assigned:
Status: Open Package: Compile Failure
PHP Version: 7.3.1 OS: MacOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: cyril dot makloufi at gmail dot com
New email:
PHP Version: OS:


 [2019-01-11 13:44 UTC] cyril dot makloufi at gmail dot com

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"
make install

PHP Building :

./configure --prefix="$INSTALL_DIR"
make install

Expected result:
PHP build correctly

Actual result:
make command failed and ask for libldap.dylib and liblber.dylib


Add a Patch

Pull Requests

Add a Pull Request

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Jul 28 15:01:23 2021 UTC