Bug #80402 [Csd]: configure filtering out -lpthread
Edit report at https://bugs.php.net/bug.php?id=80402&edit=1
ID: 80402
Updated by: nikic@php.net
Reported by: bjornar dot ness at gmail dot com
Summary: configure filtering out -lpthread
Status: Closed
Type: Bug
Package: *Configuration Issues
Operating System: linux
PHP Version: Irrelevant
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
I've dropped the -lpthread stripping for now ... might have to revert is someone reports issues
with that change.
Previous Comments:
------------------------------------------------------------------------
[2020-11-26 10:56:28] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=ea372e74634f14bdb534f4921e1e325e3f589c8f
Log: Fix bug #80402: Don't strip -lpthread
------------------------------------------------------------------------
[2020-11-24 11:27:48] nikic@php.net
The following pull request has been associated:
Patch Name: Don't strip -lpthread
On GitHub: https://github.com/php/php-src/pull/6450
Patch: https://github.com/php/php-src/pull/6450.patch
------------------------------------------------------------------------
[2020-11-24 11:12:03] nikic@php.net
Ah no, that one was about -pthread, not -lpthread. I presume lpthread is getting stripped out by
_PHP_ADD_LIBRARY_SKELETON. That logic was originally added 20 years ago with: https://github.com/php/php-src/commit/f9e375f493a1aeacbbcc8f2f00880d05b4ba7aaf
I have no idea why it is there.
------------------------------------------------------------------------
[2020-11-24 11:06:02] nikic@php.net
Which PHP version are you using? (In particular wondering if you have https://github.com/php/php-src/commit/c518932c0326a938f0fd0254f2adb03b1cddfbca,
which is in 7.4.)
------------------------------------------------------------------------
[2020-11-23 01:19:52] bjornar dot ness at gmail dot com
The only, but ugly, way I have managed to find around this atm is:
LIBS="-lpthread" LDFLAGS="-Wl,--start-group" /path/to/configure
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=80402
--
Edit this bug report at https://bugs.php.net/bug.php?id=80402&edit=1
Thread (7 messages)