building ppp from src rpm failed in f17

Kevin Wilson wkevils at gmail.com
Sun Dec 16 09:13:35 UTC 2012


Hello,
I did the following on x86_64 fedora machine:

- downloaded ppp-2.4.5-22.fc17.src.rpm
ran: rpm -ivh ppp-2.4.5-22.fc17.src.rpm
then
rpmbuild -bp --target=x86_64 /root/rpmbuild/SPECS/ppp.spec

then
cd /root/rpmbuild/BUILD/ppp-2.4.5
./configure
make
got this error:
d chat; make  all
make[1]: Entering directory `/root/rpmbuild/BUILD/ppp-2.4.5/chat'
cc -c  -DTERMIOS			 -DSIGTYPE=void			 -UNO_SLEEP			
-DFNDELAY=O_NDELAY		 -o chat.o chat.c
cc -pie -o chat chat.o
/bin/ld: chat.o: relocation R_X86_64_32 against `.rodata' can not be
used when making a shared object; recompile with -fPIC
chat.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [chat] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/ppp-2.4.5/chat'
make: *** [all] Error 2

why is this error ?

I tried, just out of interest, also
rpmbuild -bp --target=i686 /root/rpmbuild/SPECS/ppp.spec
and got:

cc -pie -o chat chat.o
/bin/ld: chat.o: relocation R_X86_64_32 against `.rodata' can not be
used when making a shared object; recompile with -fPIC
chat.o: could not read symbols: Bad value

Any ideas? this things should have work, or am I doing something wrong?


rgs,
Kevin


More information about the users mailing list