Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133937 - dev-libs/elfutils-0.118 can't be emerged
Summary: dev-libs/elfutils-0.118 can't be emerged
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-21 04:01 UTC by AlexStar
Modified: 2006-05-23 17:13 UTC (History)
0 users

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


Attachments
resulting "readelf.i" (readelf.i,516.63 KB, text/plain)
2006-05-22 11:22 UTC, AlexStar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AlexStar 2006-05-21 04:01:21 UTC
make[2]: Entering directory `/var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src'
rm -f libld_elf.a
ar cru libld_elf.a none_ld.o
i686-pc-linux-gnu-ranlib libld_elf.a
if i686-pc-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H  -DSRCDIR=\"/var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src\" -DOBJDIR=\"/var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src\" -I. -I. -I.. -I. -I./../libelf -I./../libebl -I./../libdw -I./../libdwfl -I./../lib -I..   -Wall -Wshadow -std=gnu99   -Wunused -W -Wformat=2 -O3 -march=athlon-xp -pipe -fomit-frame-pointer -MT i386_ld.o -MD -MP -MF ".deps/i386_ld.Tpo" -c -o i386_ld.o i386_ld.c; \
then mv -f ".deps/i386_ld.Tpo" ".deps/i386_ld.Po"; else rm -f ".deps/i386_ld.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -D_GNU_SOURCE -DHAVE_CONFIG_H  -DSRCDIR=\"/var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src\" -DOBJDIR=\"/var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src\" -I. -I. -I.. -I. -I./../libelf -I./../libebl -I./../libdw -I./../libdwfl -I./../lib -I..   -Wall -Wshadow -std=gnu99   -Wunused -W -Wformat=2 -O3 -march=athlon-xp -pipe -fomit-frame-pointer -MT readelf.o -MD -MP -MF ".deps/readelf.Tpo" -c -o readelf.o readelf.c; \
then mv -f ".deps/readelf.Tpo" ".deps/readelf.Po"; else rm -f ".deps/readelf.Tpo"; exit 1; fi
readelf.c: In function `main':
readelf.c:203: warning: implicit declaration of function `error'
readelf.c:226: error: `error_message_count' undeclared (first use in this function)
readelf.c:226: error: (Each undeclared identifier is reported only once
readelf.c:226: error: for each function it appears in.)
i386_ld.c: In function `elf_i386_initialize_plt':
i386_ld.c:200: warning: implicit declaration of function `error'
make[2]: *** [readelf.o] Ошибка 1
make[2]: *** Ожидание завершения заданий...
rm i386_ld.o
make[2]: Leaving directory `/var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src'
make[1]: *** [all-recursive] Ошибка 1
make[1]: Leaving directory `/var/tmp/portage/elfutils-0.118/work/elfutils-0.118'
make: *** [all] Ошибка 2

!!! ERROR: dev-libs/elfutils-0.118 failed.
!!! Function src_compile, Line 52, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.

Gentoo2 ~ # emerge --info
Portage 2.0.54-r2 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
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-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="ru_RU.KOI8-R"
LINGUAS="ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa apache2 apm arts asf audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr cli cpudetection crypt cups curl directfb dri dts dv dvd dvdr dvdread emboss encode esd ethereal exif expat fam fbcon ffmpeg flac font-server foomaticdb fortran gd-external gdbm gif glut gpm gstreamer gtk2 guile hal idn ieee1394 imagemagick imap imlib ipv6 isdnlog jabber jpeg kde kdeenablefinal kerberos lcms ldap libg++ libwww lm_sensors lzw mad memlimit mhash mikmod mime ming mmx mmxext mng motif mp3 mpeg mysql ncurses nls nptl nptlonly objc offencive ogg opengl oss pam pcre pda pdflib perl php png pppd python qt quicktime readline reflection rtc samba sdl session slang spell spl sse ssl svg svga symlink sysfs tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis win32codecs wmf x86 xine xinerama xml xml2 xmms xorg xv xvid zlib video_cards_radeondev-libs/elfutils linguas_ru userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 SpanKY gentoo-dev 2006-05-21 21:20:23 UTC
that's a bit weird considering that stuff is defined in error.h and readelf.c includes the error.h header file

run this:
cd /var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H \
-I. -I.. -I./../libelf -I./../libebl -I./../libdw -I./../libdwfl -I./../lib \
-Wall -Wshadow -std=gnu99 -Wunused -W -Wformat=2 -O3 -march=athlon-xp \
-pipe -fomit-frame-pointer -c -o readelf.o readelf.c

if that fails, then run:
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H \
-I. -I.. -I./../libelf -I./../libebl -I./../libdw -I./../libdwfl -I./../lib \
-Wall -Wshadow -std=gnu99 -Wunused -W -Wformat=2 -O3 -march=athlon-xp \
-pipe -fomit-frame-pointer -E -dD -o readelf.i readelf.c

and post the readelf.i file as an attachment
Comment 2 AlexStar 2006-05-22 11:22:32 UTC
Created attachment 87271 [details]
resulting "readelf.i"

Well, here is the result:

Gentoo2 ~ # cd /var/tmp/portage/elfutils-0.118/work/elfutils-0.118/src
Gentoo2 src # gcc -D_GNU_SOURCE -DHAVE_CONFIG_H \
> -I. -I.. -I./../libelf -I./../libebl -I./../libdw -I./../libdwfl -I./../lib \
> -Wall -Wshadow -std=gnu99 -Wunused -W -Wformat=2 -O3 -march=athlon-xp \
> -pipe -fomit-frame-pointer -c -o readelf.o readelf.c
readelf.c: In function `main':
readelf.c:203: warning: implicit declaration of function `error'
readelf.c:226: error: `error_message_count' undeclared (first use in this function)
readelf.c:226: error: (Each undeclared identifier is reported only once
readelf.c:226: error: for each function it appears in.)

So, look at the attach included
Comment 3 AlexStar 2006-05-22 11:25:38 UTC
Should I re-open the bug?
Comment 4 SpanKY gentoo-dev 2006-05-22 22:42:51 UTC
you have crap in your local system, fix it

# 1 "/usr/local/include/error.h" 1 3
Comment 5 AlexStar 2006-05-23 15:30:33 UTC
Thank you very much!
The problem was exactly there.
Fixed, thanks again!
Comment 6 AlexStar 2006-05-23 15:33:54 UTC
Just a suggestion: why that error appeared? 
Is that default compiler behavoiur - to "look" inside /usr/local/include/ before "looking at" really valid includes?
Comment 7 SpanKY gentoo-dev 2006-05-23 17:13:53 UTC
yes, /usr/local/include will be searched before /usr/include

this is the expected behavior