issue 1
(Compiling on AMD64 fails) commented on by desfrenes
- Same problem here. Adding -fPIC did it.
Same problem here. Adding -fPIC did it.
Earlier this year
Sep 11, 2009
issue 1
(Compiling on AMD64 fails) commented on by seifert.thomas
- For me adding -fPIC to the CFLAGS in the libstemmer_c/Makefile did the trick.
Maybe there's a way to automatically add it when needed?
For me adding -fPIC to the CFLAGS in the libstemmer_c/Makefile did the trick.
Maybe there's a way to automatically add it when needed?
Sep 11, 2009
issue 1
(Compiling on AMD64 fails) reported by seifert.thomas
- I had no problems using php-stemmer on x86 system but compilation on an
amd64 system fails.
What steps will reproduce the problem?
1. extract fresh tarball of php-stemmer 0.7.0
2. follow install instructions:
phpize
./configure
cd libstemmer_c
make
cd ..
make
-> see error:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld:
/root/php-stemmer-0.7.0/libstemmer_c/libstemmer.a(libstemmer.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/root/php-stemmer-0.7.0/libstemmer_c/libstemmer.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status
make: *** [stemmer.la] Error 1
This is on a current Gentoo Linux with kernel 2.6.30-gentoo-r4, gcc 4.3.2,
libtool 1.5.26, php 5.2.10.
Any ideas on how to solve this?
Thanks,
thomas
I had no problems using php-stemmer on x86 system but compilation on an
amd64 system fails.
What steps will reproduce the problem?
1. extract fresh tarball of php-stemmer 0.7.0
2. follow install instructions:
phpize
./configure
cd libstemmer_c
make
cd ..
make
-> see error:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld:
/root/php-stemmer-0.7.0/libstemmer_c/libstemmer.a(libstemmer.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/root/php-stemmer-0.7.0/libstemmer_c/libstemmer.a: could not read symbols:
Bad value
collect2: ld returned 1 exit status
make: *** [stemmer.la] Error 1
This is on a current Gentoo Linux with kernel 2.6.30-gentoo-r4, gcc 4.3.2,
libtool 1.5.26, php 5.2.10.
Any ideas on how to solve this?
Thanks,
thomas