php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67635 php links to systemd libraries without using pkg-config
Submitted: 2014-07-16 17:53 UTC Modified: 2014-07-19 16:35 UTC
Votes:4
Avg. Score:4.0 ± 0.7
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:4 (100.0%)
From: pacho at gentoo dot org Assigned: remi
Status: Closed Package: Compile Failure
PHP Version: 5.5.14 OS: Linux
Private report: No CVE-ID:
 [2014-07-16 17:53 UTC] pacho at gentoo dot org
Description:
------------
As reported downstream to:
https://bugs.gentoo.org/show_bug.cgi?id=502516

in systemd-209 the libsystemd-* libraries were removed and replaced with single libsystemd. We install compatibility libsystemd-*.pc pkg-config files, so apps using pkg-config are not affected (yet :)).

Since this package tries to link libsystemd-daemon directly, it fails terribly with >=systemd-209.

The possibilities are:

1. use pkg-config to query libsystemd-daemon -- compatible with all versions but at some point we will be removing compat pkg-config files,

2. use pkg-config to query libsystemd, fallback to querying libsystemd-daemon -- future- and backwards-compatible,

3. just use libsystemd, and dep on >=systemd-209

Preferably, always use pkg-config :) Attached patch could be used


Patches

php-fpm-systemd-pkg-config.patch (last revision 2014-07-16 17:53 UTC) by pacho at gentoo dot org)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-19 16:35 UTC] remi@php.net
-Assigned To: +Assigned To: remi
 [2014-07-19 16:35 UTC] remi@php.net
Patch seems ok
Tested with Fedora 20 (v208) and 21 (v215).

Minor cosmetic : nothing in configure output about the check, I will apply your patch and add a simple message
 [2014-07-19 16:47 UTC] remi@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b6031567251ad47132de23f47eb57951fd9b563
Log: Fixed bug #67635 php links to systemd libraries without using pkg-config
 [2014-07-19 16:47 UTC] remi@php.net
-Status: Assigned +Status: Closed
 [2014-07-20 09:17 UTC] remi@php.net
Seems better to also use pkg-config for systemd < 209

http://git.php.net/?p=php-src.git;a=commitdiff;h=658f7d77f9eb447ecc2f9812d46b4c07bb99b16d
 [2014-07-21 09:30 UTC] ab@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b6031567251ad47132de23f47eb57951fd9b563
Log: Fixed bug #67635 php links to systemd libraries without using pkg-config
 [2014-07-21 10:02 UTC] ab@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b6031567251ad47132de23f47eb57951fd9b563
Log: Fixed bug #67635 php links to systemd libraries without using pkg-config
 [2014-07-22 11:42 UTC] dmitry@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b6031567251ad47132de23f47eb57951fd9b563
Log: Fixed bug #67635 php links to systemd libraries without using pkg-config
 [2014-07-30 09:52 UTC] tyrael@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b6031567251ad47132de23f47eb57951fd9b563
Log: Fixed bug #67635 php links to systemd libraries without using pkg-config
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Tue Aug 29 15:01:52 2017 UTC