You are not logged in.

#1 2021-10-18 08:44:42

drslmr
Member
Registered: 2011-05-14
Posts: 21

undefined symbol: ipv6_available

Hi,

since some time I get the following error:

/usr/lib/jvm/java-17-jdk/bin/jar -tf /dev/zero
Error: Unable to load main class sun.tools.jar.Main in module jdk.jartool
	java.lang.UnsatisfiedLinkError: /usr/lib/jvm/java-17-jdk/lib/libnio.so: /usr/lib/jvm/java-17-jdk/lib/libnio.so: undefined symbol: ipv6_available

This happens for different jar files and even for /dev/zero.

kernel:  5.14.12-arch1-1,
jre, jdk: 17-1

I could not find where the symbol: ipv6_available is supossed to be
defined.

kernel:  5.14.12-arch1-1, jre, jdk 17-1

I tried downgrading jdk and jre to 16-1, but no difference.

Offline

#2 2021-10-21 17:48:00

dbermond
Trusted User (TU)
Registered: 2017-05-06
Posts: 26
Website

Re: undefined symbol: ipv6_available

It looks like that your java installation is flawed or misconfigured.

Avoid executing the 'jar' executable directly with the full path specification.

Instead, manage your JVMs with archlinux-java and execute the desired binary without the full path.

For example:

# archlinux-java set java-17-openjdk
$ jar --version

Offline

#3 2021-10-22 12:37:47

drslmr
Member
Registered: 2011-05-14
Posts: 21

Re: undefined symbol: ipv6_available

Thanks for the information.
That is what I tried in the first place.
Then I just wanted to make sure which java is used.
I found now that it works with jdk-openjdk.

Offline

#4 2021-11-12 09:20:04

drslmr
Member
Registered: 2011-05-14
Posts: 21

Re: undefined symbol: ipv6_available

I found how to work around: https://aur.archlinux.org/packages/eclipse-java/#news

I needed to add the server path to the LD_LIBRARY_PATH.

Offline

Board footer

Powered by FluxBB