Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 May 2020 11:22:59 +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-36xn6oz5Mz@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 #7 from Martin Birgmeier <d8zNeCFG@aon.at> ---
Created attachment 214517
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D214517&action=
=3Dedit
patches to upgrade postgresql-mysql_fdw from 2.5.1 to 2.5.3, updated

Hi Konstantin,

That was quick - and D24841 is a nice trick!

I applied the patches from D24841 and reinstalled libexec/ld-elf.so.1,
libexec/ld-elf32.so.1, and usr/include/dlfcn.h. (I had to adapt them minima=
lly
to apply to releng/12.1.) I also modified the port to use RTLD_DEEPBIND for
FreeBSD - the new patches are included.

And voila, it is working!

Nonetheless, your original remarks show the better solution: libmysqlclient=
.so
should be compiled with -Bsymbolic (I did not do this in the test above, to=
 be
sure). Is there a way to set this flag directly on an already installed .so
file?

Thank you,

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-36xn6oz5Mz>