[MDEV-8470] AIX w/IBM C mysql_async.c.o fails Created: 2015-07-15  Updated: 2015-07-30  Resolved: 2015-07-30

Status: Closed
Project: MariaDB Server
Component/s: Compiling
Affects Version/s: 5.5.44
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Pete Lancashire Assignee: Sergei Golubchik
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

AIX 7.1, IBM C/C++ Compiler 12.1, cmake version 3.3.0-rc2
CFLAGS='-O2 -qattr -qmaxmem=-1 -qarch=pwr7 -qtune=pwr7 -qcache=auto -I/usr/local/include'
CXXFLAGS='-O2 -qattr -qmaxmem=-1 -qarch=pwr7 -qtune=pwr7 -qcache=auto -I/usr/local/include'
LDFLAGS='-L/usr/local/lib64 -L/usr/local/lib -bmaxdata:0x80000000 -brtl'
make --version GNU Make 4.1 Built for powerpc-ibm-aix7.1.0.0
CC=xlc_r
CXX=xlc++_r


Attachments: File cmake.out     File make.out    
Sprint: 5.5.45

 Description   

while waiting for the bug on 10 will not let me continue I gave 5.5 a try

tar xf mariadb-5.5.44.tar.gz ; mv mariadb-5.5.44 mariadb-5.5.44_O2; cd mariadb-5.5.44_O2
cmake . | tee cmake.out ; make | make.out
 
[ 61%] Building C object sql/CMakeFiles/sql.dir/__/sql-common/mysql_async.c.o
"/home/buildsw/packages/mariadb-5.5.44_O2/sql-common/mysql_async.c", line 128.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
"/home/buildsw/packages/mariadb-5.5.44_O2/sql-common/mysql_async.c", line 156.40: 1506-045 (S) Undeclared identifier MSG_DONTWAIT.
make[2]:sql/CMakeFiles/s *** [sqql.dir/build.makl/CMakeFe:3577: recipe files/sqlor target 'sql/C.dir/__/MakeFiles/sql.disql-commr/__/sql-common/on/mysqlmysql_async.c.o'_async.c failed



 Comments   
Comment by Pete Lancashire [ 2015-07-15 ]

In searching for MSG_DONTWAIT i found an older version had in mysql_async.c

#ifdef _AIX
#ifndef MSG_DONTWAIT
#define MSG_DONTWAIT 0
#endif
#endif

putting this back in go me to

[ 84%] Linking CXX executable pfs-t, then things exploaded

[ 84%] Linking CXX executable pfs-t
ld: 0711-224 WARNING: Duplicate symbol: __fe_def_env
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
ld: 0711-317 ERROR: Undefined symbol: end_of_list
ld: 0711-317 ERROR: Undefined symbol: .MDL_request::init(MDL_key::enum_mdl_namespace,const char*,const char*,enum_mdl_type,enum_mdl_duration)
ld: 0711-317 ERROR: Undefined symbol: .LEX::LEX()
ld: 0711-317 ERROR: Undefined symbol: .lex_start(THD*)
ld: 0711-317 ERROR: Undefined symbol: Virtual table for class "DML_prelocking_strategy": Some possible causes are: first non-inline virtual function in "DML_prelocking_strategy" is not defined; or the class is a template instantiation and an explicit instantiation definition of the class is missing.
ld: 0711-317 ERROR: Undefined symbol: .open_and_lock_tables(THD*,TABLE_LIST*,bool,unsigned int,Prelocking_strategy*)
ld: 0711-317 ERROR: Undefined symbol: .Table_check_intact::check(TABLE*,const st_table_field_def*)

and many many more

Comment by Sergei Golubchik [ 2015-07-30 ]

Yes, 5.5 does not compile on AIX. Only 10.0 does — it was fixed in the commit 57cdc561.

Generated at Thu Feb 08 07:27:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.