Checking for shared library support... No shared library suppport; try without defining CC and CFLAGS Building static library libz.a version 1.1.4 with gcc. Checking for unistd.h... No. Checking whether to use vsnprintf() or snprintf()... using snprintf() Checking for snprintf() in stdio.h... No. WARNING: snprintf() not found, falling back to sprintf(). zlib can build but will be open to possible buffer-overflow security vulnerabilities. See README.vsnprintf for more info. Checking for return value of sprintf()... No. WARNING: apparently sprintf() does not return a value. zlib can build but will be open to possible string-format security vulnerabilities. See README.vsnprintf for more info. Checking for errno.h... No. Checking for mmap support... No. gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o example.o example.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o adler32.o adler32.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o compress.o compress.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o crc32.o crc32.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o gzio.o gzio.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o uncompr.o uncompr.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o deflate.o deflate.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o trees.o trees.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o zutil.o zutil.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o inflate.o inflate.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o infblock.o infblock.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o inftrees.o inftrees.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o infcodes.o infcodes.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o infutil.o infutil.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o inffast.o inffast.c gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -c -o minigzip.o minigzip.c ar rc libz.a adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -o example example.o -L. -lz gcc -march=pentium2 -O3 -pipe -fomit-frame-pointer -fPIC -o minigzip minigzip.o -L. -lz hello world uncompress(): hello, hello! gzread(): hello, hello! gzgets() after gzseek: hello! inflate(): hello, hello! large_inflate(): OK after inflateSync(): hello, hello! inflate with dictionary: hello, hello! *** zlib test OK *** Building static library libz.a version 1.1.4 with gcc. Checking for unistd.h... No. Checking whether to use vsnprintf() or snprintf()... using snprintf() Checking for snprintf() in stdio.h... No. WARNING: snprintf() not found, falling back to sprintf(). zlib can build but will be open to possible buffer-overflow security vulnerabilities. See README.vsnprintf for more info. Checking for return value of sprintf()... No. WARNING: apparently sprintf() does not return a value. zlib can build but will be open to possible string-format security vulnerabilities. See README.vsnprintf for more info. Checking for errno.h... No. Checking for mmap support... No. make: Nothing to be done for `all'. >>> Install zlib-1.1.4-r1 into /var/tmp/portage/zlib-1.1.4-r1/image/ category sys-libs /usr/lib/portage/bin/dolib: libz.so.1.1.4 does not exist man: strip: >>> Completed installing into /var/tmp/portage/zlib-1.1.4-r1/image/ Calculating dependencies ^H^H ...done! >>> emerge (1 of 1) sys-libs/zlib-1.1.4-r1 to / >>> md5 ;-) zlib-1.1.4.tar.bz2 >>> Merging sys-libs/zlib-1.1.4-r1 to / --- /usr/ --- /usr/lib/ >>> /usr/lib/libz.a --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/zlib-1.1.4-r1/ --- /usr/share/doc/zlib-1.1.4-r1/txt/ >>> /usr/share/doc/zlib-1.1.4-r1/txt/algorithm.txt.gz >>> /usr/share/doc/zlib-1.1.4-r1/FAQ.gz >>> /usr/share/doc/zlib-1.1.4-r1/README.gz >>> /usr/share/doc/zlib-1.1.4-r1/ChangeLog.gz --- /usr/share/man/ --- /usr/share/man/man3/ >>> /usr/share/man/man3/zlib.3.gz --- /usr/include/ >>> /usr/include/zconf.h >>> /usr/include/zlib.h >>> /usr/lib/libz.so.1 -> libz.so.1.1.4 >>> /usr/lib/libz.so -> libz.so.1.1.4 >>> Safely unmerging already-installed instance... --- !mtime obj /usr/share/man/man3/zlib.3.gz --- !mtime obj /usr/share/doc/zlib-1.1.4-r1/txt/algorithm.txt.gz --- !mtime obj /usr/share/doc/zlib-1.1.4-r1/README.gz --- !mtime obj /usr/share/doc/zlib-1.1.4-r1/FAQ.gz --- !mtime obj /usr/share/doc/zlib-1.1.4-r1/ChangeLog.gz --- !mtime obj /usr/lib/libz.a --- !mtime obj /usr/include/zlib.h --- !mtime obj /usr/include/zconf.h <<< sym /usr/lib/libz.so.1 <<< sym /usr/lib/libz.so --- !empty dir /usr/share/man/man3 --- !empty dir /usr/share/man --- !empty dir /usr/share/doc/zlib-1.1.4-r1/txt --- !empty dir /usr/share/doc/zlib-1.1.4-r1 --- !empty dir /usr/share/doc --- !empty dir /usr/share --- !empty dir /usr/lib --- !empty dir /usr/include --- !empty dir /usr >>> original instance of package unmerged safely. >>> Regenerating /etc/ld.so.cache... >>> sys-libs/zlib-1.1.4-r1 merged. sys-libs/zlib selected: none protected: 1.1.4-r1 omitted: none >>> clean: No packages selected for removal. >>> Regenerating /etc/ld.so.cache... >>> Auto-cleaning packages ... >>> No outdated packages were found on your system. How do I get the libz.so (libz.so.1) back again ? the system is quite depending on this file Reproducible: Always Steps to Reproduce: 1. emerge zlib
Works fine here. Please paste info from 'emerge info' -------------------------------------------------- >>> Merging sys-libs/zlib-1.1.4-r1 to / --- /usr/ --- /usr/include/ >>> /usr/include/zconf.h >>> /usr/include/zlib.h --- /usr/lib/ >>> /usr/lib/libz.so.1.1.4 >>> /usr/lib/libz.a >>> /usr/lib/libz.so -> libz.so.1.1.4 >>> /usr/lib/libz.so.1 -> libz.so.1.1.4 --- /usr/share/ --- /usr/share/man/ --- /usr/share/man/man3/ >>> /usr/share/man/man3/zlib.3.gz --- /usr/share/doc/ --- /usr/share/doc/zlib-1.1.4-r1/ --- /usr/share/doc/zlib-1.1.4-r1/txt/ >>> /usr/share/doc/zlib-1.1.4-r1/txt/algorithm.txt.gz >>> /usr/share/doc/zlib-1.1.4-r1/FAQ.gz >>> /usr/share/doc/zlib-1.1.4-r1/README.gz >>> /usr/share/doc/zlib-1.1.4-r1/ChangeLog.gz
Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r2 i686 Pentium II (Klamath) GENTOO_MIRRORS="http://gentoo.linux.no/" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss crypt encode gif jpeg libg++ mmx ncurses nls pdflib png spell xml2 zlib berkdb slang readline tetex postgres tcpd pam libwww ssl perl python -3dnow -apm -arts -avi -cups -gdbm -gpm -imlib -java -kde -mikmod -motif -mpeg -oggvorbis -opengl -qt -gtk -qtmt -quicktime -sdl -svga -truetype -X -xmms -xv -tcltk -gnome" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=pentium2 -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j8" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache distcc"
For some reason it fails to create shared objects. login at a console, try to merge it again, if same issues do: # env &> env.log and attach/paste here. It might be that you have LDFLAGS or something set ...
Tried my last comment yet ?
Created attachment 10540 [details] env.log The env.log file
i just have that problem right now, but it was with gcc-3.3.. after playing around with my CFLAGS i found out that "-O2" instead of "-O3" automagicly fixed that problem, hope it works for you to :) peace
i just had that problem right now, but it was with gcc-3.3.. after playing around with my CFLAGS i found out that "-O2" instead of "-O3" automagicly fixed that problem, hope it works for you to :) peace
I had the same problem when using DISTCC. Emerging without distcc, it worked. I am also using gcc 3.3 CFLAGS="-march=pentium3 -Os -fomit-frame-pointer -mmmx -msse -pipe "
The same thing happened to me and emerge without distcc worked. The problem is that everything that depends on libz segfaults now. =(
So, is this issue still pending people?
use the latest stable zlib i fixed some ugly configure problems since this