tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: devel/libnet wrecks libreoffice build
Hi,
Please try openjdk11-1.11.0.11.9nb1.
It should work when devel/libnet is installed.
Thank you.
Ryo ONODERA <ryo%tetera.org@localhost> writes:
> Hi,
>
> Emmanuel Dreyfus <manu%netbsd.org@localhost> writes:
>
>> Hello
>>
>> I am not sure of how that should be fixed. libreoffice's configure fails
>> because java is not usable:
>>
>> configure:42319: /usr/pkg/bin/ant -buildfile conftest.xml 1>&2
>> Error: LinkageError occurred while loading main class org.apache.tools.ant.launc
>> h.Launcher
>> java.lang.UnsatisfiedLinkError: /usr/pkg/java/openjdk11/lib/libnio.so: /usr/pkg/java/openjdk11/lib/libnio.so: Undefined PLT symbol "reuseport_available" (symnum = 4)
>>
>> reuseport_available is defined in /usr/pkg/java/openjdk11/lib/libnet.so
>> But libnet.so from devel/libnet is used instead:
>>
>> $ ldd /usr/pkg/java/openjdk11/lib/libnio.so|grep libnet
>> -lnet => /usr/pkg/lib/libnet.so
>>
>> If I run pkg_delete libnet, libreoffice's configure will succeed. But shoulnd't buildlink avoid this kind of troubles?
>
> libnet.so is referenced via libnio.so and rpath of libnio.so is wrong.
> libnio.so should not have /usr/pkg/lib in rpath.
> I have not sure I can fix this problem, however I will investigate
> this problem.
>
> Thank you.
>
> $ readelf -Wd /usr/pkg/java/openjdk11/lib/libnio.so
>
> Dynamic section at offset 0xda88 contains 24 entries:
> Tag Type Name/Value
> 0x0000000000000001 (NEEDED) Shared library: [libjava.so]
> 0x0000000000000001 (NEEDED) Shared library: [libnet.so]
> 0x0000000000000001 (NEEDED) Shared library: [libpthread.so.1]
> 0x0000000000000001 (NEEDED) Shared library: [libc.so.12]
> 0x000000000000000e (SONAME) Library soname: [libnio.so]
> 0x000000000000000f (RPATH) Library rpath: [/usr/pkg/lib:/usr/pkg/java/openjdk11/lib:/usr/pkg/java/openjdk11/lib/server]
> 0x000000000000000c (INIT) 0x4d60
> 0x000000000000000d (FINI) 0xae10
> 0x0000000000000004 (HASH) 0x200
> 0x0000000000000005 (STRTAB) 0x2470
> 0x0000000000000006 (SYMTAB) 0xa78
> 0x000000000000000a (STRSZ) 7664 (bytes)
> 0x000000000000000b (SYMENT) 24 (bytes)
> 0x0000000000000003 (PLTGOT) 0x20dc48
> 0x0000000000000002 (PLTRELSZ) 2664 (bytes)
> 0x0000000000000014 (PLTREL) RELA
> 0x0000000000000017 (JMPREL) 0x42f0
> 0x0000000000000007 (RELA) 0x4260
> 0x0000000000000008 (RELASZ) 144 (bytes)
> 0x0000000000000009 (RELAENT) 24 (bytes)
> 0x0000000000000018 (BIND_NOW)
> 0x000000006ffffffb (FLAGS_1) Flags: NOW
> 0x000000006ffffff9 (RELACOUNT) 1
> 0x0000000000000000 (NULL) 0x0
>
>
>> --
>> Emmanuel Dreyfus
>> manu%netbsd.org@localhost
>
> --
> Ryo ONODERA // ryo%tetera.org@localhost
> PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
--
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB FD1B F404 27FA C7D1 15F3
Home |
Main Index |
Thread Index |
Old Index