maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #07112
Cassandra plugin build error: _S_empty_rep_storage' can not be used when making a shared object; recompile with -fPIC
Hello!
I am testing out building MariaDB 10.0.10 on a Ubuntu 12.04 system
with libthrift-dev installed (latest 0.9.0 from repo 'deb
http://ppa.launchpad.net/wnoronha/thrift/ubuntu precise main').
Building fails with this error:
make[4]: Siirrytään hakemistoon
"/home/otto/MariaDB/pkg-mariadb-10.0/mariadb-10.0/builddir"
Scanning dependencies of target cassandra
make[4]: Poistutaan hakemistosta
"/home/otto/MariaDB/pkg-mariadb-10.0/mariadb-10.0/builddir"
make[4]: Siirrytään hakemistoon
"/home/otto/MariaDB/pkg-mariadb-10.0/mariadb-10.0/builddir"
[ 75%] Building CXX object
storage/cassandra/CMakeFiles/cassandra.dir/ha_cassandra.cc.o
[ 75%] Building CXX object
storage/cassandra/CMakeFiles/cassandra.dir/cassandra_se.cc.o
[ 75%] Building CXX object
storage/cassandra/CMakeFiles/cassandra.dir/gen-cpp/Cassandra.cpp.o
[ 75%] Building CXX object
storage/cassandra/CMakeFiles/cassandra.dir/gen-cpp/cassandra_types.cpp.o
[ 75%] Building CXX object
storage/cassandra/CMakeFiles/cassandra.dir/gen-cpp/cassandra_constants.cpp.o
Linking CXX shared module ha_cassandra.so
/usr/bin/ld.bfd.real:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libthrift.a(TApplicationException.o):
relocation R_X86_64_32S against `std::basic_string<char,
std::char_traits<char>, std::allocator<char>
>::_Rep::_S_empty_rep_storage' can not be used when making a shared
object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libthrift.a: could
not read symbols: Bad value
collect2: ld:n paluuarvo oli 1
make[4]: *** [storage/cassandra/ha_cassandra.so] Virhe 1
Ideas?
--
Check out our blog at http://seravo.fi/blog
and follow @ottokekalainen
Follow ups