After a gcc 3.3.6 -> 3.4.6-r1 upgrade, curl fails to emerge. I have followed the gcc upgrade docs, doing an emerge -e system, followed by an emerge -e world. The curl emerge when doing emerge -e world fails with: checking size of curl_off_t... configure: error: cannot compute sizeof (curl_off_t), 77 See `config.log' for more details. !!! Please attach the following file when filing a report to bugs.gentoo.org: !!! /var/tmp/portage/curl-7.15.1-r1/work/curl-7.15.1/config.log !!! ERROR: net-misc/curl-7.15.1-r1 failed. Call stack: ebuild.sh, line 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile curl-7.15.1-r1.ebuild, line 81: Called econf '--disable-ldap' '--without-libidn' '--disable-gssapi' '--enable-ipv6' '--enable-http' '--enable-ftp' '--enable-gopher' '--enable-file' '--enable-dict' '--enable-manual' '--enable-telnet' '--enable-nonblocking' '--enable-largefile' '--disable-ares' '--disable-krb4' '--without-gnutls' '--with-ssl=/usr' ebuild.sh, line 541: Called die !!! econf failed !!! If you need support, post the topmost build error, and the call stack if relevant. config.log is attached. sgrsil31 curl-7.15.1 # emerge --info Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.11-gentoo-r11 i686) ================================================================= System uname: 2.6.11-gentoo-r11 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.6.15 dev-lang/python: 2.3.5, 2.4.3-r1 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r2 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-O2 -march=pentium4" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" PKGDIR="/usr/portage/packages/i686/pentium4" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" USE="x86 apache2 apm arts avi berkdb bitmap-fonts cli crypt cups dri eds emboss encode esd foomaticdb fortran gdbm gif gstreamer gtk2 imlib ipv6 isdnlog jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg opengl oss pam pcre pdflib perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts udev vorbis xml xmms xorg xv zlib elibc_glibc kernel_linux userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Created attachment 90516 [details] Output from configure command in emerge
> configure:30672: ./conftest > ./conftest: error while loading shared libraries: /usr/lib/libz.so.1: invalid ELF header > configure:30675: $? = 127 > configure: program exited with status 127 This probably has nothing to do with curl. Does reinstalling zlib fix things? If not, do other programs using zlib (your currently installed curl, for example) work correctly?
This probably has nothing to do with curl. Does reinstalling zlib fix things? If not, do other programs using zlib (your currently installed curl, for example) work correctly? No, reinstalling zlib did not help. I have no previous version of curl, I deinstalled it at some point when trying to fix this. I have tried installing the next version up (~x86) and that failed too. However, running "make test" which is part of the zlib source I think it looks like the zlib libraries are working: 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 *** Trying out other packages, openssl seems to compile and run fine, and that depends on zlib.
Ok, I just unmerged zlib ignoring all the "'sys-libs/zlib' is part of your system profile" warnings and then emerged it again. Curl now compiles. Ah should have done this yesterday... Thanks for the help.
i have exeactly the same issue i will provide more info on my system tonight
hi guys, i have something similar to this bug, here is the nummber of the bug i submitted about it : 138725 and this is the url to my config.log http://bigleo.dyndns.org/config.log thanks for your engagements if i can help with providing more info please mail me Regards yassine elassad Cologne, Germany