Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.3.10
Description
Hello,
I'm trying to build MariaDB 10.3.10 from ports with unset INNOBASE flag to have XtraDB enabled as a default engine. Here is details: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232752
Thank you.
Attachments
- make-configure.log
- 44 kB
Activity
There is no XtraDB in 10.3.
But InnoDB isn't marked as mandatory either. It should be either marked mandatory or the build should work without it.
Thanks for the response. Error in the port is that it still assumes there's XtraDB.
Removed locally, will be committed with next update.
Let me test this. From the looks of it, MariaDB is doing what it should do: Not produce InnoBase related binaries when disabled.
Removed XtraDB option from the port, now an error with `mariabackup pops up. Error only shown partially:
/usr/bin/c++ -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include -Wl,-z,relro,-z,now -fstack-
|
protector --param=ssp-buffer-size=4 -fno-rtti -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/incl
|
ude -D_FORTIFY_SOURCE=2 -DDBUG_OFF -fstack-protector -Wl,--export-dynamic CMakeFiles/mariabackup.dir/xtrabackup.cc.o CMakeFiles/mariabackup.dir/innobackupex.cc
|
.o CMakeFiles/mariabackup.dir/changed_page_bitmap.cc.o CMakeFiles/mariabackup.dir/datasink.c.o CMakeFiles/mariabackup.dir/ds_buffer.c.o CMakeFiles/mariabackup.dir
|
/ds_compress.c.o CMakeFiles/mariabackup.dir/ds_local.cc.o CMakeFiles/mariabackup.dir/ds_stdout.c.o CMakeFiles/mariabackup.dir/ds_tmpfile.c.o CMakeFiles/mariabacku
|
p.dir/ds_xbstream.c.o CMakeFiles/mariabackup.dir/fil_cur.cc.o CMakeFiles/mariabackup.dir/quicklz/quicklz.c.o CMakeFiles/mariabackup.dir/read_filt.cc.o CMakeFiles/
|
mariabackup.dir/write_filt.cc.o CMakeFiles/mariabackup.dir/wsrep.cc.o CMakeFiles/mariabackup.dir/xbstream_write.c.o CMakeFiles/mariabackup.dir/backup_mysql.cc.o C
|
MakeFiles/mariabackup.dir/backup_copy.cc.o CMakeFiles/mariabackup.dir/encryption_plugin.cc.o CMakeFiles/mariabackup.dir/__/__/sql/net_serv.cc.o CMakeFiles/mariaba
|
ckup.dir/__/__/libmysqld/libmysql.c.o -o mariabackup -pthread -llzma -lbz2 ../../sql/libsql.a crc/libcrc.a ../../storage/csv/libcsv.a ../../storage/heap/libheap.
|
a ../../storage/maria/libaria.a ../../storage/myisam/libmyisam.a ../../storage/myisammrg/libmyisammrg.a ../../storage/perfschema/libperfschema.a ../../storage/seq
|
uence/libsequence.a ../../plugin/feedback/libfeedback.a ../../plugin/user_variables/libuser_variables.a ../../plugin/userstat/libuserstat.a ../../sql/libpartition
|
.a ../../sql/libsql_sequence.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ..
|
/../dbug/libdbug.a -lz -lm -lexecinfo ../../strings/libstrings.a ../../vio/libvio.a ../../pcre/libpcre.a -lwrap -lcrypt -lssl -lcrypto -pthread -llzma -lbz2
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `mdl_lock_all()':
|
xtrabackup.cc:(.text+0x40): undefined reference to `fil_system'
|
xtrabackup.cc:(.text+0xf1): undefined reference to `srv_undo_space_id_start'
|
xtrabackup.cc:(.text+0x101): undefined reference to `srv_undo_tablespaces_open'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `filename_to_spacename(unsigned char const*, unsigned long)':
|
...
|
xtrabackup.cc:(.text+0xcb4c): undefined reference to `ut_dbg_assertion_failed(char const*, char const*, unsigned int)'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `append_export_table(char const*, char const*, bool)':
|
xtrabackup.cc:(.text+0xcc18): undefined reference to `ut_get_name(trx_t const*, char const*)'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `PolicyMutex<TTASEventMutex<GenericPolicy> >::exit()':
|
xtrabackup.cc:(.text._ZN11PolicyMutexI14TTASEventMutexI13GenericPolicyEE4exitEv[_ZN11PolicyMutexI14TTASEventMutexI13GenericPolicyEE4exitEv]+0x2d): undefined reference to `os_event_set(os_event*)'
|
xtrabackup.cc:(.text._ZN11PolicyMutexI14TTASEventMutexI13GenericPolicyEE4exitEv[_ZN11PolicyMutexI14TTASEventMutexI13GenericPolicyEE4exitEv]+0x38): undefined reference to `sync_array_object_signalled()'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `TTASEventMutex<GenericPolicy>::enter(unsigned int, unsigned int, char const*, unsigned int)':
|
xtrabackup.cc:(.text._ZN14TTASEventMutexI13GenericPolicyE5enterEjjPKcj[_ZN14TTASEventMutexI13GenericPolicyE5enterEjjPKcj]+0x66): undefined reference to `os_thread_yield()'
|
...
|
xtrabackup.cc:(.text._ZN14TTASEventMutexI13GenericPolicyE5enterEjjPKcj[_ZN14TTASEventMutexI13GenericPolicyE5enterEjjPKcj]+0x157): undefined reference to `sync_array_free_cell(sync_array_t*, sync_cell_t*&)'
|
xtrabackup.cc:(.text._ZN14TTASEventMutexI13GenericPolicyE5enterEjjPKcj[_ZN14TTASEventMutexI13GenericPolicyE5enterEjjPKcj]+0x1ad): undefined reference to `ut_dbg_assertion_failed(char const*, char const*, unsigned int)'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o:(.data+0x2338): undefined reference to `btr_search_enabled'
|
...
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o:(.data+0x2f10): undefined reference to `innodb_log_checksums'
|
CMakeFiles/mariabackup.dir/innobackupex.cc.o: In function `make_backup_dir()':
|
innobackupex.cc:(.text+0xd4): undefined reference to `ut_dbg_assertion_failed(char const*, char const*, unsigned int)'
|
CMakeFiles/mariabackup.dir/innobackupex.cc.o: In function `ibx_init()':
|
innobackupex.cc:(.text+0x888): undefined reference to `ut_dbg_assertion_failed(char const*, char const*, unsigned int)'
|
CMakeFiles/mariabackup.dir/changed_page_bitmap.cc.o: In function `xb_page_bitmap_init()':
|
changed_page_bitmap.cc:(.text+0x60): undefined reference to `srv_data_home'
|
...
|
changed_page_bitmap.cc:(.text+0x131b): undefined reference to `ut_dbg_assertion_failed(char const*, char const*, unsigned int)'
|
CMakeFiles/mariabackup.dir/changed_page_bitmap.cc.o: In function `xb_page_bitmap_deinit(ib_rbt_t*)':
|
changed_page_bitmap.cc:(.text+0x133b): undefined reference to `rbt_free(ib_rbt_t*)'
|
CMakeFiles/mariabackup.dir/changed_page_bitmap.cc.o: In function `xb_page_bitmap_range_get_next_bit(xb_page_bitmap_range_struct*, unsigned long)':
|
changed_page_bitmap.cc:(.text+0x15da): undefined reference to `rbt_next(ib_rbt_t const*, ib_rbt_node_t const*)'
|
CMakeFiles/mariabackup.dir/fil_cur.cc.o: In function `xb_fil_cur_open(xb_fil_cur_t*, xb_read_filt_t*, fil_node_t*, unsigned int, unsigned long long)':
|
fil_cur.cc:(.text+0xbf): undefined reference to `srv_undo_space_id_start'
|
...
|
fil_cur.cc:(.text+0xd13): undefined reference to `os_file_read_func(IORequest const&, int, void*, unsigned long, unsigned long)'
|
CMakeFiles/mariabackup.dir/write_filt.cc.o: In function `wf_incremental_init(xb_write_filt_ctxt_t*, char*, xb_fil_cur_t*)':
|
write_filt.cc:(.text+0x8f): undefined reference to `os_mem_alloc_large(unsigned long*)'
|
CMakeFiles/mariabackup.dir/write_filt.cc.o: In function `wf_incremental_deinit(xb_write_filt_ctxt_t*)':
|
write_filt.cc:(.text+0x33e): undefined reference to `os_mem_free_large(void*, unsigned long)'
|
CMakeFiles/mariabackup.dir/backup_mysql.cc.o: In function `get_mysql_vars(st_mysql*)':
|
backup_mysql.cc:(.text+0xaf6): undefined reference to `srv_log_group_home_dir'
|
...
|
backup_mysql.cc:(.text+0x3ebc): undefined reference to `os_thread_exit(bool)'
|
CMakeFiles/mariabackup.dir/backup_copy.cc.o: In function `directory_exists(char const*, bool)':
|
backup_copy.cc:(.text+0x119): undefined reference to `os_file_opendir(char const*, bool)'
|
...
|
backup_copy.cc:(.text+0x4489): undefined reference to `os_normalize_path(char*)'
|
CMakeFiles/mariabackup.dir/encryption_plugin.cc.o: In function `encryption_plugin_backup_init(st_mysql*)':
|
encryption_plugin.cc:(.text+0x6d0): undefined reference to `srv_encrypt_log'
|
/usr/bin/ld: mariabackup: hidden symbol `_Z31fil_space_verify_crypt_checksumPhRK11page_size_tmm' isn't defined
|
/usr/bin/ld: final link failed: Nonrepresentable section on output
|
c++: error: linker command failed with exit code 1 (use -v to see invocation)
|
*** [extra/mariabackup/mariabackup] Error code 1
|
this must be some self-inflicted bug.
mariabackup is not included to build if innobase is not included
https://github.com/MariaDB/server/blob/10.3/storage/innobase/CMakeLists.txt#L161 does early RETURN() if innobase is not built
the backup is included after the early RETURN() in https://github.com/MariaDB/server/blob/10.3/storage/innobase/CMakeLists.txt#L199
Normally it is not possible to include mariabackup if innobase is not being built.
I tried to build with -DPLUGIN_INNOBASE=NO -DWITHOUT_INNOBASE=1 and it worked (mariabackup doesn't attempt to build).
spil, what's the full cmake configuration that you use?
Can't reproduce the error any more. Must have had a "dirty" build environment.
Strangely I had similar issues with 10.1.37 i386 build and mariabackup which I cannot reproduce either. The 10.1.37 i386 build was in a clean environment (poudriere build)...
cmake args (from make-configure.log)
-DINSTALL_DOCDIR="share/doc/mysql"
|
-DINSTALL_DOCREADMEDIR="share/doc/mysql"
|
-DINSTALL_INCLUDEDIR="include/mysql"
|
-DINSTALL_INFODIR="info"
|
-DINSTALL_LIBDIR="lib/mysql"
|
-DINSTALL_MANDIR="man"
|
-DINSTALL_MYSQLDATADIR="/var/db/mysql"
|
-DINSTALL_MYSQLSHAREDIR="share/mysql"
|
-DINSTALL_MYSQLTESTDIR=
|
-DINSTALL_PLUGINDIR="lib/mysql/plugin"
|
-DINSTALL_SBINDIR="libexec"
|
-DINSTALL_SCRIPTDIR="bin"
|
-DINSTALL_SHAREDIR="share"
|
-DINSTALL_SQLBENCHDIR=
|
-DINSTALL_SUPPORTFILESDIR="share/mysql"
|
-DDEFAULT_SYSCONFDIR="/usr/local/etc"
|
-DWITH_JEMALLOC="system"
|
-DWITH_LIBWRAP=1
|
-DWITH_SSL="/usr"
|
-DWITH_UNIT_TESTS=0
|
-DWITHOUT_DOCS=1
|
-DCURSES_CURSES_LIBRARY="/usr/lib/libcurses.so"
|
-DCURSES_FORM_LIBRARY="/usr/lib/libform.so"
|
-DCURSES_CURSES_LIBRARY="/usr/lib/libncurses.so"
|
-DICONV_LIBRARIES="/usr/local/lib/libiconv.so"
|
-DKRB5_CONFIG=""
|
-DCURSES_NCURSES_LIBRARY="/usr/lib/libncurses.so"
|
-DOPENSSL_ROOT_DIR="/usr"
|
-DOPENSSL_CRYPTO_LIBRARY="/usr/lib/libcrypto.so"
|
-DOPENSSL_SSL_LIBRARY="/usr/lib/libssl.so"
|
-DREMOTEIO_PLUGIN_TYPE="NO"
|
-DCOMPILATION_COMMENT="FreeBSD Ports"
|
-DCMAKE_PREFIX_PATH=/usr/local
|
-DWITH_EMBEDDED_SERVER="ON"
|
-DPLUGIN_AUTH_GSSAPI_CLIENT=OFF
|
-DCMAKE_SKIP_BUILD_RPATH:BOOL=YES
|
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
|
-DWITHOUT_CLIENT=1
|
-DPLUGIN_AUTH_GSSAPI=NO
|
-DPLUGIN_AUTH_GSSAPI_CLIENT=NO
|
-DPLUGIN_INNOBASE=NO
|
-DGRN_WITH_LZ4=OFF
|
-DWITH_INNODB_LZ4=OFF
|
-DWITH_ROCKSDB_LZ4=OFF
|
-DWITH_INNODB_LZO=OFF
|
-DPLUGIN_MROONGA=NO
|
-DPLUGIN_OQGRAPH=NO
|
-DPLUGIN_ROCKSDB=NO
|
-DWITH_INNODB_SNAPPY=OFF
|
-DWITH_ROCKSDB_snappy=OFF
|
-DPLUGIN_SPHINX=DYNAMIC
|
-DPLUGIN_SPIDER=NO
|
-DPLUGIN_TOKUDB=NO
|
-DWITH_WSREP=OFF
|
-DCMAKE_C_COMPILER:STRING="cc"
|
-DCMAKE_CXX_COMPILER:STRING="c++"
|
-DCMAKE_C_FLAGS:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include "
|
-DCMAKE_C_FLAGS_DEBUG:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include "
|
-DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include "
|
-DCMAKE_CXX_FLAGS:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include "
|
-DCMAKE_CXX_FLAGS_DEBUG:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include "
|
-DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include "
|
-DCMAKE_EXE_LINKER_FLAGS:STRING=" -fstack-protector "
|
-DCMAKE_MODULE_LINKER_FLAGS:STRING=" -fstack-protector "
|
-DCMAKE_SHARED_LINKER_FLAGS:STRING=" -fstack-protector "
|
-DCMAKE_INSTALL_PREFIX:PATH="/usr/local"
|
-DCMAKE_BUILD_TYPE:STRING="Release"
|
-DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES
|
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
-DICONV_INCLUDE_DIR=/usr/local/include
|
-DICONV_LIBRARIES=/usr/local/lib/libiconv.so
|
-DICONV_LIBRARY=/usr/local/lib/libiconv.so
|
-DLIBICONV_INCLUDE_DIR=/usr/local/include
|
-DLIBICONV_LIBRARIES=/usr/local/lib/libiconv.so
|
-DLIBICONV_LIBRARY=/usr/local/lib/libiconv.so
|
Given the above, is there anything we need to do in the scope of this JIRA item?
> Given the above, is there anything we need to do in the scope of this JIRA item?
Best to close it for now. If it resurfaces I'll dig some more before I open another item.
I have another independent report of the failure. Looking at what it links, I can see that when it fails, libinnobase.a is missing.
/usr/bin/c++ -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -fno-rtti -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -D_FORTIFY_SOURCE=2 -DDBUG_OFF -fstack-protector -Wl,--export-dynamic CMakeFiles/mariabackup.dir/xtrabackup.cc.o CMakeFiles/mariabackup.dir/innobackupex.cc.o CMakeFiles/mariabackup.dir/changed_page_bitmap.cc.o CMakeFiles/mariabackup.dir/datasink.c.o CMakeFiles/mariabackup.dir/ds_buffer.c.o CMakeFiles/mariabackup.dir/ds_compress.c.o CMakeFiles/mariabackup.dir/ds_local.cc.o CMakeFiles/mariabackup.dir/ds_stdout.c.o CMakeFiles/mariabackup.dir/ds_tmpfile.c.o CMakeFiles/mariabackup.dir/ds_xbstream.c.o CMakeFiles/mariabackup.dir/fil_cur.cc.o CMakeFiles/mariabackup.dir/quicklz/quicklz.c.o CMakeFiles/mariabackup.dir/read_filt.cc.o CMakeFiles/mariabackup.dir/write_filt.cc.o CMakeFiles/mariabackup.dir/wsrep.cc.o CMakeFiles/mariabackup.dir/xbstream_write.c.o CMakeFiles/mariabackup.dir/backup_mysql.cc.o CMakeFiles/mariabackup.dir/backup_copy.cc.o CMakeFiles/mariabackup.dir/encryption_plugin.cc.o CMakeFiles/mariabackup.dir/__/__/sql/net_serv.cc.o CMakeFiles/mariabackup.dir/__/__/libmysqld/libmysql.c.o -o mariabackup -pthread -llzma -lbz2 ../../sql/libsql.a crc/libcrc.a ../../storage/csv/libcsv.a ../../storage/heap/libheap.a ../../storage/innobase/libinnobase.a ../../storage/maria/libaria.a ../../storage/myisam/libmyisam.a ../../storage/myisammrg/libmyisammrg.a ../../storage/perfschema/libperfschema.a ../../storage/sequence/libsequence.a ../../plugin/feedback/libfeedback.a ../../plugin/user_variables/libuser_variables.a ../../plugin/userstat/libuserstat.a ../../sql/libpartition.a ../../sql/libsql_sequence.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a -lz -lm -lexecinfo ../../strings/libstrings.a ../../vio/libvio.a ../../pcre/libpcre.a -lwrap -lcrypt -lssl -lcrypto ../../wsrep/libwsrep.a -pthread -llzma -lbz2
|
/usr/bin/c++ -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -Wl,-z,relro,-z,now -fstack-protector --param=ssp-buffer-size=4 -fno-rtti -O2 -pipe -fstack-protector -isystem /usr/local/include -fno-strict-aliasing -isystem /usr/local/include -D_FORTIFY_SOURCE=2 -DDBUG_OFF -fstack-protector -Wl,--export-dynamic CMakeFiles/mariabackup.dir/xtrabackup.cc.o CMakeFiles/mariabackup.dir/innobackupex.cc.o CMakeFiles/mariabackup.dir/changed_page_bitmap.cc.o CMakeFiles/mariabackup.dir/datasink.c.o CMakeFiles/mariabackup.dir/ds_buffer.c.o CMakeFiles/mariabackup.dir/ds_compress.c.o CMakeFiles/mariabackup.dir/ds_local.cc.o CMakeFiles/mariabackup.dir/ds_stdout.c.o CMakeFiles/mariabackup.dir/ds_tmpfile.c.o CMakeFiles/mariabackup.dir/ds_xbstream.c.o CMakeFiles/mariabackup.dir/fil_cur.cc.o CMakeFiles/mariabackup.dir/quicklz/quicklz.c.o CMakeFiles/mariabackup.dir/read_filt.cc.o CMakeFiles/mariabackup.dir/write_filt.cc.o CMakeFiles/mariabackup.dir/wsrep.cc.o CMakeFiles/mariabackup.dir/xbstream_write.c.o CMakeFiles/mariabackup.dir/backup_mysql.cc.o CMakeFiles/mariabackup.dir/backup_copy.cc.o CMakeFiles/mariabackup.dir/encryption_plugin.cc.o CMakeFiles/mariabackup.dir/__/__/sql/net_serv.cc.o CMakeFiles/mariabackup.dir/__/__/libmysqld/libmysql.c.o -o mariabackup -pthread -llzma -lbz2 ../../sql/libsql.a crc/libcrc.a ../../storage/csv/libcsv.a ../../storage/heap/libheap.a ../../storage/maria/libaria.a ../../storage/myisam/libmyisam.a ../../storage/myisammrg/libmyisammrg.a ../../storage/perfschema/libperfschema.a ../../storage/sequence/libsequence.a ../../plugin/feedback/libfeedback.a ../../plugin/user_variables/libuser_variables.a ../../plugin/userstat/libuserstat.a ../../sql/libpartition.a ../../sql/libsql_sequence.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a -lz -lm -lexecinfo ../../strings/libstrings.a ../../vio/libvio.a ../../pcre/libpcre.a -lwrap -lcrypt -lssl -lcrypto ../../wsrep/libwsrep.a -pthread -llzma -lbz2
|
Note that `../../storage/innobase/libinnobase.a` is missing from the arguments
This is a spurious error that now also surfaces on the FreeBSD package build cluster
http://package19.nyi.freebsd.org/data/112amd64-default-build-as-user/484649/logs/mariadb103-server-10.3.10_1.log
That is an "as clean as it gets" build environment run by the FreeBSD project.
Did some more digging trying to figure out what breaks here. Cmake arguments for this failure
-DINSTALL_DOCDIR="share/doc/mysql" -DINSTALL_DOCREADMEDIR="share/doc/mysql" -DINSTALL_INCLUDEDIR="include/mysql" -DINSTALL_INFODIR="info" -DINSTALL_LIBDIR="lib/mysql" -DINSTALL_MANDIR="man" -DINSTALL_MYSQLDATADIR="/var/db/mysql" -DINSTALL_MYSQLSHAREDIR="share/mysql" -DINSTALL_MYSQLTESTDIR= -DINSTALL_PLUGINDIR="lib/mysql/plugin" -DINSTALL_SBINDIR="libexec" -DINSTALL_SCRIPTDIR="bin" -DINSTALL_SHAREDIR="share" -DINSTALL_SQLBENCHDIR= -DINSTALL_SUPPORTFILESDIR="share/mysql" -DDEFAULT_SYSCONFDIR="/usr/local/etc" -DWITH_JEMALLOC="system" -DWITH_LIBWRAP=1 -DWITH_SSL="/usr" -DWITH_UNIT_TESTS=0 -DWITHOUT_DOCS=1 -DCURSES_CURSES_LIBRARY="/usr/lib/libcurses.so" -DCURSES_FORM_LIBRARY="/usr/lib/libform.so" -DCURSES_CURSES_LIBRARY="/usr/lib/libncurses.so" -DICONV_LIBRARIES="/usr/local/lib/libiconv.so" -DKRB5_CONFIG="" -DCURSES_NCURSES_LIBRARY="/usr/lib/libncurses.so" -DOPENSSL_ROOT_DIR="/usr" -DOPENSSL_CRYPTO_LIBRARY="/usr/lib/libcrypto.so" -DOPENSSL_SSL_LIBRARY="/usr/lib/libssl.so" -DREMOTEIO_PLUGIN_TYPE="NO" -DCOMPILATION_COMMENT="FreeBSD Ports" -DCMAKE_PREFIX_PATH=/usr/local -DWITH_EMBEDDED_SERVER="ON" -DPLUGIN_AUTH_GSSAPI_CLIENT=OFF -DCMAKE_SKIP_BUILD_RPATH:BOOL=YES -DWITHOUT_EXAMPLE_STORAGE_ENGINE=1 -DWITHOUT_CLIENT=1 -DPLUGIN_AUTH_GSSAPI=NO -DPLUGIN_AUTH_GSSAPI_CLIENT=NO -DPLUGIN_INNOBASE=DYNAMIC -DGRN_WITH_LZ4=OFF -DWITH_INNODB_LZ4=OFF -DWITH_ROCKSDB_LZ4=OFF -DWITH_INNODB_LZO=OFF -DPLUGIN_MROONGA=NO -DPLUGIN_OQGRAPH=NO -DPLUGIN_ROCKSDB=NO -DWITH_INNODB_SNAPPY=OFF -DWITH_ROCKSDB_snappy=OFF -DPLUGIN_SPHINX=DYNAMIC -DPLUGIN_SPIDER=DYNAMIC -DPLUGIN_TOKUDB=NO -DCMAKE_C_COMPILER:STRING="cc" -DCMAKE_CXX_COMPILER:STRING="c++" -DCMAKE_C_FLAGS:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include " -DCMAKE_C_FLAGS_DEBUG:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include " -DCMAKE_C_FLAGS_RELEASE:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include " -DCMAKE_CXX_FLAGS:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include " -DCMAKE_CXX_FLAGS_DEBUG:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include " -DCMAKE_CXX_FLAGS_RELEASE:STRING="-O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include -isystem /usr/local/include " -DCMAKE_EXE_LINKER_FLAGS:STRING=" -fstack-protector " -DCMAKE_MODULE_LINKER_FLAGS:STRING=" -fstack-protector " -DCMAKE_SHARED_LINKER_FLAGS:STRING=" -fstack-protector " -DCMAKE_INSTALL_PREFIX:PATH="/usr/local" -DCMAKE_BUILD_TYPE:STRING="Release" -DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=YES -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DICONV_INCLUDE_DIR=/usr/local/include -DICONV_LIBRARIES=/usr/local/lib/libiconv.so -DICONV_LIBRARY=/usr/local/lib/libiconv.so -DLIBICONV_INCLUDE_DIR=/usr/local/include -DLIBICONV_LIBRARIES=/usr/local/lib/libiconv.so -DLIBICONV_LIBRARY=/usr/local/lib/libiconv.so
|
Is it an issue with `-DPLUGIN_INNOBASE=DYNAMIC`?
If I configure it without -DPLUGIN_INNOBASE (i.e. default) it becomes `PLUGIN_INNOBASE:STRING=STATIC` in CmakeCache.txt and I do see libinnobase in `extra/mariabackup/CMakeFiles/mariabackup.dir/link.txt`
Can someone pls update the description?
Thanks, reproducible with -DPLUGIN_INNOBASE=DYNAMIC (other parameters don't matter, can be kept default)
10.3 a33c0e3f34afd0 |
Linking CXX executable mariabackup
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `log_block_calc_checksum_crc32(unsigned char const*)':
|
/data/src/10.3-mdev17560/storage/innobase/include/log0log.ic:240: undefined reference to `ut_crc32'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `datafiles_iter_next(datafiles_iter_t*)':
|
/data/src/10.3-mdev17560/extra/mariabackup/xtrabackup.cc:431: undefined reference to `fil_system'
|
CMakeFiles/mariabackup.dir/xtrabackup.cc.o: In function `io_watching_thread(void*)':
|
/data/src/10.3-mdev17560/extra/mariabackup/xtrabackup.cc:2819: undefined reference to `os_thread_sleep(unsigned long)'
|
...
|
<lots of undefined references>
|
...
|
When configured with
-DPLUGIN_INNOBASE=NO -DWITHOUT_INNOBASE=1
-DPLUGIN_XTRADB=DYNAMIC
MariaDB 10.3 does not install
bin/innochecksum
bin/mariabackup
bin/mbstream
XtraDB and InnoDB being drop-in replacements I think this is an error.