#42374 [Opn->Fbk]: --as-needed bug - follow-up
| From: | jani@php.net | Date: | Thu, 23 Aug 2007 10:38:25 +0000 |
| Subject: | #42374 [Opn->Fbk]: --as-needed bug - follow-up | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-116535@lists.php.net to get a copy of this message | ||
ID: 42374
Updated by: jani@php.net
Reported By: galtgendo at o2 dot pl
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: gentoo linux
PHP Version: 5.2.3
New Comment:
PHP_CHECK_LIBRARY restores the LDFLAGS after doing the test so it
shouldn't be any problem?
And bug #41973 was about ext/ldap and that was fixed.
I'd fix these case by case rather than blindly changing places unlikely
to even cause any problems.
Previous Comments:
------------------------------------------------------------------------
[2007-08-22 15:40:41] galtgendo at o2 dot pl
Well, I'm not 100%, if I was, I would mentioned it, not asked for
futher testing.
And AFAIK that commit from bug #41973 was only
http://cvs.php.net/viewvc.cgi/php-src/ext/ldap/config.m4?r1=1.44&r2=1.45&diff_format=u
so only about ext/ldap/config.m4 (as in my patch).
What's more, although I can't recall if it made any difference you
should consider changes in acinclude.m4, cause in PHP_CHECK_LIBRARY
macro you were adding libraries to LDFLAGS instead of LIBS and that's
most common source of --as-needed bugs. That's why I'm talking about
false negatives - standard configure check would put those libraries in
wrong place and check would fail even if the library was OK.
------------------------------------------------------------------------
[2007-08-22 14:46:27] jani@php.net
And have you even tested what was committed in our CVS?
------------------------------------------------------------------------
[2007-08-22 14:45:33] jani@php.net
FYI: this is not bugzilla and it's not annoying. It's just old. :)
And about your patch..are you really sure you need to change all those
places?
------------------------------------------------------------------------
[2007-08-22 10:30:40] galtgendo at o2 dot pl
As I don't see a way to attach anything here, I'll give you a link to
an old gentoo bug with my patch. It's
http://bugs.gentoo.org/show_bug.cgi?id=151444
It's an old bug so it still covers the part from the closed bug.
BTW your bugzilla is REALLY annoying.
------------------------------------------------------------------------
[2007-08-22 09:57:33] galtgendo at o2 dot pl
Description:
------------
Recently closed bug #41973 may not cover all the issues.
I have a patch that doesn't seem to break anything for me and AFAIK
solves all potential issues. The --as-needed bugs happen mostly when you
use libtool and add -L and -l to LDFLAGS instead of LIBS. So by the use
of grep I tried to change all the macros that seem to do that. I hope I
didn't break anything, however somebody should check that, cause 'works
for me'!='it works'. At least look at acinclude.m4, cause that one may
lead to false negatives with library detection.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=42374&edit=1