Linking error OpenJDK 9 mobile for iOS x64_64
Gary Adams
gary.adams at oracle.com
Tue Mar 7 16:43:26 UTC 2017
Are you using an exported symbols list in the link step?
You can simply delete those symbols from the exported symbols file.
The default proxy selector is usually implemented in
jdk/src/java.base/<platform-os>/native/libnet/DefaultProxySelector.c
The makefile excludes DefaultProxySelector so the macosx version is not
used,
because it uses interfaces not available on ios.
jdk/make/lib/NetworkingLibraries.gmk
On 3/7/17, 11:16 AM, Tobi wrote:
> Hello,
>
> I just successfully built the OpenJDK 9 for iOS (x86_64) but when I try the Xcode sample project to run on the iOS simulator I get the following linking error:
>
>
> Undefined symbols for architecture x86_64:
> "_Java_sun_net_spi_DefaultProxySelector_init", referenced from:
> -exported_symbol[s_list] command line option
> "_Java_sun_net_spi_DefaultProxySelector_getSystemProxies", referenced from:
> -exported_symbol[s_list] command line option
> ld: symbol(s) not found for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see invocation
>
>
>
> Can any body give me a hint what to do now?
>
> Thank you very much.
>
> Best regards,
> Tobi
>
>
>
More information about the mobile-dev
mailing list