Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] JNA 5.6.0 failure on linux-x86-64
  • From: Torbjorn SVENSSON <torbjorn.svensson@xxxxxx>
  • Date: Thu, 25 Mar 2021 09:44:47 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=st.com; dmarc=pass action=none header.from=st.com; dkim=pass header.d=st.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MbLQM7QilKOx3+hV3AMckPCs1PMFYvaBsHpXqlxkUoE=; b=kIUL4EHesTuocxHwXKimVcqnTd4eM4QtCTQpq0CzoamCnHmqcTcnmYlLJ1r90Lkyj+NGq0yrP4pG0KO6/YxEf/95NZ9wnxDnIvvhFV23JG5Exs5kmPxkwqcQw4DP5sRR2TzQiBw/imy3YK04624M1lGnChDdwP+vLkGxOTGuYagY82YI3kSJdtc3CHatFRKJR2d0UMTP/9pWRBYPcrI5Nf+WrANIbrp8jokuVIAc4eybuC67y2LW78te2AxVvvXIpOjsM8UNwCU7tGA6Y8NYX7DqX52h3LEuv+o4I1PbCvarjvAqGJavK4MyOkil8qNbv/wRdJtPXiucWc9OLK92DQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LjNXoSQUm00kTVnfuSmaj7uHli/8A5Bo7toROYa2g4MhZKAp4y4ihC0zw8FoVWNzm9ZZ5II51XX6yAEfAAe0s2qurENS7VWjk06BTWfN0VbkoVFCJOc2bREul29GD0F/Tpv8APV+QcD9VoH+kQGAFzlwZfQonMuLJu/2k04cmawM+FdVygKK6Vmapy1OYdWudyBOXucksL7u+Torer27si+kXA6hQIlDiBvxNOq7/LYGodsBR20txKuFCY/gByi8VPguqIvL2QtoTS/Sg3bZWIMzdNagB2rr9qvNiHCFxcEHUrTaLDnPerS+w1zekHVwXxb92Ko2Hq11PG0yEHq3VQ==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXIM/aY2AQvBTsUES09cpnf3EEWaqUZMJw
  • Thread-topic: [cdt-dev] JNA 5.6.0 failure on linux-x86-64

Hello Christian,

In CDT, we are only using JNA for Windows, not Linux or macos.
Regarding the missing library; maybe you should open a issue report on the JNA project itself.
I just took a look at the content of the com.sun.jna_5.6.0.v20200716-0148.jar file and it looks like the libjnidispatch.so file is locate in the root of the tree rather in a sub-directory. Maybe that's the error?

$ unzip -l com.sun.jna_5.6.0.v20200716-0148.jar  | egrep '\.(a|dll|so|jnilib)$'
   207872  2020-08-31 20:01   com/sun/jna/win32-x86/jnidispatch.dll
   487549  2020-08-31 20:01   com/sun/jna/aix-ppc/libjnidispatch.a
   526356  2020-08-31 20:01   com/sun/jna/aix-ppc64/libjnidispatch.a
   180932  2020-08-31 20:01   com/sun/jna/darwin/libjnidispatch.jnilib
   102079  2020-08-31 20:01   com/sun/jna/linux-x86/libjnidispatch.so
   107768  2020-08-31 20:01   com/sun/jna/linux-arm/libjnidispatch.so
   111904  2020-08-31 20:01   com/sun/jna/linux-armel/libjnidispatch.so
   105088  2020-08-31 20:01   com/sun/jna/linux-aarch64/libjnidispatch.so
   123208  2020-08-31 20:01   com/sun/jna/linux-ppc/libjnidispatch.so
   133536  2020-08-31 20:01   com/sun/jna/linux-ppc64le/libjnidispatch.so
   133240  2020-08-31 20:01   com/sun/jna/linux-mips64el/libjnidispatch.so
   132568  2020-08-31 20:01   com/sun/jna/linux-s390x/libjnidispatch.so
   121120  2020-08-31 20:01   com/sun/jna/sunos-x86/libjnidispatch.so
   132352  2020-08-31 20:01   com/sun/jna/sunos-x86-64/libjnidispatch.so
   127616  2020-08-31 20:01   com/sun/jna/sunos-sparc/libjnidispatch.so
   139232  2020-08-31 20:01   com/sun/jna/sunos-sparcv9/libjnidispatch.so
   105753  2020-08-31 20:01   com/sun/jna/freebsd-x86/libjnidispatch.so
   112729  2020-08-31 20:01   com/sun/jna/freebsd-x86-64/libjnidispatch.so
   107877  2020-08-31 20:01   com/sun/jna/openbsd-x86/libjnidispatch.so
   114291  2020-08-31 20:01   com/sun/jna/openbsd-x86-64/libjnidispatch.so
   246784  2020-08-31 20:01   com/sun/jna/win32-x86-64/jnidispatch.dll
   112848  2020-08-31 20:01   libjnidispatch.so

Extracting the libjnidispatch.so from the root gives:
$ unzip -p com.sun.jna_5.6.0.v20200716-0148.jar   libjnidispatch.so | file -
/dev/stdin: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=c87e788d56caa4947f35f2423f9bff5b6eb3a8f8, not stripped

Kind regards,
Torbjörn


-----Original Message-----
From: cdt-dev <cdt-dev-bounces@xxxxxxxxxxx> On Behalf Of Christian Walther
Sent: den 24 mars 2021 18:05
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: [cdt-dev] JNA 5.6.0 failure on linux-x86-64

This may not be the right list to ask because it's only tangentially related to CDT, but maybe the involved people have some insights anyway or can direct me to a better place.

I saw that CDT recently updated JNA to version 5.6.0 (https://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=9c370cfcf02e965950c311adf374d1940d86b16a). When I tried to do the same thing in my own plugins (I don't need it, but I figured it would be a good idea to follow CDT, to eventually reduce the dependency footprint), I noticed that it wouldn't run on my Linux machine: The Native class failed to initialize with an exception "Native library (com/sun/jna/linux-x86-64/libjnidispatch.so) not found in resource path".

Indeed the com.sun.jna_5.6.0.v20200716-0148.jar available from the https://download.eclipse.org/releases/2021-03 p2 repo does not contain linux-x86-64/libjnidispatch.so, while it does contain it for a lot of other OSes/architectures.

Am I doing anything wrong (surely this wouldn't have gone into a release without anyone noticing?), or is that a bug in that particular build of JNA? If so, who do I ping to get it fixed?

Grateful for any clue.

 -Christian

_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev


Back to the top