Cannot build static mysql server

Bug #1341141 reported by Mimiko on 2014-07-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gearman MySQL UDF
Undecided
Unassigned

Bug Description

I try to cpmpile mysql-with no shared, but have an error when configuring:

mkdir -p ~/src/mysql/bld && \
    cd ~/src/mysql/bld && \
    (make clean; rm ~/src/mysql/bld/CMakeCache.txt; echo 1) && \
    cmake .. -DCMAKE_INSTALL_PREFIX=/opt/mysql -DBUILD_CONFIG=mysql_release -DMYSQL_DATADIR=data -DSYSCONFDIR=etc \
    -DWITH_LIBWRAP=on -DIGNORE_AIO_CHECK=on \
    -DWITH_ZLIB=bundled -DENABLE_GCOV=on -DENABLE_GPROF=yes -DWITH_PIC=on \
    -DENABLED_LOCAL_INFILE=on -DMYSQL_UNIX_ADDR=/tmp/mysql.sock -DINSTALL_LAYOUT=STANDALONE \
    -DWITH_EDITLINE=bundled -DENABLED_PROFILING=ON -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci \
    -DWITH_EMBEDDED_SERVER=on -DWITH_INNOBASE_STORAGE_ENGINE=on -DWITH_ARCHIVE_STORAGE_ENGINE=on \
    -DWITH_BLACKHOLE_STORAGE_ENGINE=on -DWITH_PERFSCHEMA_STORAGE_ENGINE=on -DWITH_FEDERATED_STORAGE_ENGINE=on \
    -DWITH_PARTITION_STORAGE_ENGINE=on -DWITHOUT_EXAMPLE_STORAGE_ENGINE=on -DWITH_EXTRA_CHARSETS=all \
    -DWITH_INNODB_MEMCACHED=on -DWITH_LIBEVENT=bundled -DCPACK_MONOLITHIC_INSTALL=on \
    -DWITH_SSL=bundled -DWITH_PIC=on -DCMAKE_BUILD_TYPE=MinSizeRel -DENABLE_DEBUG_SYNC=off \
    -DENABLE_MEMCACHED_SASL=on -DENABLE_MEMCACHED_SASL_PWDB=on -DFEATURE_SET=community \
    -DCMAKE_SKIP_RPATH=on -DCMAKE_USE_RELATIVE_PATHS=on -DDISABLE_SHARED=on \
    -DWITH_MYSQLD_LDFLAGS="-L/opt/cyrus-sasl/lib" \
    -DCMAKE_C_FLAGS="-fPIC -fPIE -static-libgcc -static-libstdc++" \
    -DCMAKE_CXX_FLAGS="-fPIC -fPIE -I/opt/cyrus-sasl/include"

The error is:
-- LIBEVENT_LIBRARY event
CMake Error at plugin/innodb_memcached/daemon_memcached/CMakeLists.txt:87 (TARGET_LINK_LIBRARIES):
  Cannot specify link libraries for target "libmemcached" which is not built
  by this project.

Of I specify -DWITH_INNODB_MEMCACHED=off, then configure passes and can compile the project.

What is the problem?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers