Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-25943

connect engine isn't linking to xml2 correctly

    XMLWordPrintable

    Details

      Description

      e.g from https://buildbot.mariadb.org/#/builders/121/builds/1342/steps/6/logs/stdio

      ----------SERVER LOG START-----------
      2021-06-16 20:31:29 0 [Note] /home/buildbot/aix/build/sql/mariadbd (mysqld 10.6.2-MariaDB-log) starting as process 25231364 ...
      2021-06-16 20:31:29 0 [Warning] Could not increase number of max_open_files to more than 1024 (request: 32182)
      2021-06-16 20:31:29 0 [Warning] Changed limits: max_open_files: 1024  max_connections: 151 (was 151)  table_cache: 421 (was 2000)
      2021-06-16 20:31:29 0 [ERROR] mariadbd: Can't open shared library '/home/buildbot/aix/build/mysql-test/var/plugins/ha_connect.so' (errno: 8, Could not load module /home/buildbot/aix/build/mysql-test/var/plugins/ha_connect.so.
      	Dependent module /opt/freeware/lib/libxml2)
      2021-06-16 20:31:29 0 [ERROR] Couldn't load plugins from 'ha_connect.so'.
      2021-06-16 20:31:29 0 [Note] Plugin 'SEQUENCE' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'InnoDB' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_CMP_PER_INDEX' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_CMP' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_TABLESPACES_ENCRYPTION' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_BUFFER_PAGE_LRU' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'FEEDBACK' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_CMPMEM' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'user_variables' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_FOREIGN_COLS' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_BUFFER_POOL_STATS' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_FOREIGN' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_TABLES' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'INNODB_SYS_VIRTUAL' is disabled.
      2021-06-16 20:31:29 0 [Note] Plugin 'unix_socket' is disabled.
      2021-06-16 20:31:29 0 [Warning] /home/buildbot/aix/build/sql/mariadbd: unknown variable 'loose-feedback-debug-startup-interval=20'
      2021-06-16 20:31:29 0 [Warning] /home/buildbot/aix/build/sql/mariadbd: unknown variable 'loose-feedback-debug-first-interval=60'
      2021-06-16 20:31:29 0 [Warning] /home/buildbot/aix/build/sql/mariadbd: unknown variable 'loose-feedback-debug-interval=60'
      2021-06-16 20:31:29 0 [Warning] /home/buildbot/aix/build/sql/mariadbd: unknown option '--loose-pam-debug'
      2021-06-16 20:31:29 0 [Warning] /home/buildbot/aix/build/sql/mariadbd: unknown option '--loose-aria'
      2021-06-16 20:31:29 0 [ERROR] /home/buildbot/aix/build/sql/mariadbd: unknown variable 'plugin-connect=ON'
      2021-06-16 20:31:29 0 [ERROR] Aborting
      ----------SERVER LOG END-------------
      

      mdborg@p8-aix1-mariadb:[/home/mdborg/build-mariadb-server]cmake --build . --verbose --target connect
      ....
      [ 94%] Linking CXX shared module ha_connect
      cd /home/mdborg/build-mariadb-server/storage/connect && /opt/freeware/bin/cmake -E cmake_link_script CMakeFiles/connect.dir/link.txt --verbose=1
      "/opt/freeware/share/cmake-3.16/Modules/Platform/AIX/ExportImportList" -o CMakeFiles/connect.dir/objects.exp CMakeFiles/connect.dir/ha_connect.cc.o CMakeFiles/connect.dir/connect.cc.o CMakeFiles/connect.dir/user_connect.cc.o CMakeFiles/connect.dir/mycat.cc.o CMakeFiles/connect.dir/fmdlex.c.o CMakeFiles/connect.dir/osutil.c.o CMakeFiles/connect.dir/rcmsg.c.o CMakeFiles/connect.dir/array.cpp.o CMakeFiles/connect.dir/blkfil.cpp.o CMakeFiles/connect.dir/colblk.cpp.o CMakeFiles/connect.dir/csort.cpp.o CMakeFiles/connect.dir/filamap.cpp.o CMakeFiles/connect.dir/filamdbf.cpp.o CMakeFiles/connect.dir/filamfix.cpp.o CMakeFiles/connect.dir/filamgz.cpp.o CMakeFiles/connect.dir/filamtxt.cpp.o CMakeFiles/connect.dir/filter.cpp.o CMakeFiles/connect.dir/json.cpp.o CMakeFiles/connect.dir/jsonudf.cpp.o CMakeFiles/connect.dir/maputil.cpp.o CMakeFiles/connect.dir/myconn.cpp.o CMakeFiles/connect.dir/myutil.cpp.o CMakeFiles/connect.dir/plgdbutl.cpp.o CMakeFiles/connect.dir/plugutil.cpp.o CMakeFiles/connect.dir/reldef.cpp.o CMakeFiles/connect.dir/tabcol.cpp.o CMakeFiles/connect.dir/tabdos.cpp.o CMakeFiles/connect.dir/tabext.cpp.o CMakeFiles/connect.dir/tabfix.cpp.o CMakeFiles/connect.dir/tabfmt.cpp.o CMakeFiles/connect.dir/tabjson.cpp.o CMakeFiles/connect.dir/table.cpp.o CMakeFiles/connect.dir/tabmul.cpp.o CMakeFiles/connect.dir/tabmysql.cpp.o CMakeFiles/connect.dir/taboccur.cpp.o CMakeFiles/connect.dir/tabpivot.cpp.o CMakeFiles/connect.dir/tabsys.cpp.o CMakeFiles/connect.dir/tabtbl.cpp.o CMakeFiles/connect.dir/tabutil.cpp.o CMakeFiles/connect.dir/tabvir.cpp.o CMakeFiles/connect.dir/tabxcl.cpp.o CMakeFiles/connect.dir/valblk.cpp.o CMakeFiles/connect.dir/value.cpp.o CMakeFiles/connect.dir/xindex.cpp.o CMakeFiles/connect.dir/xobject.cpp.o CMakeFiles/connect.dir/inihandl.cpp.o CMakeFiles/connect.dir/bson.cpp.o CMakeFiles/connect.dir/bsonudf.cpp.o CMakeFiles/connect.dir/tabbson.cpp.o CMakeFiles/connect.dir/filamvct.cpp.o CMakeFiles/connect.dir/tabvct.cpp.o CMakeFiles/connect.dir/libdoc.cpp.o CMakeFiles/connect.dir/tabxml.cpp.o CMakeFiles/connect.dir/plgxml.cpp.o CMakeFiles/connect.dir/tabodbc.cpp.o CMakeFiles/connect.dir/odbconn.cpp.o CMakeFiles/connect.dir/filamzip.cpp.o CMakeFiles/connect.dir/tabzip.cpp.o CMakeFiles/connect.dir/unzip.c.o CMakeFiles/connect.dir/ioapi.c.o CMakeFiles/connect.dir/zip.c.o CMakeFiles/connect.dir/tabrest.cpp.o
      /opt/freeware/bin/g++ -fPIC -Wl,-bE:CMakeFiles/connect.dir/objects.exp  -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -maix64 -pthread -mcmodel=large -pie -fPIC -Wall -Wmissing-declarations -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=unused-value -Wno-error=parentheses -Wno-error=strict-aliasing -Wno-error=misleading-indentation -Wno-error=format-truncation -Wno-error=implicit-fallthrough -Wno-error=type-limits -fpermissive -fexceptions -fPIC  -O2 -g -DNDEBUG -fno-omit-frame-pointer -D_FORTIFY_SOURCE=2 -DDBUG_OFF -Wall -Wextra -Wno-format-truncation -Wno-init-self -Wno-nonnull-compare -Wno-unused-parameter -Woverloaded-virtual -Wnon-virtual-dtor -Wvla -Wwrite-strings -Wl,-bE:/home/mdborg/mariadb-server/libservices/mysqlservices_aix.def -shared -Wl,-bnoipath -o ha_connect.so CMakeFiles/connect.dir/ha_connect.cc.o CMakeFiles/connect.dir/connect.cc.o CMakeFiles/connect.dir/user_connect.cc.o CMakeFiles/connect.dir/mycat.cc.o CMakeFiles/connect.dir/fmdlex.c.o CMakeFiles/connect.dir/osutil.c.o CMakeFiles/connect.dir/rcmsg.c.o CMakeFiles/connect.dir/array.cpp.o CMakeFiles/connect.dir/blkfil.cpp.o CMakeFiles/connect.dir/colblk.cpp.o CMakeFiles/connect.dir/csort.cpp.o CMakeFiles/connect.dir/filamap.cpp.o CMakeFiles/connect.dir/filamdbf.cpp.o CMakeFiles/connect.dir/filamfix.cpp.o CMakeFiles/connect.dir/filamgz.cpp.o CMakeFiles/connect.dir/filamtxt.cpp.o CMakeFiles/connect.dir/filter.cpp.o CMakeFiles/connect.dir/json.cpp.o CMakeFiles/connect.dir/jsonudf.cpp.o CMakeFiles/connect.dir/maputil.cpp.o CMakeFiles/connect.dir/myconn.cpp.o CMakeFiles/connect.dir/myutil.cpp.o CMakeFiles/connect.dir/plgdbutl.cpp.o CMakeFiles/connect.dir/plugutil.cpp.o CMakeFiles/connect.dir/reldef.cpp.o CMakeFiles/connect.dir/tabcol.cpp.o CMakeFiles/connect.dir/tabdos.cpp.o CMakeFiles/connect.dir/tabext.cpp.o CMakeFiles/connect.dir/tabfix.cpp.o CMakeFiles/connect.dir/tabfmt.cpp.o CMakeFiles/connect.dir/tabjson.cpp.o CMakeFiles/connect.dir/table.cpp.o CMakeFiles/connect.dir/tabmul.cpp.o CMakeFiles/connect.dir/tabmysql.cpp.o CMakeFiles/connect.dir/taboccur.cpp.o CMakeFiles/connect.dir/tabpivot.cpp.o CMakeFiles/connect.dir/tabsys.cpp.o CMakeFiles/connect.dir/tabtbl.cpp.o CMakeFiles/connect.dir/tabutil.cpp.o CMakeFiles/connect.dir/tabvir.cpp.o CMakeFiles/connect.dir/tabxcl.cpp.o CMakeFiles/connect.dir/valblk.cpp.o CMakeFiles/connect.dir/value.cpp.o CMakeFiles/connect.dir/xindex.cpp.o CMakeFiles/connect.dir/xobject.cpp.o CMakeFiles/connect.dir/inihandl.cpp.o CMakeFiles/connect.dir/bson.cpp.o CMakeFiles/connect.dir/bsonudf.cpp.o CMakeFiles/connect.dir/tabbson.cpp.o CMakeFiles/connect.dir/filamvct.cpp.o CMakeFiles/connect.dir/tabvct.cpp.o CMakeFiles/connect.dir/libdoc.cpp.o CMakeFiles/connect.dir/tabxml.cpp.o CMakeFiles/connect.dir/plgxml.cpp.o CMakeFiles/connect.dir/tabodbc.cpp.o CMakeFiles/connect.dir/odbconn.cpp.o CMakeFiles/connect.dir/filamzip.cpp.o CMakeFiles/connect.dir/tabzip.cpp.o CMakeFiles/connect.dir/unzip.c.o CMakeFiles/connect.dir/ioapi.c.o CMakeFiles/connect.dir/zip.c.o CMakeFiles/connect.dir/tabrest.cpp.o  -Wl,-blibpath:/home/mdborg/build-mariadb-server/sql:/opt/freeware/lib/gcc/powerpc-ibm-aix7.1.0.0/8:/opt/freeware/lib:/usr/lib:/lib ../../libservices/libmysqlservices.a /usr/lib/libz.a /usr/lib/libxml2.a /opt/freeware/lib/libodbc.a ../../sql/libserver.a 
      ld: 0711-224 WARNING: Duplicate symbol: key_memory_log_event
      ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
      strip -e -X32_64 ha_connect.so
      gmake[3]: Leaving directory '/home/mdborg/build-mariadb-server'
      [100%] Built target connect
      gmake[2]: Leaving directory '/home/mdborg/build-mariadb-server'
      /opt/freeware/bin/cmake -E cmake_progress_start /home/mdborg/build-mariadb-server/CMakeFiles 0
      gmake[1]: Leaving directory '/home/mdborg/build-mariadb-server'
      mdborg@p8-aix1-mariadb:[/home/mdborg/build-mariadb-server]ldd ./storage/connect/ha_connect.so
      ./storage/connect/ha_connect.so needs:
               /opt/freeware/lib/pthread/ppc64/libgcc_s.a(shr.o)
               /opt/freeware/lib/pthread/ppc64/libstdc++.a(libstdc++.so.6)
               /usr/lib/libc.a(shr_64.o)
               /home/mdborg/build-mariadb-server/sql/libserver.a(libserver.so)
               /usr/lib/libpthreads.a(shr_xpg5_64.o)
               /opt/freeware/lib/libodbc.a(libodbc.so.2)
               /opt/freeware/lib/libz.a(libz.so.1)
               /opt/freeware/lib/libxml2.a(libxml2.shr_64.o)
      ar: 0707-109 Member name libxml2.shr_64.o does not exist.
      dump: /home/mdborg/tmp/ldd10158220/extract/libxml2.shr_64.o: 0654-106 Cannot open the specified file.
               /unix
               /usr/lib/libcrypt.a(shr_64.o)
               /usr/lib/libpthread.a(shr_xpg5_64.o)
               /usr/lib/libcrypto.a(libcrypto.so.1.0.2)
               /usr/lib/libssl.a(libssl.so.1.0.2)
               /usr/lib/libdl.a(shr_64.o)
               /opt/freeware/lib/libsnappy.a(libsnappy.so.1.8.0)
               /opt/freeware/lib/liblzma.a(liblzma.so.5)
               /opt/freeware/lib/liblz4.a(liblz4.so.1)
               /opt/freeware/lib/libpcre2-8.a(libpcre2-8.so.0)
               /opt/freeware/lib/libiconv.a(libiconv.so.2)
      

      So /opt/freeware/lib/libxml2.a (runtime loaded) isn't the same as /usr/lib/libxml2.a in the linking.

        Attachments

          Activity

            People

            Assignee:
            danblack Daniel Black
            Reporter:
            danblack Daniel Black
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration