Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Nov 2020 02:13:35 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 251283] x11-toolkits/swt  libjawt.so => not found (0) ; openjdk8 libraries not in ELF LD search path ; propose set rpath
Message-ID:  <bug-251283-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D251283

            Bug ID: 251283
           Summary: x11-toolkits/swt  libjawt.so =3D> not found (0) ;
                    openjdk8 libraries not in ELF LD search path ; propose
                    set rpath
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: makc@FreeBSD.org
          Reporter: alt2600@icloud.com
             Flags: maintainer-feedback?(makc@FreeBSD.org)
          Assignee: makc@FreeBSD.org

Created attachment 219847
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D219847&action=
=3Dedit
patch-make_freebsd.mak

not sure it matters but I'm still running 12.1 amd64, the pending errata on=
 zfs
for 12.2 was a deal breaker for me for the time being and haven't checked it
since 12.2 release. possibly its time to upgrade.

with the latest update swt builds and installs but=20

|/usr/ports/x11-toolkits/swt|$} ldd /usr/local/lib/libswt-awt-gtk-411.so=20
/usr/local/lib/libswt-awt-gtk-411.so:
        libjawt.so =3D> not found (0)
        libc.so.7 =3D> /lib/libc.so.7 (0x80024a000)

I checked and maybe its my system but openjdk8 is not included in the ELF LD
search path on my system. So I added -Wl,-rpath,$(AWT_LIB_PATH) to AWT_LFLA=
GS
to set the library path for libswt-awt-gtk-411.so during linking

not sure if openjdk8 is supposed to be in the elf search path or not, but
reinstalling it didn't seem to fix anything even after a shutdown and retur=
ning
to multi-user. ie restarting the ldconfig service. /usr/local/openjdk8 does=
n't
seem to be searched unless maybe forced with ldconfig_local_dirs

after building with the changed linker flags for AWT this is the output of =
ldd

|/usr/ports/x11-toolkits/swt|$} ldd /usr/local/lib/libswt-awt-gtk-411.so
/usr/local/lib/libswt-awt-gtk-411.so:
        libjawt.so =3D> /usr/local/openjdk8/jre/lib/amd64/libjawt.so
(0x800673000)
        libc.so.7 =3D> /lib/libc.so.7 (0x80024a000)
        libawt.so =3D> /usr/local/openjdk8/jre/lib/amd64/libawt.so (0x80067=
7000)
        libawt_xawt.so =3D> /usr/local/openjdk8/jre/lib/amd64/libawt_xawt.so
(0x800749000)
        libjava.so =3D> /usr/local/openjdk8/jre/lib/amd64/libjava.so
(0x8007aa000)
        libjvm.so =3D> not found (0)
        libjvm.so =3D> not found (0)
        libm.so.5 =3D> /lib/libm.so.5 (0x800e00000)
        libXext.so.6 =3D> /usr/local/lib/libXext.so.6 (0x8007d5000)
        libX11.so.6 =3D> /usr/local/lib/libX11.so.6 (0x800e32000)
        libXrender.so.1 =3D> /usr/local/lib/libXrender.so.1 (0x8007ea000)
        libdl.so.1 =3D> /usr/lib/libdl.so.1 (0x8007f7000)
        libXtst.so.6 =3D> /usr/local/lib/libXtst.so.6 (0x800f7b000)
        libXi.so.6 =3D> /usr/local/lib/libXi.so.6 (0x800f84000)
        libjvm.so =3D> not found (0)
        libthr.so.3 =3D> /lib/libthr.so.3 (0x800f96000)
        libjvm.so =3D> not found (0)
        libverify.so =3D> /usr/local/openjdk8/jre/lib/amd64/libverify.so
(0x800fc2000)
        libxcb.so.1 =3D> /usr/local/lib/libxcb.so.1 (0x800ff6000)
        libjvm.so =3D> not found (0)
        libXau.so.6 =3D> /usr/local/lib/libXau.so.6 (0x8007fb000)
        libXdmcp.so.6 =3D> /usr/local/lib/libXdmcp.so.6 (0x801023000)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-251283-7788>