Red Hat Bugzilla – Bug 447539
unresolvable R_PPC_REL24 relocation against symbol
Last modified: 2008-05-20 09:56:10 EDT
Description of problem:
I'm trying to build a package that depends on readline, and it fails on ppc only
(not ppc64, and not any other arch). Investigating the configure output, it
seems that I get errors like this:
configure:9617: gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -pthread
-export-dynamic -O3 -pthread conftest.c -lreadline -lncursesw -lm -lrt -ldl >&5
/usr/bin/ld: /tmp/ccysHPco.o(.text+0xc): unresolvable R_PPC_REL24 relocation
against symbol `rl_done'
/tmp/ccysHPco.o: In function `main':
/builddir/build/BUILD/pl-5.6.55/src/conftest.c:87: relocation truncated to fit:
R_PPC_REL24 against symbol `rl_done' defined in .sbss section in
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
I'll attach the test program that "configure" is trying to run. This error
doesn't happen on Fedora 8, and doesn't happen on any other arch for Fedora 9.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Compile attached program
Error results described above
Created attachment 306120 [details]
conftest.c from attempted configure run
NB: here's the command line that configure uses to compile the attached program:
gcc -o conftest -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m32 -pthread -export-dynamic -O3
-pthread conftest.c -lreadline -lncursesw -lm -lrt -ldl
rl_done is an 'extern int', but conftest.c is trying to call it as a function.
That's unlikely to work, in the general case. The configure test is broken.
Right, this is a bug in the configure script of my package, not in readline.
Sorry for the noise.