Date: Fri, 04 Oct 2013 17:14:58 -0400 From: Jung-uk Kim <jkim@FreeBSD.org> To: Konstantin Belousov <kostikbel@gmail.com>, Sevan / Venture37 <venture37@gmail.com> Cc: jlh@freebsd.org, java@FreeBSD.org Subject: Re: JNA broken with r251668 as libc.so cant be loaded Message-ID: <524F2FD2.3020801@FreeBSD.org> In-Reply-To: <20131004152000.GS41229@kib.kiev.ua> References: <524DFB7D.2000207@gmail.com> <20131004050824.GK41229@kib.kiev.ua> <524E934D.70303@gmail.com> <20131004152000.GS41229@kib.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2013-10-04 11:20:00 -0400, Konstantin Belousov wrote: > On Fri, Oct 04, 2013 at 02:07:09PM +0400, Sevan / Venture37 wrote: >> On 04/10/2013 09:08, Konstantin Belousov wrote: >>> Does the source contain some workaround for Linux, already ? >>> Linux uses script for libc.so for very long time, and should >>> have the same issue unless code explicitely dlopen()s libc.so.6 >>> or such. >> >> >> No >> https://svn.java.net/svn/jna~svn/trunk/jnalib/test/com/sun/jna/LibraryLoadTest.java > >> > I do not know what should I see in the pointer you provided, and > how it implies the answer 'No' to my question. > > I just verified dlopen("libc.so") on some fresh Linux box, and the > function returned expected error '/lib/libc.so: invalid ELF > header'. I haven't verified it but it seems to have special case for Linux. Please see: https://github.com/twall/jna/blob/master/src/com/sun/jna/NativeLibrary.java#L206 https://github.com/twall/jna/blob/master/src/com/sun/jna/NativeLibrary.java#L741 https://github.com/twall/jna/blob/master/src/com/sun/jna/NativeLibrary.java#L768 Jung-uk Kim -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBAgAGBQJSTy/SAAoJEHyflib82/FGiw8H/35A1rnLOGkTWY/kE3C/qmnn kkJnMHzKRlRr6ko44Y9TIjzxb20UDUR4QQZFZMqfnBbbaYgzuAdjgMCG1Q/XcHin UX0jqBqgC/TgXH5CYfTRBvtnNTRYkVQ5SCJCAevr39MvVK6INMc+ogiox1viXwRX CqoKvIarhRSXeYal7O0Tnv6StzlWLM4khmtt/Yc4+DXMnS+wDOH0o8Y+EcML1EQM BwKwnvgPOLTZRKC8adT0Cf1WrWrgJQRAm76RS8UXlj4Bv0YW7qXxjPknAnI855a6 M33cKl7g01FX0QABV66lEwMdjj0oDIFu+z7fou8zvTY6RC+E1EsZcmfICNj4Axs= =wc7o -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?524F2FD2.3020801>