Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479826 - media-libs/libpng-1.6.3-r1 with sys-libs/zlib-1.2.8-r1 - configure: ld: skipping incompatible /usr/lib64/libz.so when searching for -lz
Summary: media-libs/libpng-1.6.3-r1 with sys-libs/zlib-1.2.8-r1 - configure: ld: skipp...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-05 11:33 UTC by Sorin Panca
Modified: 2013-09-14 23:48 UTC (History)
0 users

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


Attachments
The configure output. (build.log,14.11 KB, text/plain)
2013-08-05 11:35 UTC, Sorin Panca
Details
config.log (config.log,35.64 KB, text/plain)
2013-08-05 14:58 UTC, Sorin Panca
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sorin Panca 2013-08-05 11:33:28 UTC
media-libs/libpng configure phase fails for the x32 part of the configuration process; zlib is properly detected for the x64 ABI when ABI_X86="32".

Reproducible: Always

Steps to Reproduce:
1. unpack a stage3
2. set ABI_X86="32" and ACCEPT_KEYWORDS="~amd64" and the default/linux/amd64/13.0/x32 profile
3. run emerge --sync and emerge -uDN world and ensure this step finishes without errors
4. emerge --oneshot libpng
Actual Results:  
configure passes the x64 phase successfully, properly detecting zlib as installed, but fails at the x32 configure phase, with "configure: error: zlib not installed"

Expected Results:  
zlib should install the x32 library on a default/linux/amd64/13.0/x32 profile and libpng should detect using its configure test script.

# emerge --info
Portage 2.1.13.5 (default/linux/amd64/13.0/x32, gcc-4.7.3, glibc-2.17, 3.4.52-std371-amd64 x86_64)
=================================================================
System uname: Linux-3.4.52-std371-amd64-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.2
KiB Mem:     1018764 total,    427740 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 05 Aug 2013 07:30:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r1, 3.2.5-r1, 3.3.2-r1
dev-util/cmake:           2.8.11.1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo property-shark
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -mtune=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -mtune=core2"
DISTDIR="/var/pub/src"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/tmp/pkg/x86_64/gentoo"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/lib/portage/repos/gentoo"
PORTDIR_OVERLAY="/var/lib/portage/repos/property-shark"
USE="acl aio amd64 apng armadillo augeas auto-hinter autotrace bash-completion berkdb bzip2 caps cli contrast corefonts cracklib crypt cxx dri ecwj2k emf exif expat fits fontconfig gbm gd gdal gdbm geos gif gles1 gles2 glibc-omitfp gml gmp hdf hdf5 hdri iconv icu idn jbig jpeg jpeg2k kerberos lapack lcms libssh2 lqr lto lzma lzo minizip mmx mmxext modules mudflap multilib ncurses netcdf nls nptl opencl openexr opengl openmp openvg osmesa pam pango pcre pdf pdo perl png proj python python3 q32 q64 q8 raw readline romio session sqlite3 sse sse2 sse3 ssl ssse3 suid symlink szip tcpd threads tiff truetype type3 unicode upcall vdpau vim-pager vim-syntax webp wmf xa xattr xml xmp xpm xslt zlib" ABI_X86="32 x32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="i915 i965 intel nouveau r600 radeon vmware" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Sorin Panca 2013-08-05 11:35:33 UTC
Created attachment 355166 [details]
The configure output.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2013-08-05 11:48:42 UTC
(In reply to Sorin Panca from comment #1)
> Created attachment 355166 [details]
> The configure output.

Read the configure output, please.

checking for zlibVersion in -lz... no
checking for z_zlibVersion in -lz... no
configure: error: zlib not installed

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-libs/libpng-1.6.3-r1/work/libpng-1.6.3-x32/config.log
Comment 3 Sorin Panca 2013-08-05 14:56:00 UTC
# q list -Iv zlib
sys-libs/zlib-1.2.8-r1

As I said, at "Actual results":

configure passes the x64 phase successfully, properly detecting zlib as installed,

but fails at the x32 configure phase, with "configure: error: zlib not installed"
Comment 4 Sorin Panca 2013-08-05 14:58:40 UTC
Created attachment 355178 [details]
config.log
Comment 5 Sorin Panca 2013-09-14 23:48:57 UTC
It is my fault: I changed the system profile to x32 on an already installed system instead of using the stage3-x32 tarball.
As a workaround, one can temporarily set ABI_X86=64 on an x32 profile and get a mixed system first, then, after both libraries (x32 and 64) are in place, recreate the /usr/lib symlink to point to /usr/libx32, remove the custom ABI_X86 setting and emerge -e @world. I'm not sure it'll work, maybe more steps are needed, but it's a start. I won't update this report with my results - one should start with a stage3-x32 tarball.