> On 2 Feb 2017, at 13:07, Magnus Ihse Bursie <magnus.ihse.bur...@oracle.com> > wrote: > > When building with Solaris Studio 12u4, linking of unpack200 fails. The fix > is to include "environ" in the mapfile. > > This patch is contributed by Douglas Simon.
For full disclosure, the original patch and discovery was by Stefan Anzinger. > > Bug: https://bugs.openjdk.java.net/browse/JDK-8172548 > Patch inline: > diff --git a/make/mapfiles/libunpack/mapfile-vers-unpack200-solaris-sparc > b/make/mapfiles/libunpack/mapfile-vers-unpack200-solaris-sparc > --- a/make/mapfiles/libunpack/mapfile-vers-unpack200-solaris-sparc > +++ b/make/mapfiles/libunpack/mapfile-vers-unpack200-solaris-sparc > @@ -28,6 +28,7 @@ > SUNWprivate_1.1 { > global: > # These are needed by the c runtime in SS12u4 > + environ; > _environ; > __environ_lock; > ___Argv; > > > /Magnus