Bug 1218466 - openjfx cannot run application missing symbol XOpenDisplay
Summary: openjfx cannot run application missing symbol XOpenDisplay
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Development (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Rich Coe
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-01 22:58 UTC by Rich Coe
Modified: 2024-01-01 23:20 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
testcase (623 bytes, text/x-java)
2024-01-01 23:20 UTC, Rich Coe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Coe 2024-01-01 22:58:22 UTC
I'm building an app with openjfx.  
I installed openjfx-17.0.7.0-1.5.x86_64 and openjfx-devel-17.0.7.0-1.5.x86_64

When I run my app I get:
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib64/openjfx/libglass.so: /usr/lib64/openjfx/libglass.so: undefined symbol: XOpenDisplay

$ ldd /usr/lib64/openjfx/libglass.so 
        linux-vdso.so.1 (0x00007ffe7335d000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f25c5600000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f25c59eb000)

I added /lib64/libX11.so with LD_PRELOAD and I get:
Caused by: java.lang.UnsatisfiedLinkError: /usr/lib64/openjfx/libglassgtk3.so: /usr/lib64/openjfx/libglassgtk3.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE

So c++ deps are missing too.

I built openjfx from source and libglass.so has:
$ ldd libglass.so 
        linux-vdso.so.1 (0x00007ffc3b450000)
        libX11.so.6 => /lib64/libX11.so.6 (0x00007f04e2f9a000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f04e2eb3000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f04e2c00000)
        libxcb.so.1 => /lib64/libxcb.so.1 (0x00007f04e2e86000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f04e311e000)
        libXau.so.6 => /lib64/libXau.so.6 (0x00007f04e2e81000)

I looked at the openjfx src rpm, and it's using maven to build.
That may be the difference between openjfx-17 and openjfx-current.
I'm not sure what to do to fix the issue.
Comment 1 Rich Coe 2024-01-01 23:20:34 UTC
Created attachment 871606 [details]
testcase