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

Build failure in mbstream

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: 10.2.9
    • Fix Version/s: N/A
    • Component/s: Backup, Compiling
    • Labels:
      None
    • Environment:
      FreeBSD 11.1-p1 amd64

      Description

      When building with compression support, linking mbstream fails.

      The link.txt script contains the compression libraries twice, removing the first occurence fixes linking.

      extra/mariabackup/CMakeFiles/mbstream.dir/link.txt

      /usr/bin/c++  -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include  -isystem /usr/local/include -DWITH_INNODB_DISALLOW_WRITES -fno-rtti -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include  -isystem /usr/local/include -DDBUG_OFF   -Wl,-rpath,/usr/local/lib -fstack-protector CMakeFiles/mbstream.dir/ds_buffer.c.o CMakeFiles/mbstream.dir/ds_local.c.o CMakeFiles/mbstream.dir/ds_stdout.c.o CMakeFiles/mbstream.dir/datasink.c.o CMakeFiles/mbstream.dir/xbstream.c.o CMakeFiles/mbstream.dir/xbstream_read.c.o CMakeFiles/mbstream.dir/xbstream_write.c.o  -o mbstream -Wl,-rpath,:::::::::::::: -pthread ../../storage/innobase/libinnobase.a /usr/local/lib/liblz4.so /usr/local/lib/liblzo2.so -llzma -lbz2 /usr/local/lib/libsnappy.so ../../sql/libsql.a ../../mysys/libmysys.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 ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a -lm -lexecinfo ../../strings/libstrings.a ../../vio/libvio.a ../../pcre/libpcre.a -lwrap -lcrypt /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so ../../wsrep/libwsrep.a ../../storage/innobase/libinnobase.a -pthread -lz /usr/local/lib/liblz4.so /usr/local/lib/liblzo2.so -llzma -lbz2 /usr/local/lib/libsnappy.so
      

      Changed into

      /usr/bin/c++  -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include  -isystem /usr/local/include -DWITH_INNODB_DISALLOW_WRITES -fno-rtti -O2 -fno-strict-aliasing -pipe -march=native -fstack-protector -isystem /usr/local/include  -isystem /usr/local/include -DDBUG_OFF   -Wl,-rpath,/usr/local/lib -fstack-protector CMakeFiles/mbstream.dir/ds_buffer.c.o CMakeFiles/mbstream.dir/ds_local.c.o CMakeFiles/mbstream.dir/ds_stdout.c.o CMakeFiles/mbstream.dir/datasink.c.o CMakeFiles/mbstream.dir/xbstream.c.o CMakeFiles/mbstream.dir/xbstream_read.c.o CMakeFiles/mbstream.dir/xbstream_write.c.o  -o mbstream -Wl,-rpath,:::::::::::::: -pthread ../../storage/innobase/libinnobase.a ../../sql/libsql.a ../../mysys/libmysys.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 ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a ../../mysys/libmysys.a ../../mysys_ssl/libmysys_ssl.a ../../dbug/libdbug.a -lm -lexecinfo ../../strings/libstrings.a ../../vio/libvio.a ../../pcre/libpcre.a -lwrap -lcrypt /usr/local/lib/libssl.so /usr/local/lib/libcrypto.so ../../wsrep/libwsrep.a ../../storage/innobase/libinnobase.a -pthread -lz /usr/local/lib/liblz4.so /usr/local/lib/liblzo2.so -llzma -lbz2 /usr/local/lib/libsnappy.so
      

      Fixes the build

        Attachments

          Activity

            People

            Assignee:
            wlad Vladislav Vaintroub
            Reporter:
            spil Bernard Spil
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.