-
-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LinkError on GUI apps on MacOS #489
Comments
From @Diagoras on September 6, 2018 16:53 FWIW, I'm having the same issue. It's currently blocking us from migrating an application to AdoptOpenJDK. |
@johnoliver LMK if you want this moved to the build repo as a bug |
From @johnoliver on September 7, 2018 12:15 I think this was fixed, can you try a recent binary from https://github.com/AdoptOpenJDK/openjdk8-binaries/releases |
From @Diagoras on September 10, 2018 19:36 @johnoliver Hey, I tried with the Hotspot jdk8u-2018-07-26-16-12 release for MacOS, but ran into the same issue. Specifically: Fatal(java.lang.UnsatisfiedLinkError: /Users/[username]/Downloads/jdk8u181-b13/jre/lib/libfontmanager.dylib: dlopen(/Users/[username]/Downloads/jdk8u181-b13/jre/lib/libfontmanager.dylib, 1): Library not loaded: @rpath/libfreetype.6.dylib
Referenced from: /Users/[username]/Downloads/jdk8u181-b13/jre/lib/libfontmanager.dylib
Reason: image not found
) Can we reopen this issue? |
Reopened, but I'll shift it to the build repo |
Seeing a possibly related error on MacOS 10.13.6 using AdoptOpenJDK jdk8u172-b11 Stacktrace |
Problem still exists with the jdk8u181-b13 build:
Actual lib name does not match rpath:
|
Just ran into this issue because we have a dependency on Apache POI, so we cannot migrate to adopt open jdk 8... |
Is there a short/simple reproducible I can try? |
Here a basic example of what triggers the exception: The example does run on an Oracle jdk8. Stack trace when running the test: runningPoiResultsInLinkError(com.example.poi.link.PoiLinkTest) Time elapsed: 0.958 sec <<< ERROR! |
Same thing here, Swing doesn't work with
|
I have the same Issue. Even with code as simple as this (running with Netbeans):
I cannot migrate to AdoptOpenJDK because of this. |
The workaround is to create a symlink: libfreetype.6.dylib -> libfreetype.dylib.6 |
@slandelle Is the root cause just that the filename has "6" and "dylib" in the wrong order? Because that's be pretty funny, and hopefully an easy fix. |
It appears to be a subtle difference between versions of Mac OS X. Hope to have this resolved next week for future builds! |
It Works here. I hope it helps to fix the issue soon. |
Trying to run Groovy's
Creating the symlink as suggested by @Cynthiahaha helps. This |
On non-macOS UNIX-like operating systems, the shared library suffix is "so" and it occurs before any version number (e.g. "libfreetype.so.6"). On macOS, the dynamic library suffix is "dylib" and it occurs after the optional major version number (e.g. "libfreetype.6.dylib"). All versions of macOS follow this convention. Probably there is somewhere in the build system where an assumption that the version number should appear after the suffix is incorrectly being applied when building on macOS. |
@helenmasters @justinnichols @ryandesign @breun @Cynthiahaha @gabibau et all can you please try Can you try the JDK/JRE at: https://ci.adoptopenjdk.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-mac-x64-hotspot/148/ |
@karianna They seem to fix the issue I had with running I did notice these builds have both
Is this necessary/intentional? |
@johnoliver Same question as other issue. |
think this is done |
can it be closed @johnoliver |
I think so, can be reopened if someone has an issue |
From @helenmasters on September 5, 2017 13:7
We are seeing an issue on OSX when we try to run any GUI applications. It looks as though /Users/jenkins/workspace is hardcoded so cannot be resolved on the user's machine.
Here is the output from the otool command suggesting that the path is incorrect...
Copied from original issue: AdoptOpenJDK/openjdk-jdk8u-backup#4
The text was updated successfully, but these errors were encountered: