LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-02-2004, 11:30 PM   #1
vbbjq
LQ Newbie
 
Registered: May 2004
Posts: 19

Rep: Reputation: 0
prelink error: `PT_GNU_STACK' undeclared


I am using slackweare10,i download the prelink-20040520.tar.bz2 from ftp://people.redhat.com/jakub/prelink/
I make the source ,it reports:
root@darkstar:/home/lynx/tmp/prelink# make
make all-recursive
make[1]: Entering directory `/home/lynx/tmp/prelink'
Making all in gelfx
make[2]: Entering directory `/home/lynx/tmp/prelink/gelfx'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lynx/tmp/prelink/gelfx'
Making all in gelfx32
make[2]: Entering directory `/home/lynx/tmp/prelink/gelfx32'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lynx/tmp/prelink/gelfx32'
Making all in gelf
make[2]: Entering directory `/home/lynx/tmp/prelink/gelf'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/lynx/tmp/prelink/gelf'
Making all in src
make[2]: Entering directory `/home/lynx/tmp/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/local/sbin"' -Wall -g -O2 -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 `/home/lynx/tmp/prelink/src'
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/home/lynx/tmp/prelink'
make: *** [all] error 2


What does it means,help me, thank you!
 
Old 08-03-2004, 06:20 AM   #2
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
What is your output for :
grep -rlni PT_GNU_STACK /home/lynx/tmp/prelink
 
Old 08-03-2004, 08:05 AM   #3
vbbjq
LQ Newbie
 
Registered: May 2004
Posts: 19

Original Poster
Rep: Reputation: 0
lynx@darkstar:~$ grep -rlni PT_GNU_STACK /home/lynx/tmp/prelink
/home/lynx/tmp/prelink/src/space.c
/home/lynx/tmp/prelink/src/dso.c
/home/lynx/tmp/prelink/src/execstack.c
/home/lynx/tmp/prelink/doc/execstack.8
 
Old 08-03-2004, 11:12 AM   #4
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
try this patch

save it as pt_gnu_stack.patch, then :
mv pt_gnu_stack.patch /home/lynx/tmp/prelink/
cd /home/lynx/tmp/prelink
patch -p1 < pt_gnu_stack.patch --dry-run
--> if it is good, apply the patch
patch -p1 < pt_gnu_stack.patch

now do a ./configure and run make too see if it works
 
Old 08-03-2004, 06:45 PM   #5
vbbjq
LQ Newbie
 
Registered: May 2004
Posts: 19

