ID: 41973 Updated by: [EMAIL PROTECTED] Reported By: steffen at hauihau dot de -Status: Assigned +Status: Closed Bug Type: Compile Failure Operating System: Gentoo Linux PHP Version: 5.2CVS-2007-07-23 Assigned To: nlopess New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-07-30 00:01:58] [EMAIL PROTECTED] Nuno, just commit the patch. I'm too busy. (both HEAD and PHP_5_2) ------------------------------------------------------------------------ [2007-07-28 02:40:49] steffen at hauihau dot de Thanks a lot. configure succeeded with your patch. The following make also succeeds. So, do you plan to integrate this patch in the next release of php, or should I tell the gentoo people maintaining the php ebuild, that they should integrate this patch in their ebuilds for php? Regards, Steffen ------------------------------------------------------------------------ [2007-07-25 13:44:39] [EMAIL PROTECTED] Can you please try this patch: http://gcov.php.net/~nlopess/ldap_ldflags_patch.txt ------------------------------------------------------------------------ [2007-07-24 15:51:08] steffen at hauihau dot de Thanks a lot for your answer. I'm wondering, why configure works fine with this flag set when I invoke it with '--without-ldap'. Every check works, except ldap. When I manually edit configure and add LIBS="$LIBS -ldap" before the checks for the first ldap related tests are done (before 'for ac_func in ldap_parse_result ldap_parse_reference ldap_start_tls_s') it works, and the following make succeeds. My knowledge about compiler and linker is not that big. Would it be the wrong way, to permanently add '-ldap' to $LIBS before the tests for the ldap related functions are done? You could for example backup $LIBS in $ac_check_lib_save_LIBS before. This is only an idea, if it's definitely not possible, to workaround this issue, I will have to file a bug for this gentoo ebuild and they should discuss about this topic. Regards, Steffen ------------------------------------------------------------------------ [2007-07-24 15:26:21] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ 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