[Bug 1413] IcedTea 3; OpenJDK 8 undefined reference to libz during link of unpack200

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Aug 25 12:23:01 UTC 2014


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1413

helpcrypto at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |helpcrypto at gmail.com

--- Comment #3 from helpcrypto at gmail.com ---
Hi.

I'm also able to reproduce this on my Ubuntu 14.04 x86 clean install.

What i have done so far:
./autogen.sh
./configure --with-jdk-home=/usr/lib/jvm/default-java --disable-docs
make


Result:
...
make[3]: Entering directory `/home/user/Desktop/icedtea/openjdk-boot/jdk/make'
echo  "Linking executable unpack200"
Linking executable unpack200
/usr/bin/gcc-4.8 -lz -Xlinker --hash-style=both -Xlinker -z -Xlinker defs
-Xlinker -O1 -Xlinker --allow-shlib-undefined -Xlinker -soname=libunpack.so
-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$ORIGIN -lc -Xlinker
-version-script=/home/user/Desktop/icedtea/openjdk-boot/jdk/make/mapfiles/libunpack/mapfile-vers-unpack200
-o /home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/unpack200
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/bands.o
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/bytes.o
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/coding.o
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/main.o
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/unpack.o
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/utils.o
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/zip.o 
-lstdc++   
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/zip.o: In
function `jar::deflate_bytes(bytes&, bytes&)':
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:464:
undefined reference to `deflateInit2_'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:507:
undefined reference to `deflate'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:514:
undefined reference to `deflateEnd'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:502:
undefined reference to `deflate'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:522:
undefined reference to `deflateEnd'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:518:
undefined reference to `deflateEnd'
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/zip.o: In
function `jar::get_crc32(unsigned int, unsigned char*, unsigned int)':
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:61:
undefined reference to `crc32'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:61:
undefined reference to `crc32'
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:61:
undefined reference to `crc32'
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/zip.o: In
function `gunzip::free()':
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:645:
undefined reference to `inflateEnd'
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/zip.o: In
function `read_input_via_gzip':
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:548:
undefined reference to `inflate'
/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/zip.o: In
function `gunzip::start(int)':
/home/user/Desktop/icedtea/openjdk-boot/jdk/src/share/native/com/sun/java/util/jar/pack/zip.cpp:637:
undefined reference to `inflateInit2_'
collect2: error: ld returned 1 exit status
make[3]: Leaving directory `/home/user/Desktop/icedtea/openjdk-boot/jdk/make'
make[2]: Leaving directory `/home/user/Desktop/icedtea/openjdk-boot/jdk/make'
make[3]: ***
[/home/user/Desktop/icedtea/openjdk.build-boot/jdk/objs/unpackexe/unpack200]
Error 1
make[2]: *** [launchers-only] Error 2
make[1]: *** [jdk-only] Error 2
make[1]: se sale del directorio «/home/user/Desktop/icedtea/openjdk.build-boot»
make: *** [stamps/icedtea-boot.stamp] Error 2

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20140825/c3c52541/attachment-0001.html>


More information about the distro-pkg-dev mailing list