Bug 1538982

Summary: php: some shared objects are linked without -ldl or -lm
Product: [Fedora] Fedora Reporter: Florian Weimer <fweimer>
Component: phpAssignee: Remi Collet <fedora>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: fedora, jorton
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-05-28 19:34:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1538990    

Description Florian Weimer 2018-01-26 10:15:30 UTC
I see the following references which are not properly bound to versioned symbols at static link time (when ld is run):

/usr/lib64/php-zts/modules/exif.so         | {exp}
/usr/lib64/php-zts/modules/gd.so           | {pow}
/usr/lib64/php-zts/modules/interbase.so    | {pow,dlsym}
/usr/lib64/php-zts/modules/pdo_firebird.so | {dlsym}
/usr/lib64/php/modules/exif.so             | {exp}
/usr/lib64/php/modules/gd.so               | {pow}
/usr/lib64/php/modules/interbase.so        | {dlsym,pow}
/usr/lib64/php/modules/pdo_firebird.so     | {dlsym}

The dl* functions come from -ldl, exp and pow come from -lm.

Please link these DSOs to all the shared objects they need.  Not doing so risks crashes at dlopen time.

Comment 1 Remi Collet 2018-01-26 12:04:59 UTC
This should not be a real issue, as all php extension are loaded by the engine which is properly linked against both libraries

BTW, I will slowly fix this upstream


P.S. for other extensions (mostly php-pecl-* packages), a load test is present in %check, so any undefined symbol will break the build.

Comment 2 Florian Weimer 2018-01-26 12:06:22 UTC
(In reply to Remi Collet from comment #1)
> This should not be a real issue, as all php extension are loaded by the
> engine which is properly linked against both libraries

It's still a problem because the references lack the appropriate symbol versions.

Comment 3 Fedora End Of Life 2018-02-20 15:29:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 28 development cycle.
Changing version to '28'.

Comment 4 Ben Cotton 2019-05-02 22:04:50 UTC
This message is a reminder that Fedora 28 is nearing its end of life.
On 2019-May-28 Fedora will stop maintaining and issuing updates for
Fedora 28. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora 'version' of '28'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 28 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Ben Cotton 2019-05-28 19:34:56 UTC
Fedora 28 changed to end-of-life (EOL) status on 2019-05-28. Fedora 28 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.