Original Poster
Rep: Reputation: 0
gcc -D_GNU_SOURCE -DHAVE_CONFIG_H -Wall -I. -I. -I.. -I../gelfx -DSBINDIR='"/usr/local/sbin"' -Wall -g -O2 -c `test -f 'arch-ppc.c' || echo './'`arch-ppc.c
arch-ppc.c: In function `ppc_prelink_rela':
arch-ppc.c:159: error: `R_PPC_DTPREL32' undeclared (first use in this function)
arch-ppc.c:159: error: (Each undeclared identifier is reported only once
arch-ppc.c:159: error: for each function it appears in.)
arch-ppc.c:170: error: `R_PPC_DTPREL16' undeclared (first use in this function)
arch-ppc.c:171: error: `R_PPC_DTPREL16_LO' undeclared (first use in this function)
arch-ppc.c:175: error: `R_PPC_DTPREL16_HA' undeclared (first use in this function)
arch-ppc.c:178: error: `R_PPC_DTPREL16_HI' undeclared (first use in this function)
arch-ppc.c:213: error: `R_PPC_DTPMOD32' undeclared (first use in this function)
arch-ppc.c:221: error: `R_PPC_TPREL32' undeclared (first use in this function)
arch-ppc.c:222: error: `R_PPC_TPREL16' undeclared (first use in this function)
arch-ppc.c:223: error: `R_PPC_TPREL16_LO' undeclared (first use in this function)
arch-ppc.c:224: error: `R_PPC_TPREL16_HI' undeclared (first use in this function)
arch-ppc.c:225: error: `R_PPC_TPREL16_HA' undeclared (first use in this function)
arch-ppc.c: In function `ppc_prelink_conflict_rela':
arch-ppc.c:380: error: `R_PPC_DTPMOD32' undeclared (first use in this function)
arch-ppc.c:381: error: `R_PPC_TPREL32' undeclared (first use in this function)
arch-ppc.c:382: error: `R_PPC_TPREL16' undeclared (first use in this function)
arch-ppc.c:383: error: `R_PPC_TPREL16_LO' undeclared (first use in this function)
arch-ppc.c:384: error: `R_PPC_TPREL16_HI' undeclared (first use in this function)
arch-ppc.c:385: error: `R_PPC_TPREL16_HA' undeclared (first use in this function)
arch-ppc.c:400: error: `R_PPC_DTPREL32' undeclared (first use in this function)
arch-ppc.c:401: error: `R_PPC_DTPREL16' undeclared (first use in this function)
arch-ppc.c:402: error: `R_PPC_DTPREL16_LO' undeclared (first use in this function)
arch-ppc.c:403: error: `R_PPC_DTPREL16_HI' undeclared (first use in this function)
arch-ppc.c:404: error: `R_PPC_DTPREL16_HA' undeclared (first use in this function)
arch-ppc.c: In function `ppc_undo_prelink_rela':
arch-ppc.c:585: error: `R_PPC_DTPMOD32' undeclared (first use in this function)
arch-ppc.c:586: error: `R_PPC_DTPREL32' undeclared (first use in this function)
arch-ppc.c:587: error: `R_PPC_TPREL32' undeclared (first use in this function)
arch-ppc.c:598: error: `R_PPC_DTPREL16' undeclared (first use in this function)
arch-ppc.c:599: error: `R_PPC_TPREL16' undeclared (first use in this function)
arch-ppc.c:600: error: `R_PPC_DTPREL16_LO' undeclared (first use in this function)
arch-ppc.c:601: error: `R_PPC_TPREL16_LO' undeclared (first use in this function)
arch-ppc.c:602: error: `R_PPC_DTPREL16_HI' undeclared (first use in this function)
arch-ppc.c:603: error: `R_PPC_TPREL16_HI' undeclared (first use in this function)
arch-ppc.c:604: error: `R_PPC_DTPREL16_HA' undeclared (first use in this function)
arch-ppc.c:605: error: `R_PPC_TPREL16_HA' undeclared (first use in this function)
arch-ppc.c: In function `ppc_reloc_size':
arch-ppc.c:645: error: `R_PPC_DTPREL16' undeclared (first use in this function)
arch-ppc.c:646: error: `R_PPC_DTPREL16_LO' undeclared (first use in this function)
arch-ppc.c:647: error: `R_PPC_DTPREL16_HI' undeclared (first use in this function)
arch-ppc.c:648: error: `R_PPC_DTPREL16_HA' undeclared (first use in this function)
arch-ppc.c:649: error: `R_PPC_TPREL16' undeclared (first use in this function)
arch-ppc.c:650: error: `R_PPC_TPREL16_LO' undeclared (first use in this function)
arch-ppc.c:651: error: `R_PPC_TPREL16_HI' undeclared (first use in this function)
arch-ppc.c:652: error: `R_PPC_TPREL16_HA' undeclared (first use in this function)
arch-ppc.c: In function `ppc_reloc_class':
arch-ppc.c:668: error: `R_PPC_DTPMOD32' undeclared (first use in this function)
arch-ppc.c:668: error: `R_PPC_DTPREL32' undeclared (first use in this function)
make[2]: *** [arch-ppc.o] error 1
make[2]: Leaving directory `/home/lynx/tmp/prelink/src'
make[1]: *** [all-recursive] error 1
make[1]: Leaving directory `/home/lynx/tmp/prelink'
make: *** [all] error 2
 
Old 08-04-2004, 02:42 AM   #6
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
There is another patch

Save it as prelink.patch
mv prelink.patch /home/lynx/tmp/
cd /home/lynx/tmp
patch -p0 < prelink.patch --dry-run
--> if it is good, apply the patch
patch -p0 < prelink.patch

Last edited by Cedrik; 08-04-2004 at 02:53 AM.
 
Old 08-04-2004, 06:49 AM   #7
vbbjq
LQ Newbie
 
Registered: May 2004
Posts: 19

Original Poster
Rep: Reputation: 0
thanks for your help very much!I have make it successful and use checkinstall to buiild a package!
 
Old 08-23-2004, 12:57 PM   #8
mike_a_nl
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
you also have my gratitude Cedrick!

it's just a single line, but it's so hard to fix if you don't know how or where to look!

thanks again!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
prelink amnesty_puppy Debian 4 05-11-2005 12:57 PM
`cout' undeclared in namespace `std' aw_wolfe Programming 1 04-30-2005 09:25 PM
Grr... saa7146_i2c.c error : `I2C_ADAP_CLASS_TV_ANALOG' undeclared kapa SUSE / openSUSE 0 03-08-2005 02:57 AM
prelink,elfutils,winex,slack,error=21 and all that jazz SticklerThe1st Slackware 7 11-26-2004 08:01 AM
make error: 'assert' undeclared (convex3D) mikshaw Linux - Software 2 03-25-2004 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration