* Package: sys-libs/zlib-1.2.5.1-r2 * Repository: gentoo * Maintainer: base-system@gentoo.org * USE: amd64 elibc_glibc kernel_linux multilib userland_GNU * FEATURES: sandbox * Applying zlib-1.2.5.1-version.patch ... [ ok ] * Applying zlib-1.2.5.1-symlinks.patch ... [ ok ] * Applying zlib-1.2.4-minizip-autotools.patch ... [ ok ] ./configure --shared --prefix=/usr --libdir=/usr/lib64 Using x86_64-pc-linux-gnu-ar Using x86_64-pc-linux-gnu-ranlib Using x86_64-pc-linux-gnu-nm Checking for shared library support... Tested /usr/bin/clang -w -c -march=native -O3 -pipe ztest24946.c Tested cc -shared -march=native -O3 -pipe -o ztest24946.so ztest24946.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: ztest24946.o: relocation R_X86_64_PC32 against undefined symbol `getchar@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status No shared library support; try without defining CC and CFLAGS Building static library libz.a version 1.2.5.1 with /usr/bin/clang. Checking for off64_t... Yes. Checking for fseeko... Yes. Checking for unistd.h... Yes. Checking for stdarg.h... Yes. Checking whether to use vs[n]printf() or s[n]printf()... using vs[n]printf(). Checking for vsnprintf() in stdio.h... Yes. Checking for return value of vsnprintf()... Yes. /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o example.o example.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o adler32.o adler32.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o compress.o compress.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o crc32.o crc32.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o deflate.o deflate.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzclose.o gzclose.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzlib.o gzlib.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzread.o gzread.c gzread.c:190:17: warning: expression result unused [-Wunused-value] NEXT();  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ gzread.c:191:17: warning: expression result unused [-Wunused-value] NEXT();  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ gzread.c:170:13: warning: expression result unused [-Wunused-value] NEXT(); /* modification time */  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzwrite.o gzwrite.c gzread.c:171:13: warning: expression result unused [-Wunused-value] NEXT();  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ gzread.c:172:13: warning: expression result unused [-Wunused-value] NEXT();  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ gzread.c:173:13: warning: expression result unused [-Wunused-value] NEXT();  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ gzread.c:174:13: warning: expression result unused [-Wunused-value] NEXT(); /* extra flags */  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ gzread.c:175:13: warning: expression result unused [-Wunused-value] NEXT(); /* operating system */  ^~~~~~ gzread.c:67:66: note: expanded from macro 'NEXT' #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \  ^~ /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o infback.o infback.c 8 warnings generated. /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o inffast.o inffast.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o inflate.o inflate.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o inftrees.o inftrees.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o trees.o trees.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o uncompr.o uncompr.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o zutil.o zutil.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -c -o minigzip.o minigzip.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o example64.o example.c /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o minigzip.c x86_64-pc-linux-gnu-ar rc libz.a adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o zutil.o /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -o example example.o -L. libz.a /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -o minigzip minigzip.o -L. libz.a /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -o example64 example64.o -L. libz.a /usr/bin/clang -march=native -O3 -pipe -D_LARGEFILE64_SOURCE=1 -o minigzip64 minigzip64.o -L. libz.a cp libz.a /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/lib64 chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/lib64/libz.a cp zlib.3 /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/share/man/man3 chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/share/man/man3/zlib.3 cp zlib.pc /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/lib64/pkgconfig chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/lib64/pkgconfig/zlib.pc cp zlib.h zconf.h /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/include chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/include/zlib.h /var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/image//usr/include/zconf.h * ERROR: sys-libs/zlib-1.2.5.1-r2 failed (install phase): * unable to read SONAME from libz.so * * Call stack: * ebuild.sh, line 85: Called src_install * environment, line 2777: Called gen_usr_ldscript '-a' 'z' * environment, line 1898: Called die * The specific snippet of code: * [[ -z ${tlib} ]] && die "unable to read SONAME from ${lib}"; * * If you need support, post the output of 'emerge --info =sys-libs/zlib-1.2.5.1-r2', * the complete build log and the output of 'emerge -pqv =sys-libs/zlib-1.2.5.1-r2'. * The complete build log is located at '/var/log/portage/sys-libs:zlib-1.2.5.1-r2:20120607-154007.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/temp/environment'. * S: '/var/tmp/portage/sys-libs/zlib-1.2.5.1-r2/work/zlib-1.2.5.1'