[Home]

Summary:ASTERISK-14263: x86_64 relocation R_X86_64_32
Reporter:Chodorenko Michail (chodorenko)Labels:
Date Opened:2009-06-04 01:22:32Date Closed:2011-06-07 14:08:10
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Codecs/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:when i can compile asterik 1.6.0.9 i retrive this error

  [LD] codec_resample.o -> codec_resample.so
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../x86_64-suse-linux/bin/ld: /usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libresample.a(resample.c.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/4.3/../../../../lib64/libresample.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[1]: *** [codec_resample.so] Error 1
make: *** [codecs] Error 2


****** ADDITIONAL INFORMATION ******

#rpm -qa | grep resample
resample-1.7-147.71
libresample-0.1.3-1.2

# uname -a
Linux Name 2.6.27.21-0.1-default #1 SMP 2009-03-31 14:50:44 +0200 x86_64 x86_64 x86_64 GNU/Linux

#cat /etc/SuSE-release
openSUSE 11.1 (x86_64)
VERSION = 11.1

Comments:By: Russell Bryant (russell) 2009-06-04 07:17:49

This is a problem with your libresample package.  Grab libresample from here, instead:

$ svn co http://svn.asterisk.org/svn/thirdparty/libresample/trunk libresample
$ cd libresample
$ make
$ sudo make install