Red Hat Bugzilla – Bug 1312151
Symbols verion behavior changed and breaks linking against libmysqlclient.so
Last modified: 2017-12-12 06:03:59 EST
Created attachment 1130663 [details]
reproducer.sh that compiles example app
Description of problem:
In F24 behavior of linker changed somehow, which breaks linking against mariadb's client library:
I've reproduced it with the files that I'll attach. It shows that the application linking with a library does not work in runtime on F24. The same reproducer works fine in F23.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
2. LD_LIBRARY_PATH="." ./testhello
3. LD_LIBRARY_PATH="." ldd -r ./testhello
$> LD_LIBRARY_PATH="." ./testhello
./testhello: relocation error: ./testhello: symbol hello, version libhello_1 not defined in file libhello.so.0 with link time reference
$> LD_LIBRARY_PATH="." ldd -r ./testhello
libhello.so.0 => ./libhello.so.0 (0x00007f5455da6000)
libc.so.6 => /lib64/libc.so.6 (0x00007f54559ca000)
symbol hello, version libhello_1 not defined in file libhello.so.0 with link time reference (./testhello)
no error during linking
Created attachment 1130664 [details]
Created attachment 1130665 [details]
header file for example library
Created attachment 1130666 [details]
version script used for linking
Created attachment 1130667 [details]
test app that links against test library
The bug appears to have already been reported as FSF PR 19698:
So I have taken the patch from there and applied it to the Fedora binutils sources.
Thanks, scratch build seems fine, now proper build is on the way:
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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'
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 25 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.
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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
Thank you for reporting this bug and we are sorry it could not be fixed.