Integrated: 8305858: Resolve multiple definition of 'handleSocketError' when statically linking with JDK native libraries

Jiangli Zhou jiangli at openjdk.org
Wed Apr 12 20:45:42 UTC 2023


On Wed, 12 Apr 2023 03:20:47 GMT, Jiangli Zhou <jiangli at openjdk.org> wrote:

> Rename 'handleSocketError' to 'sctpHandleSocketError' in libsctp. This resolves the related duplicate symbol failures when both libnio and libsctp are statically linked with the launcher.
> 
> Remove #include "nio_util.h" from SctpChannelImpl.c and SctpNet.c. Looks like that's only needed for handleSocketError() declaration. Declare sctpHandleSocketError() in Sctp.h.
> 
> (Sorry about the earlier RFR/Withdrawn noise.)

This pull request has now been integrated.

Changeset: 2bbbff20
Author:    Jiangli Zhou <jiangli at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2bbbff209dc21633e08fe4d565dfc649eea2c883
Stats:     20 lines in 3 files changed: 0 ins; 4 del; 16 mod

8305858: Resolve multiple definition of 'handleSocketError' when statically linking with JDK native libraries

Reviewed-by: alanb

-------------

PR: https://git.openjdk.org/jdk/pull/13438



More information about the security-dev mailing list