libfontmanager.so 中的符号 FT_Library_SetLcdFilter 未找到错误:Openjdk JRE

问题描述

我在 01/21 安全补丁更新后从 https://hg.openjdk.java.net/jdk8u/jdk8u/ 编译了 openjdk,当我在 Solaris 中集成 JRE 并使用我的项目进行构建时,我收到了错误,如 libfontmanager.so 中的符号 FT_Library_SetLcdFilter 未找到。以前的 openjdk 二进制文件似乎工作正常。有人知道吗?

Openjdk 内置于 Solaris 10 中,适用于 64 位版本。使用 ldd 检查系统符号:

/usr/ccs/bin/nm -gD libfontmanager.so | grep FT_Library_SetLcdFilter
[45]    |                   0|                   0|FUNC |GLOB |0    |UNDEF  |FT_Library_SetLcdFilter

错误

 [ia] No VM Pack files exist in this directory
       [ia] ChooseBundledVMs:  VMPack (Oracle JRE 1.7.0_60 Mac) not recognized
       [ia] BuildInstaller: Asked to load /bstorage/docusp/RXrs/build/RXrs.iap_xml
       [ia] copying /bstorage/
docusp/RXrs/build/RXrsBuild.iap_xml. Using copy for build.
       [ia] Original project unchanged
       [ia] Unable to invoke the method:
       [ia]     Exec.setCommandLineArgs()
       [ia]     Some installer configuration @R_778_4045@ion may be lost
       [ia] java.lang.NoSuchMethodException
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.c(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.c(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at InstallAnywhere.a(DashoA10*..)
       [ia]     at InstallAnywhere.main(DashoA10*..)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       [ia]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       [ia]     at java.lang.reflect.Method.invoke(Method.java:498)
       [ia]     at com.zerog.lax.LAX.launch(DashoA10*..)
       [ia]     at com.zerog.lax.LAX.main(DashoA10*..)
       [ia] Unable to invoke the method:
       [ia]     Exec.setStdoutvar()
       [ia]     Some installer configuration @R_778_4045@ion may be lost
       [ia] java.lang.NoSuchMethodException
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.c(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.c(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at InstallAnywhere.a(DashoA10*..)
       [ia]     at InstallAnywhere.main(DashoA10*..)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       [ia]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       [ia]     at java.lang.reflect.Method.invoke(Method.java:498)
       [ia]     at com.zerog.lax.LAX.launch(DashoA10*..)
       [ia]     at com.zerog.lax.LAX.main(DashoA10*..)
       [ia] Unable to invoke the method:
       [ia]     Exec.setStderrVar()
       [ia]     Some installer configuration @R_778_4045@ion may be lost
       [ia] java.lang.NoSuchMethodException
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.c(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.c(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at InstallAnywhere.a(DashoA10*..)
       [ia]     at InstallAnywhere.main(DashoA10*..)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       [ia]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       [ia]     at java.lang.reflect.Method.invoke(Method.java:498)
       [ia]     at com.zerog.lax.LAX.launch(DashoA10*..)
       [ia]     at com.zerog.lax.LAX.main(DashoA10*..)
       [ia] Unable to invoke the method:
       [ia]     Exec.setExitCodeVar()
       [ia]     Some installer configuration @R_778_4045@ion may be lost
       [ia] java.lang.NoSuchMethodException
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.c(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGgn.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at ZeroGl5.c(DashoA10*..)
       [ia]     at ZeroGl5.a(DashoA10*..)
       [ia]     at InstallAnywhere.a(DashoA10*..)
       [ia]     at InstallAnywhere.main(DashoA10*..)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       [ia]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
       [ia]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       [ia]     at java.lang.reflect.Method.invoke(Method.java:498)
       [ia]     at com.zerog.lax.LAX.launch(DashoA10*..)
       [ia]     at com.zerog.lax.LAX.main(DashoA10*..)
       [ia] IAResourceBundle: create resource bundle: de
       [ia] IAResourceBundle: create resource bundle: fr
       [ia] IAResourceBundle: create resource bundle: ja
       [ia] This project Leverages AWT support,which is no longer supported. AWT will be replaced with Swing support.
       [ia] This project accepts VMs prior to 1.4,which are no longer supported. The project will be updated to require Java 1.4 or newer.
       [ia] ld.so.1: java: fatal: relocation error: file /common/java/jdk1.8.0_0221/jre/lib/amd64/libfontmanager.so: symbol FT_Library_SetLcdFilter: referenced symbol not found
       [ia] Result: 9

解决方法

应该在 libfreetype.so 库中找到该函数,版本 2.3.0(2007 年发布)或更高版本。