[Maria-developers] 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
Could you please try the 0.9.1 debian packages here: http://people.apache.org/~jfarrell/thrift/0.9.1/contrib/deb/ubuntu/12.04/ -roger On 01.04.2014 14:46, Otto Kekäläinen wrote:
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?
2014-04-02 14:41 GMT+03:00 Roger Meier <roger@bufferoverflow.ch>:
Could you please try the 0.9.1 debian packages here: http://people.apache.org/~jfarrell/thrift/0.9.1/contrib/deb/ubuntu/12.04/
Yep, with this libthrift-version it worked perfectly and no -PIC stuff was needed. I copied the files over to a location that can be used directly as a repository: deb http://labs.seravo.fi/~otto/mariadb-repo/ thrift-repo/ -- Check out our blog at http://seravo.fi/blog and follow @ottokekalainen
I have a ppa setup at launchpad.net, i can add these packages there to make it easier -Jake On Wed, Apr 2, 2014 at 10:59 AM, Otto Kekäläinen <otto@seravo.fi> wrote:
2014-04-02 14:41 GMT+03:00 Roger Meier <roger@bufferoverflow.ch>:
Could you please try the 0.9.1 debian packages here:
http://people.apache.org/~jfarrell/thrift/0.9.1/contrib/deb/ubuntu/12.04/
Yep, with this libthrift-version it worked perfectly and no -PIC stuff was needed.
I copied the files over to a location that can be used directly as a repository: deb http://labs.seravo.fi/~otto/mariadb-repo/ thrift-repo/
-- Check out our blog at http://seravo.fi/blog and follow @ottokekalainen
participants (3)
-
Jake Farrell
-
Otto Kekäläinen
-
Roger Meier