Do not let internal JDK zlib symbols leak out of fastdebug

Martin Buchholz martinrb at
Fri Feb 22 22:03:23 UTC 2013

Hi Alan, Xueming, build-ers,

I'd like you to do a code review.

I've finally figured out why fastdebug jdk occasionally gives InternalError
in the zip code.

Exception in thread "main" java.lang.InternalError
at Method)

It's because:
- jdk changed structure size of z_stream struct
- making jdk zlib incompatible with stock zlib
- as a result of which, it is imperative to keep jdk zlib sequestered from
system zlib
- so need to not export zlib symbols from
- so need to tell makefiles to use linker script unconditionally

More information about the core-libs-dev mailing list