Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems in installing zlib
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pravar
n00b
n00b


Joined: 12 Aug 2010
Posts: 3
Location: Chennai, India

PostPosted: Thu Aug 12, 2010 10:27 am    Post subject: Problems in installing zlib Reply with quote

Hi,

I am getting the following error on installing sys-libs/zlib:

Quote:
* Messages for package sys-libs/zlib-1.2.5-r2:

* ERROR: sys-libs/zlib-1.2.5-r2 failed:
* unable to read SONAME from libz.so
*
* Call stack:
* ebuild.sh, line 54: Called src_install
* environment, line 2275: Called gen_usr_ldscript '-a' 'z'
* environment, line 1394: 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-r2',
* the complete build log and the output of 'emerge -pqv =sys-libs/zlib-1.2.5-r2'.
* The complete build log is located at '/var/tmp/portage/sys-libs/zlib-1.2.5-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/zlib-1.2.5-r2/temp/environment'.
* S: '/var/tmp/portage/sys-libs/zlib-1.2.5-r2/work/zlib-1.2.5'



Output of 'emerge --info =sys-libs/zlib-1.2.5-r2'

Quote:

Portage 2.1.8.3 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.34-gentoo-r1 i686)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T5450_@_1.66GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 11 Aug 2010 18:00:02 +0000
app-shells/bash: 4.0_p37
dev-lang/python: 2.6.4-r1, 3.1.2-r3
dev-util/cmake: 2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.13, 2.65
sys-devel/automake: 1.10.3, 1.11.1
sys-devel/binutils: 2.20.1-r1
sys-devel/gcc: 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=generic -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -mtune=generic -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirrors.sohu.com/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl aiglx alsa asf berkdb bzip2 cairo cli cracklib crypt cups cxx dbus dri dvd fam firefox fortran gdbm gdu giff glitz gnome gpm gstreamer gtk hal iconv java jpeg mad modules mp3 mp4 mudflap ncurses new-login nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png pppd python readline reflection session spell spl ssl svg symlink sysfs tcpd threads tiff truetype unicode vidix win32codecs x264 x86 xcomposite xinerama xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY


What's going wrong?
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1640

PostPosted: Thu Aug 12, 2010 12:34 pm    Post subject: Reply with quote

Hi, could you please post the actual error message? It should be somewhere above the output you posted.
Back to top
View user's profile Send private message
pravar
n00b
n00b


Joined: 12 Aug 2010
Posts: 3
Location: Chennai, India

PostPosted: Thu Aug 12, 2010 2:14 pm    Post subject: Reply with quote

Hi,
AM088 wrote:
Hi, could you please post the actual error message? It should be somewhere above the output you posted.



There is nothing more than that.

I'm posting the contents of of build.log file:

Quote:

* CPV: sys-libs/zlib-1.2.5-r2
* REPO: gentoo
* USE: elibc_glibc kernel_linux userland_GNU x86
>>> Unpacking source...
>>> Unpacking zlib-1.2.5.tar.bz2 to /var/tmp/portage/sys-libs/zlib-1.2.5-r2/work
* Applying zlib-1.2.5-ldflags.patch ...
 [ ok ]
* Applying zlib-1.2.5-lfs-decls.patch ...
 [ ok ]
