Bug 236101 - databases/mariadb103-server: Fails to link, undefined symbol: sql_print_information
Summary: databases/mariadb103-server: Fails to link, undefined symbol: sql_print_infor...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Bernard Spil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-28 09:17 UTC by iron.udjin
Modified: 2019-04-19 12:16 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (brnrd)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description iron.udjin 2019-02-28 09:17:07 UTC
mariadb-10.3.13
OS: 12.0-STABLE r344617
clang: 7.0.1 (tags/RELEASE_701/final 349250) (based on LLVM 7.0.1)
CFLAGS= -O2 -pipe -march=native

Options        :
	CONNECT_EXTRA  : off
	DOCS           : off
	GSSAPI_BASE    : off
	GSSAPI_HEIMDAL : off
	GSSAPI_MIT     : off
	GSSAPI_NONE    : on
	INNOBASE       : on
	LZ4            : on
	LZO            : on
	MROONGA        : off
	MSGPACK        : off
	OQGRAPH        : off
	ROCKSDB        : off
	SNAPPY         : on
	SPHINX         : off
	SPIDER         : off
	TOKUDB         : off
	WSREP          : off
	ZMQ            : off
	ZSTD           : on


[ 65%] Linking CXX executable mbstream
cd /usr/ports/databases/mariadb103-server/work/mariadb-10.3.13/extra/mariabackup && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mbstream.dir/link.txt --verbose=1
/usr/bin/c++  -O2 -pipe -march=native -march=native -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 -march=native -march=native -fstack-protector -isystem /usr/local/include -fno-strict-aliasing  -isystem /usr/local/include -D_FORTIFY_SOURCE=2 -DDBUG_OFF    -fstack-protector CMakeFiles/mbstream.dir/ds_buffer.cc.o CMakeFiles/mbstream.dir/ds_local.cc.o CMakeFiles/mbstream.dir/ds_stdout.cc.o CMakeFiles/mbstream.dir/datasink.cc.o CMakeFiles/mbstream.dir/xbstream.cc.o CMakeFiles/mbstream.dir/xbstream_read.cc.o CMakeFiles/mbstream.dir/xbstream_write.cc.o  -o mbstream -Wl,-rpath,:::::::::::::: -pthread ../../storage/innobase/libinnobase.a ../../mysys/libmysys.a crc/libcrc.a ../../dbug/libdbug.a ../../mysys_ssl/libmysys_ssl.a ../../mysys/libmysys.a ../../dbug/libdbug.a ../../mysys_ssl/libmysys_ssl.a -lm -lexecinfo ../../strings/libstrings.a -lssl -lcrypto ../../storage/innobase/libinnobase.a -pthread -lz /usr/local/lib/liblz4.so /usr/local/lib/liblzo2.so -llzma -lbz2 /usr/local/lib/libsnappy.so 
ld: error: undefined symbol: sql_print_information(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::info::~info()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: sql_print_warning(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::warn::~warn()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: sql_print_error(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::error::~error()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: sql_print_error(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::fatal::~fatal()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: sql_print_error(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::error_or_warn::~error_or_warn()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: sql_print_warning(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::error_or_warn::~error_or_warn()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: sql_print_error(char const*, ...)
>>> referenced by ut0ut.cc
>>>               ut0ut.cc.o:(ib::fatal_or_error::~fatal_or_error()) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thd_wait_begin
>>> referenced by srv0conc.cc
>>>               srv0conc.cc.o:(srv_conc_enter_innodb(row_prebuilt_t*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thd_wait_end
>>> referenced by srv0conc.cc
>>>               srv0conc.cc.o:(srv_conc_enter_innodb(row_prebuilt_t*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thd_wait_end
>>> referenced by srv0conc.cc
>>>               srv0conc.cc.o:(srv_conc_enter_innodb(row_prebuilt_t*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: create_thd()
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_destructor_proxy) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: set_thd_proc_info
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_destructor_proxy) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: set_thd_proc_info
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_destructor_proxy) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thread_count
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_destructor_proxy) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: destroy_thd(THD*)
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_destructor_proxy) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thd_slave_thread
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_is_replication_slave_thread(THD*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thd_tx_is_read_only
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(thd_trx_is_read_only(THD*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: create_thd()
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(innobase_create_background_thd(char const*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: set_thd_proc_info
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(innobase_create_background_thd(char const*)) in archive ../../storage/innobase/libinnobase.a

ld: error: undefined symbol: thd_set_ha_data
>>> referenced by ha_innodb.cc
>>>               ha_innodb.cc.o:(innobase_destroy_background_thd(THD*)) in archive ../../storage/innobase/libinnobase.a

ld: error: too many errors emitted, stopping now (use -error-limit=0 to see all errors)
c++: error: linker command failed with exit code 1 (use -v to see invocation)
*** Error code 1

Stop.
make[4]: stopped in /usr/ports/databases/mariadb103-server/work/mariadb-10.3.13
*** Error code 1

It's similar to pr235878
Comment 1 Oleg Sidorkin 2019-04-18 19:30:19 UTC
The following patch helped me to build server (had to disable mroonga):

--- extra/mariabackup/CMakeLists.txt.orig       2019-04-01 17:03:56.000000000 +0300                                                
+++ extra/mariabackup/CMakeLists.txt    2019-04-18 22:16:44.346138000 +0300                                                        
@@ -114,6 +114,7 @@                                                                                                                
 TARGET_LINK_LIBRARIES(mbstream                                                                                                    
   mysys                                                                                                                           
   crc                                                                                                                             
+  sql                                                                                                                             
 )                                                                                                                                 
 ADD_DEPENDENCIES(mbstream GenError)
Comment 2 iron.udjin 2019-04-19 06:16:53 UTC
Works on 12.0-STABLE r346359 with Clang 8.0.0.

Thank you!
Comment 3 iron.udjin 2019-04-19 06:22:48 UTC
... but after restart service I got: [ERROR] Unknown/unsupported storage engine: InnoDB

Port options are the same as in first message.
Comment 4 Oleg Sidorkin 2019-04-19 10:17:55 UTC
(In reply to iron.udjin from comment #3)

Is there something about it in mysql error log?
Comment 5 iron.udjin 2019-04-19 12:16:53 UTC
(In reply to Oleg Sidorkin from comment #4)

Yes, it is in error log. It seems InnoDB has disabled.