From owner-freebsd-java@FreeBSD.ORG Fri Oct 4 15:20:10 2013 Return-Path: Delivered-To: java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CFD3B37F; Fri, 4 Oct 2013 15:20:10 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 423CC23A5; Fri, 4 Oct 2013 15:20:10 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.7/8.14.7) with ESMTP id r94FK0Ra066737; Fri, 4 Oct 2013 18:20:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.8.3 kib.kiev.ua r94FK0Ra066737 Received: (from kostik@localhost) by tom.home (8.14.7/8.14.7/Submit) id r94FK0FJ066731; Fri, 4 Oct 2013 18:20:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 4 Oct 2013 18:20:00 +0300 From: Konstantin Belousov To: Sevan / Venture37 Subject: Re: JNA broken with r251668 as libc.so cant be loaded Message-ID: <20131004152000.GS41229@kib.kiev.ua> References: <524DFB7D.2000207@gmail.com> <20131004050824.GK41229@kib.kiev.ua> <524E934D.70303@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="V25oM+p0gSikHNMC" Content-Disposition: inline In-Reply-To: <524E934D.70303@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on tom.home Cc: jlh@freebsd.org, java@FreeBSD.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Oct 2013 15:20:10 -0000 --V25oM+p0gSikHNMC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 >=20 > No > https://svn.java.net/svn/jna~svn/trunk/jnalib/test/com/sun/jna/LibraryLoa= dTest.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'. --V25oM+p0gSikHNMC Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (FreeBSD) iQIcBAEBAgAGBQJSTtyfAAoJEJDCuSvBvK1BH54P/iyv7W4SyRDlM+KVjdwi4Sj3 cJPXgj6TxLz3UxE6uPI5khEbW6ru/95xJwRoRxCtWouWZ12fAqS7YfXvSalln48C GBVvPlKPSt145qpmYeSaFaF+PRVvCDbhtE8nWdRumZBbRd895tobOCiEYKSMuKw5 rR2ibuG3t+Sg0gfA+Z0QD/OL5E7o/tlJ6XuyTM72G2wghG5R5ujcvX2Ud+RDhmNw d5ATZcZ5oN7LY8VF6TCHnKrPtMZVZTr7JRasm8TSDr39asA/nHQcGTU97266vkPA V4MoasMgcK40uP8IPO8NZTbqYrq0BJtRzLR2I/TzFceYxZTkbOrP6jTNzBhxp2Ys TQKS99+tMdFa6BQxr7eAhnQJnTrsCYJVKTS70OqB5O4XXAM9n4UGmmWhqTZIeztL Q2ZcGKZlQTmy12cAheXLDZjfoOyHgsjDDbqYd7g2ifuMoqNksYFY7WQTbVNHMGKE cfKLcqfXv4AUPMNkk0sk1jkeKHgiqtYJxHQTKs7S2kWcahb/F/btuhWiHGPwwSpC H0FrBZ4/4PNWEiXp1cP39QPRYo6Q739unm4BuLOx5CxhwUzRzG3nFmmAL5C5G4hT Jj1H6ojR58Z1agFIIwjn9HCRPEbtpwgaUKyheLRWHTBTrk20eXE17D0MlTzPdNrY mhcBMsdpWmaR36M2zTb4 =MRDc -----END PGP SIGNATURE----- --V25oM+p0gSikHNMC--