Skip to content

ubuntu 18.04 cmake bug #31

Open
Open
@symedia

Description

@symedia

When build by build.sh

I have next problem:

[ 73%] Linking CXX executable replicatord
/usr/bin/cmake -E cmake_link_script CMakeFiles/rp.dir/link.txt --verbose=1
/usr/bin/c++   -pipe -O2 -fomit-frame-pointer -ffunction-sections -fdata-sections -O3 -DNDEBUG  -rdynamic -Wl,-s -Wl,--gc-sections CMakeFiles/rp.dir/dbreader.cpp.o CMakeFiles/rp.dir/main.cpp.o CMakeFiles/rp.dir/tpwriter.cpp.o  -o replicatord -lrt -ldl lib/tarantool-c/tnt/libtarantool.a lib/libslave/libslave_a.a lib/yaml-cpp/libyaml-cpp.a -lpthread lib/tarantool-c/third_party/msgpuck/libmsgpuck.a 
lib/libslave/libslave_a.a(client_plugin.c.o): In function `do_add_plugin':
client_plugin.c:(.text.do_add_plugin+0x83): undefined reference to `dlclose'
lib/libslave/libslave_a.a(client_plugin.c.o): In function `mysql_client_plugin_deinit':
client_plugin.c:(.text.mysql_client_plugin_deinit+0x41): undefined reference to `dlclose'
lib/libslave/libslave_a.a(client_plugin.c.o): In function `mysql_load_plugin_v':
client_plugin.c:(.text.mysql_load_plugin_v+0xfc): undefined reference to `dlopen'
client_plugin.c:(.text.mysql_load_plugin_v+0x119): undefined reference to `dlsym'
client_plugin.c:(.text.mysql_load_plugin_v+0x2b1): undefined reference to `dlerror'
client_plugin.c:(.text.mysql_load_plugin_v+0x2c8): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
CMakeFiles/rp.dir/build.make:154: recipe for target 'replicatord' failed
make[2]: *** [replicatord] Error 1
make[2]: выход из каталога «/opt/mysql-tarantool-replication»
CMakeFiles/Makefile2:73: recipe for target 'CMakeFiles/rp.dir/all' failed
make[1]: *** [CMakeFiles/rp.dir/all] Error 2
make[1]: выход из каталога «/opt/mysql-tarantool-replication»
Makefile:132: recipe for target 'all' failed
make: *** [all] Error 2

How to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbuild

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions