Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204502 - dev-libs/elfutils-0.131 libelf.h requires off64_t (-D_LARGEFILE64_SOURCE)
Summary: dev-libs/elfutils-0.131 libelf.h requires off64_t (-D_LARGEFILE64_SOURCE)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 204208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-06 01:38 UTC by Ryan Hill (RETIRED)
Modified: 2008-01-06 17:38 UTC (History)
2 users (show)

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


Attachments
config.log (config.log,34.42 KB, text/plain)
2008-01-06 01:39 UTC, Ryan Hill (RETIRED)
Details
config.log (config.log,50.78 KB, text/plain)
2008-01-06 02:24 UTC, Ryan Hill (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2008-01-06 01:38:50 UTC
libelf.h looks broken.

checking libelf.h usability... no
checking libelf.h presence... yes
configure: WARNING: libelf.h: present but cannot be compiled
configure: WARNING: libelf.h: check for missing prerequisite headers?
configure: WARNING: libelf.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for libelf.h... yes
checking gelf.h usability... no
checking gelf.h presence... yes
configure: WARNING: gelf.h: present but cannot be compiled
configure: WARNING: gelf.h: check for missing prerequisite headers?
configure: WARNING: gelf.h: proceeding with the preprocessor's result
configure: WARNING:     ## ------------------------------------ ##
configure: WARNING:     ## Report this to bug-autoconf@gnu.org. ##
configure: WARNING:     ## ------------------------------------ ##
checking for gelf.h... yes
checking for elf_begin in -lelf... yes
checking for gelf_getvernaux... yes
checking whether FTW_ACTIONRETVAL is supported... yes
checking for is_selinux_enabled in -lselinux... no
checking selinux/selinux.h usability... no
checking selinux/selinux.h presence... no
checking for selinux/selinux.h... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
configure: error: libelf does not properly convert Elf64_Sxword quantities.
If you are using libelf-0.7.0, please use patches/libelf-0.7.0.patch.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-devel/prelink-20071009/work/prelink/config.log
 *
 * ERROR: sys-devel/prelink-20071009 failed.

Portage 2.1.4_rc14 (default-linux/x86/2007.0, gcc-4.2.2, glibc-2.7-r1, 2.6.23.12 i686)
=================================================================
System uname: 2.6.23.12 i686 Genuine Intel(R) CPU T2300 @ 1.66GHz
Timestamp of tree: Unknown
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.3
dev-lang/python:     2.5.1-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0_rc6-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1, 2.18.50.0.2, 2.18.50.0.3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -g -march=prescott -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -g -march=prescott -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --nospinner"
FEATURES="assume-digests ccache collision-protect cvs digest distlocks fixpackages parallel-fetch sandbox sfperms sign splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://gentoo.osuosl.org http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1,--hash-style=gnu"
LINGUAS="en en_GB en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/dirtyepic/overlay /home/dirtyepic/svn/dirtyepic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2008-01-06 01:39:40 UTC
Created attachment 140243 [details]
config.log
Comment 2 SpanKY gentoo-dev 2008-01-06 02:07:40 UTC
why is your libelf.h including linux/sys.h ?  mine isnt:
$ grep '#include' /usr/include/libelf.h
#include <sys/types.h>
#include <elf.h>
Comment 3 Ryan Hill (RETIRED) gentoo-dev 2008-01-06 02:24:37 UTC
Created attachment 140245 [details]
config.log

crap, wrong log.  sorry.
Comment 4 SpanKY gentoo-dev 2008-01-06 02:45:22 UTC
off64_t only shows up when building with -D_LARGEFILE64_SOURCE ... wtf thought that was a good idea
Comment 5 SpanKY gentoo-dev 2008-01-06 02:54:26 UTC
add this to the top of your libelf.h:
#if !defined(_LARGEFILE64_SOURCE) && !defined(__off64_t_defined)
# define _LARGEFILE64_SOURCE
#endif

and make sure things work
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2008-01-06 04:11:56 UTC
nope, sorry.  still getting the same error.
Comment 7 SpanKY gentoo-dev 2008-01-06 04:53:16 UTC
do `sed -i 's:off64_t:__off64_t:'` on libelf.h ... that lets me build prelink
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-01-06 14:29:46 UTC
I wonder how this was ever supposed to work on redhat.. I'd vote for doing the sed in a -r1 ebuild.
Comment 9 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-01-06 14:31:48 UTC
*** Bug 204208 has been marked as a duplicate of this bug. ***
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2008-01-06 15:42:19 UTC
yep, this works.  there's another, separate, problem with inlining and -std=gnu99 but it can be fixed anytime.
Comment 11 SpanKY gentoo-dev 2008-01-06 17:38:18 UTC
they may not have rebuilt prelink against newer libelf yet and thus didnt notice

0.131-r1 in the tree using __off64_t