← Back to team overview

maria-discuss team mailing list archive

Re: Excluding plugins when building MariaDB 10.1

 

On Sep 3, 2014, at 11:20 PM, Sergei Golubchik <serg@xxxxxxxxxxx> wrote:

> Hi, Kolbe!
> 
> On Sep 03, Kolbe Kegel wrote:
>> Hi!
>> 
>> I'm trying to build MariaDB 10.1 on OS X.
>> 
>> cmake ../server/ -DBUILD_CONFIG=mysql_release -DWITH_SSL=system -DCMAKE_CXX_FLAGS:STRING='-stdlib=libstdc++' -DPLUGIN_TOKUDB=NO -DPLUGIN_OQGRAPH=NO -DWITH_EMBEDDED_SERVER:BOOL=OFF -DWITH_WSREP=OFF
>> 
>> The build is failing on tokudb code even though I am trying to avoid building the TokuDB plugin. What gives?
>> 
>> Linking CXX shared library libft.dylib
>> Undefined symbols for architecture x86_64:
>>  "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from:
>>      toku::dmt<klpair_struct, klpair_struct*, toku::klpair_dmtwriter>::verify() const in bndata.cc.o
>>  "std::__1::__vector_base_common<true>::__throw_out_of_range() const", referenced from:
>>      toku::dmt<klpair_struct, klpair_struct*, toku::klpair_dmtwriter>::verify() const in bndata.cc.o
>>      toku::dmt<klpair_struct, klpair_struct*, toku::klpair_dmtwriter>::verify_internal(toku::dmt_internal::subtree const&, std::__1::vector<bool, std::__1::allocator<bool> >*) const in bndata.cc.o
>> ld: symbol(s) not found for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> make[2]: *** [storage/tokudb/ft-index/ft/libft.dylib] Error 1
>> make[1]: *** [storage/tokudb/ft-index/ft/CMakeFiles/ft.dir/all] Error 2
>> make: *** [all] Error 2
> 
> What MariaDB version do you have?

I was building a very recent github pull of MariaDB 10.1.

commit d161546b67142cdd5322a4ed160441045ae0cd1e
Author: Sergei Petrunia <psergey@xxxxxxxxxxxx>
Date:   Thu Sep 4 01:12:49 2014 +0400

> 
> I've just tried this exactly command line on OSX on 10.1 - worked as
> expected, TokuDB was not built.

How strange...

I used -DWITHOUT_TOKUDB=1 as suggested by Kristian, and that built OK, but -DPLUGIN_TOKUDB=NO doesn't seem to be doing the trick.

I have cmake 3.0.1, in case that's relevant.

Kolbe

-- 
Kolbe Kegel, Principal Support Engineer
SkySQL, The MariaDB Company | http://www.skysql.com



Follow ups

References