Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18685 - libz.so missing after upgrade
Summary: libz.so missing after upgrade
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-03 06:25 UTC by Kim Nielsen
Modified: 2004-10-15 23:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
env.log (env.log,930 bytes, text/plain)
2003-04-12 04:03 UTC, Kim Nielsen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kim Nielsen 2003-04-03 06:25:43 UTC
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
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-06 05:28:48 UTC
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
Comment 2 Kim Nielsen 2003-04-07 05:24:58 UTC
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"
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-08 09:00:33 UTC
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 ...
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2003-04-09 10:03:41 UTC
Tried my last comment yet ?
Comment 5 Kim Nielsen 2003-04-12 04:03:20 UTC
Created attachment 10540 [details]
env.log

The env.log file
Comment 6 Ahmed Farid 2003-06-18 15:53:47 UTC
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
Comment 7 Ahmed Farid 2003-06-18 15:54:57 UTC
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
Comment 8 Mauricio Lima Pilla 2003-06-23 06:15:29 UTC
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 "
Comment 9 Alexander Isacson 2003-09-17 00:59:04 UTC
The same thing happened to me and emerge without distcc worked. The problem is that everything that depends on libz segfaults now. =(
Comment 10 Seemant Kulleen (RETIRED) gentoo-dev 2003-12-02 13:33:20 UTC
So, is this issue still pending people?
Comment 11 SpanKY gentoo-dev 2004-10-15 23:26:02 UTC
use the latest stable zlib

i fixed some ugly configure problems since this