Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100616 - net-misc/curl configure is failing to compute sizeof (curl_off_t)
Summary: net-misc/curl configure is failing to compute sizeof (curl_off_t)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 10:58 UTC by sauron
Modified: 2006-04-19 04:55 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sauron 2005-07-28 10:58:19 UTC
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for curl_off_t... yes
checking size of curl_off_t... configure: error: cannot compute sizeof
(curl_off_t), 77
See `config.log' for more details.

!!! Please attach the config.log to your bug report:
!!! /var/tmp/portage/curl-7.13.2/work/curl-7.13.2/config.log

!!! ERROR: net-misc/curl-7.13.2 failed.
!!! Function econf, Line 485, Exitcode 0
!!! econf failed
!!! If you need support, post the topmost build error, NOT this status message.


Reproducible: Always
Steps to Reproduce:
1. emerge curl

Actual Results:  
broken

Expected Results:  
install curl

Portage 2.0.51.19 (hardened/x86/2.6, gcc-3.4.4-vanilla, glibc-2.3.4.20041102-r1,
2.6.11-hardened-r15 i686)
=================================================================
System uname: 2.6.11-hardened-r15 i686 Mobile Intel(R) Celeron(R) CPU 2.50GHz
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jul  8 2005, 00:52:24)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.8.5-r3, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -mcpu=i686 -ggdb3 -fno-omit-frame-pointer -fno-inline "
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -ggdb3 -fno-omit-frame-pointer -fno-inline -gstabs3"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/binary"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X berkdb crypt cscope curl dlloader esd fam gdbm gif gpm gtk hardened imlib
mozilla ncurses nls opengl pam perl pic png python readline ruby sqlite ssl tcpd
tiff userlocales x86 xine xml xml2 xmms zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2005-07-28 16:30:42 UTC
configure:29859: i686-pc-linux-gnu-gcc -o conftest -O2 -march=i686 -mcpu=i686 -ggdb3 -fno-
omit-frame-pointer -fno-inline        conftest.c -lidn -lssl -lcrypto -ldl  -lssl -lcrypto -ldl   -lz >&5
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
configure:29862: $? = 0
configure:29864: ./conftest
./conftest: error while loading shared libraries: /usr/lib/libidn.so.11: cannot make segment writable for 
relocation: Permission denied
configure:29867: $? = 127
configure: program exited with status 127

can you check whether you have something odd with libidn?
Comment 2 sauron 2005-07-28 17:17:27 UTC
The bug wasn't a net-misc/curl bug, nor a bug at all.

The 'conftest' utility, relying on libidn, coudln't start because the libidn
wasn't compiled in PIE (Position Independant Executable).
Under the PaX security patch, the ELF .text relocation are not allowed so any
program relying on a library with relocation inside won't work, excepted if the
PaX protection is disable with the 'paxctl' utility.

I switched to another GCC profile with PIE enabled and recompiled libidn, now
this is working.

Thanks liquidx for spotting this in the config.log, and sorry for the waste of time.
I will look deeper into config.log file next time.
Comment 3 Lars Weiler (RETIRED) gentoo-dev 2005-10-24 07:05:25 UTC
I have this problem now with net-misc/curl-7.15.0.  But this is a plain gcc
(without hardened etc).  I recompiled libidn (although I didn't had the
idn-use-flag set).  The error still exists.
Comment 4 NiQoZ 2005-11-08 09:49:37 UTC
(In reply to comment #2)

Same problem with net-misc/curl-7.15.0. and plain gcc:
========================================================================
configure:2663: i686-pc-linux-gnu-gcc --version </dev/null >&5
i686-pc-linux-gnu-gcc (GCC) 3.3.5 20050130 (Gentoo Linux 3.3.5.20050130,            
ssp-3.3.5.20050130-1, pie-8.7.7.1)
(I also tried with gcc 3.4.4)
========================================================================
and
========================================================================
$ ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man    
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --enable-ldap --without-libidn --disable-gssapi 
--disable-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 --build=i686-pc-linux-gnu
========================================================================
say "--without-libidn" ??

Comment 5 Lars Weiler (RETIRED) gentoo-dev 2006-03-31 00:49:35 UTC
Small update: Without the ssl use-flag, curl compiles fine.  Even with idn set.
Comment 6 Alastair Tse (RETIRED) gentoo-dev 2006-04-19 04:55:54 UTC
one of the intermediate libraries there is linking to the wrong libidn. dor a revdep-rebuild to fix.