* Applying zlib-1.2.5-fbsd_chosts.patch ...
 [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-libs/zlib-1.2.5-r2/work
>>> Compiling source in /var/tmp/portage/sys-libs/zlib-1.2.5-r2/work/zlib-1.2.5 ...
Using ar
Checking for i686-pc-linux-gnu-gcc...
Checking for shared library support...
Building shared library libz.so.1.2.5 with cc.
Checking for off64_t... Yes.
Checking for fseeko... Yes.
Checking for unistd.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.
make -j3
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o example.o example.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o adler32.o adler32.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o compress.o compress.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o crc32.o crc32.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o deflate.o deflate.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzclose.o gzclose.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzlib.o gzlib.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzread.o gzread.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o gzwrite.o gzwrite.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o infback.o infback.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o inffast.o inffast.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o inflate.o inflate.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o inftrees.o inftrees.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o trees.o trees.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o uncompr.o uncompr.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o zutil.o zutil.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -c -o minigzip.o minigzip.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/adler32.o adler32.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/compress.o compress.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/crc32.o crc32.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/deflate.o deflate.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzclose.o gzclose.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzlib.o gzlib.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzread.o gzread.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/gzwrite.o gzwrite.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/infback.o infback.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inffast.o inffast.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inflate.o inflate.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/inftrees.o inftrees.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/trees.o trees.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/uncompr.o uncompr.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -DPIC -c -o objs/zutil.o zutil.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o example64.o example.c
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o minigzip64.o minigzip.c
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
cc -shared -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o libz.so.1.2.5 adler32.lo compress.lo crc32.lo deflate.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo uncompr.lo zutil.lo -lc -Wl,-O1 -Wl,--as-needed
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o example example.o -L. libz.a
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o minigzip minigzip.o -L. libz.a
/usr/lib/gcc/i486-pc-linux-gnu/4.4.3/../../../../i486-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
rm -f libz.so libz.so.1
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o example64 example64.o -L. libz.a
ln -s libz.so.1.2.5 libz.so
ln -s libz.so.1.2.5 libz.so.1
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o minigzip64 minigzip64.o -L. libz.a
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o examplesh example.o -L. libz.so.1.2.5
cc -O2 -march=core2 -mtune=generic -pipe -D_LARGEFILE64_SOURCE=1 -o minigzipsh minigzip.o -L. libz.so.1.2.5
>>> Source compiled.
>>> Test phase [not enabled]: sys-libs/zlib-1.2.5-r2

>>> Install zlib-1.2.5-r2 into /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image/ category sys-libs
make -j3 install DESTDIR=/var/tmp/portage/sys-libs/zlib-1.2.5-r2/image/ LDCONFIG=:
cp libz.a /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/lib
cp libz.so.1.2.5 /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/lib
cd /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/lib; chmod u=rw,go=r libz.a
cp zlib.3 /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/share/man/man3
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/share/man/man3/zlib.3
cp zlib.pc /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/lib/pkgconfig
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/lib/pkgconfig/zlib.pc
cp zlib.h zconf.h /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/include
chmod 644 /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/include/zlib.h /var/tmp/portage/sys-libs/zlib-1.2.5-r2/image//usr/include/zconf.h
* ERROR: sys-libs/zlib-1.2.5-r2 failed:
* unable to read SONAME from libz.so
*
* Call stack:
* ebuild.sh, line 54: Called src_install
* environment, line 2276: Called gen_usr_ldscript '-a' 'z'
* environment, line 1395: 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-r2',
* the complete build log and the output of 'emerge -pqv =sys-libs/zlib-1.2.5-r2'.
* The complete build log is located at '/var/tmp/portage/sys-libs/zlib-1.2.5-r2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-libs/zlib-1.2.5-r2/temp/environment'.
* S: '/var/tmp/portage/sys-libs/zlib-1.2.5-r2/work/zlib-1.2.5'
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1640

PostPosted: Fri Aug 13, 2010 2:40 am    Post subject: Reply with quote

Since no one seems to have any idea, and google does not help, I suggest that you open a bug report.
Back to top
View user's profile Send private message
pravar
n00b
n00b


Joined: 12 Aug 2010
Posts: 3
Location: Chennai, India

PostPosted: Fri Aug 13, 2010 8:20 pm    Post subject: Reply with quote

Hi,

I have reported the bug:

http://bugs.gentoo.org/show_bug.cgi?id=332663

Meanwhile, do I have a workaround for this? This package is required to be installed when I try to install these packages: vlc, totem, gnome-system-tools and many others.

Thank you.
Back to top
View user's profile Send private message
Etal
Veteran
Veteran


Joined: 15 Jul 2005
Posts: 1640

PostPosted: Fri Aug 13, 2010 9:09 pm    Post subject: Reply with quote

You could try an older version for now:

Code:
emerge -av1 =sys-libs/zlib-1.2.3-r1
Back to top
View user's profile Send private message
Tin
Guru
Guru


Joined: 22 Dec 2005
Posts: 303
Location: Namur, Belgium

PostPosted: Wed Aug 25, 2010 9:57 pm    Post subject: Reply with quote

I got the same error, after having changed the CHOST value in /etc/make.conf
If you are in the same case, follow the tutorial here :
http://www.gentoo.org/doc/en/change-chost.xml
_________________
Tin, the gentoobie
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum