Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 47644 - emerge prelink-20040317 fails w/ "PT_GNU_STACK undeclared"
Summary: emerge prelink-20040317 fails w/ "PT_GNU_STACK undeclared"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
: 47780 (view as bug list)
Depends on:
Blocks: 47780
  Show dependency tree
 
Reported: 2004-04-12 15:44 UTC by Andy Romeril
Modified: 2004-04-15 02:42 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 Andy Romeril 2004-04-12 15:44:53 UTC
When trying to emerge prelink, I get the following error:
...
make[2]: Entering directory `/var/tmp/portage/prelink-20040317/work/prelink/gelfx32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/var/tmp/portage/prelink-20040317/work/prelink/gelfx32'
Making all in gelf
make[2]: Entering directory `/var/tmp/portage/prelink-20040317/work/prelink/gelf'
source='gelf.c' object='gelf.lo' libtool=yes \
depfile='.deps/gelf.Plo' tmpdepfile='.deps/gelf.TPlo' \
depmode=gcc3 /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx   -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer -c -o gelf.lo `test -f 'gelf.c' || echo './'`gelf.c
mkdir .libs
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer -c gelf.c -MT gelf.lo -MD -MP -MF .deps/gelf.TPlo  -fPIC -DPIC -DPIC -o gelf.o
mv -f gelf.o .libs/gelf.lo
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer -c gelf.c -MT gelf.lo -MD -MP -MF .deps/gelf.TPlo -o gelf.o >/dev/null 2>&1
mv -f .libs/gelf.lo gelf.lo
/bin/sh ../libtool --mode=link gcc -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer   -o libgelf.la   gelf.lo  -lelf 
rm -fr .libs/libgelf.la .libs/libgelf.* .libs/libgelf.*
ar cru .libs/libgelf.al gelf.lo
ranlib .libs/libgelf.al
creating libgelf.la
(cd .libs && rm -f libgelf.la && ln -s ../libgelf.la libgelf.la)
make[2]: Leaving directory `/var/tmp/portage/prelink-20040317/work/prelink/gelf'
Making all in src
make[2]: Entering directory `/var/tmp/portage/prelink-20040317/work/prelink/src'
source='execstack.c' object='execstack.o' libtool=no \
depfile='.deps/execstack.Po' tmpdepfile='.deps/execstack.TPo' \
depmode=gcc3 /bin/sh ../depcomp \
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx -DSBINDIR='"/usr/sbin"'  -Wall -march=pentium4 -O2 -pipe -fomit-frame-pointer -c `test -f 'execstack.c' || echo './'`execstack.c
execstack.c: In function `execstack_fill_phdr':
execstack.c:80: error: `PT_GNU_STACK' undeclared (first use in this function)
execstack.c:80: error: (Each undeclared identifier is reported only once
execstack.c:80: error: for each function it appears in.)
execstack.c: In function `execstack_set':
execstack.c:213: error: `PT_GNU_STACK' undeclared (first use in this function)
execstack.c: In function `execstack_query':
execstack.c:369: error: `PT_GNU_STACK' undeclared (first use in this function)
make[2]: *** [execstack.o] Error 1
make[2]: Leaving directory `/var/tmp/portage/prelink-20040317/work/prelink/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/prelink-20040317/work/prelink'
make: *** [all] Error 2

!!! ERROR: sys-devel/prelink-20040317 failed.
!!! Function src_compile, Line 24, Exitcode 2
!!! Make Failed

Here's my "emerge info" output:

Portage 2.0.50-r5 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r3, 2.4.23-ck1)
=================================================================
System uname: 2.4.23-ck1 i686 Intel(R) Pentium(R) 4 Mobile CPU 1.80GHz
Gentoo Base System version 1.4.3.13
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 1.9 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 -mmmx"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse2 -mmmx"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache distcc sandbox"
GENTOO_MIRRORS="http://software/Linux/gentoo/ ftp://gentoo.ccccom.com ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://gentoo.mirrors.pair.com/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://qadiag2.viewstar.com/gentoo-portage"
USE="X aalib alsa apm avi berkdb cdr crypt cups directfb dvd encode esd fbcon foomaticdb gdbm ggi gif gnome gphoto2 gpm gtk gtk2 guile imlib java jpeg libg++ libwww mad mikmod mmx motif mozaccess-builtin mozctl mozilla mozirc mpeg ncurses oggvorbis opengl oss pam pcmcia pda pdflib perl png pnp postgres python quicktime readline ruby samba sdl slang spell sse sse2 ssl svga tcltk tcpd tetex tiff truetype trusted x x86 xml2 xmms xv zlib"

Also tried with:

   CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer"

and get the same error.
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2004-04-13 03:03:24 UTC
You don't have some dependancy installed. I will see what uptodate package you require and fix it.

Could you print the versions of:
dev-libs/elfutils
sys-devel/binutils

I am guessing it is elfutils.
Comment 2 Stefan Jones (RETIRED) gentoo-dev 2004-04-13 03:17:53 UTC
Found the problem:
#define PT_GNU_STACK    0x6474e551  /* Indicates stack executability */
is located in elf.h in elfutils-0.94

Updated the prelink dependancy, closing bug.
Comment 3 Andy Romeril 2004-04-14 16:59:00 UTC
Reported behavior persists.  

Package versions are:

dev-libs/elf-utils-0.94-r1
sys-devel/binutils-2.14.90.0.7-r4

Other suggestions?
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2004-04-15 01:37:29 UTC
Ok, sorry, you require glibc-2.3.2-r9

Will update the dependancies. I thought elfutils provide /usr/include/elf.h but it actually is glibc.

Now it is fixed!
Comment 5 Stefan Jones (RETIRED) gentoo-dev 2004-04-15 02:42:28 UTC
*** Bug 47780 has been marked as a duplicate of this bug. ***