ID: 41973 Updated by: [EMAIL PROTECTED] Reported By: steffen at hauihau dot de -Status: Open +Status: Wont fix Bug Type: LDAP related Operating System: Gentoo Linux PHP Version: 5.2.2 New Comment:
Of course that flag will cause problems. And it's not something we're likely to "fix" as we link only with libs that are needed anyways and it would break every check we do in configure, as you noticed. Feel free to provide a patch, otherwise: Don't use that flag when building PHP. Previous Comments: ------------------------------------------------------------------------ [2007-07-24 13:44:11] steffen at hauihau dot de No one any idea? Can't you reproduce it, when you take my FLAGS? ------------------------------------------------------------------------ [2007-07-16 13:26:13] steffen at hauihau dot de Sorry for the late answer. I tried to configure PHP_5_2 CVS (200707161230) and it does also complain about missing 'ldap_bind_s'. LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-znow -Wl,--sort-common -s" CFLAGS="-march=pentium-m -O2 -msse3 -pipe -fomit-frame-pointer" CPPFLAGS="-march=pentium-m -O2 -msse3 -pipe -fomit-frame-pointer" I invoked configure the same way as in my first post. The result is the same. I found out, that configure works, if I remove '-Wl,as-needed' from my LDFLAGS. Is this flag not supported? Regards Steffen ------------------------------------------------------------------------ [2007-07-12 11:41:18] [EMAIL PROTECTED] I can not reproduce this with latest PHP_5_2 CVS checkout. We do not support any 3rd party "ports" either. Feel free to reopen this IF you can reproduce it using latest 5.2 CVS snapshot from http://snaps.php.net/ ------------------------------------------------------------------------ [2007-07-12 11:31:11] steffen at hauihau dot de Gentoo has no ebuild for php 5.2.3, so I have to wait, until they release one. Yes, configure works, if I remove '=shared' from --with-ldap, but as I think, this is, because '-lldap' is added to $LIBS in configure when $ext_shared is not true. Removing the '=shared' is not pratical because the change will be overriden when the next portage sync is done. I searched for the mysql related stuff in configure to see how this is done, and there, $LIBS is expanded by '-lmysqlclient' before conftest.c gets compiled (e.g. Checking for mysql_close in -lmysqlclient). So, I could imagine, that $LIBS should also be expanded with '-lldap' before the conftests are done. Or am I wrong? Regards Steffen ------------------------------------------------------------------------ [2007-07-12 00:00:35] [EMAIL PROTECTED] Does it work if you remove the '=shared' from the --with-ldap option..? (remember to delete config.cache if you don't do clean build) Also, upgrade to PHP 5.2.3 first. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/41973 -- Edit this bug report at http://bugs.php.net/?id=41973&edit=1
