Bug #77446 [NEW]: Trying to compile PHP with LDAP without using shared libs
| From: | cyril dot makloufi at gmail dot com | Date: | Fri, 11 Jan 2019 13:44:15 +0000 |
| Subject: | Bug #77446 [NEW]: Trying to compile PHP with LDAP without using shared libs | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218908@lists.php.net to get a copy of this message | ||
From: cyril dot makloufi at gmail dot com
Operating system: MacOS
PHP version: 7.3.1
Package: Compile Failure
Bug Type: Bug
Bug description:Trying to compile PHP with LDAP without using shared libs
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 bug report at https://bugs.php.net/bug.php?id=77446&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77446&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77446&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77446&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77446&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77446&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77446&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77446&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77446&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77446&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77446&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77446&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77446&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77446&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77446&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77446&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77446&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77446&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77446&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77446&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77446&r=mysqlcfg