Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2020 18:43:12 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 246462] rtld/dlopen incorrect resolution of symbols [RTLD_DEEPBIND]
Message-ID:  <bug-246462-227-yCVoa4mjhD@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-246462-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-246462-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D246462

--- Comment #5 from Martin Birgmeier <d8zNeCFG@aon.at> ---
Well, I can't "show the minimal example that worked and then stopped" becau=
se I
only inferred that it has been working at some previous time from the code =
of
mysql_fdw I quoted.

RTLD_DEEPBIND is described in https://linux.die.net/man/3/dlopen

But what you write might be the solution. Does it mean that if the library
built by mysql57-client is linked with -Bsymbolic it will, when loaded,
preferentially resolve the symbols it requires with those found in the libr=
ary
itself? Basically what is required that mysql_fdw resolves its symbols in t=
he
standard way (thereby normally to the libraries installed by
postgresql12-client and any other libraries) and only the symbols in
libmysqlclient.so should be resolved preferentially to those in
libmysqlclient.so itself.

If yes then the linker flags in databases/mysql57-client need to be changed.

-- Martin

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-246462-227-yCVoa4mjhD>