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

10.5.7 does not build stacktrace-t (OpenBSD) - HAVE_BACKTRACE / HAVE_BACKTRACE_FD missing

Details

    Description

      The 10.5.7 release does not build.

      [499/1657] : && /home/ports/pobj/mariadb-10.5.7/bin/c++  -O2 -pipe  -I/usr/local/include -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF  -L/usr/local/lib -Wl,-z,relro,-z,now unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o  -o unittest/mysys/stacktrace-t -L/usr/lib   -L/usr/local/lib -lpthread  unittest/mytap/libmytap.a  mysys/libmysys.a  dbug/libdbug.a  strings/libstrings.a  mysys/libmysys.a  dbug/libdbug.a  strings/libstrings.a  -lz  -lm  -lpthread  -Wl,-rpath-link,/usr/X11R6/lib && :
      FAILED: unittest/mysys/stacktrace-t
      : && /home/ports/pobj/mariadb-10.5.7/bin/c++  -O2 -pipe  -I/usr/local/include -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF  -L/usr/local/lib -Wl,-z,relro,-z,now unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o  -o unittest/mysys/stacktrace-t -L/usr/lib   -L/usr/local/lib -lpthread  unittest/mytap/libmytap.a  mysys/libmysys.a  dbug/libdbug.a  strings/libstrings.a  mysys/libmysys.a  dbug/libdbug.a  strings/libstrings.a  -lz  -lm  -lpthread  -Wl,-rpath-link,/usr/X11R6/lib && :
      ld: error: undefined symbol: my_safe_print_str
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      >>> referenced by stacktrace-t.c
      >>>               unittest/mysys/CMakeFiles/stacktrace-t.dir/stacktrace-t.c.o:(test_my_safe_print_str)
      c++: error: linker command failed with exit code 1 (use -v to see invocation)
      ninja: build stopped: subcommand failed.
      

      Attachments

        Activity

          danblack Daniel Black added a comment -

          Correct. Sorry for delay. I did mean to go back and adjust it to fix the implicit declaration.

          danblack Daniel Black added a comment - Correct. Sorry for delay. I did mean to go back and adjust it to fix the implicit declaration.
          danblack Daniel Black added a comment -

          Thanks Mingli-Yu, that's a nice simple patch and I've used it. Thank you.

          danblack Daniel Black added a comment - Thanks Mingli-Yu , that's a nice simple patch and I've used it. Thank you.
          brad0 Brad Smith added a comment -

          I see the patch for MDEV-24131 has been commited to the 10.2 branch. Can it please be merged forward to the 10.3 through 10.6 branches before the next releases are out?

          brad0 Brad Smith added a comment - I see the patch for MDEV-24131 has been commited to the 10.2 branch. Can it please be merged forward to the 10.3 through 10.6 branches before the next releases are out?
          danblack Daniel Black added a comment -

          It will be merged to the following branches.

          danblack Daniel Black added a comment - It will be merged to the following branches.

          brad0, it's guaranteed by our release procedure. We always merge from 10.2 (or whatever the lowest branch is) all the way up before the release

          serg Sergei Golubchik added a comment - brad0 , it's guaranteed by our release procedure. We always merge from 10.2 (or whatever the lowest branch is) all the way up before the release

          People

            danblack Daniel Black
            brad0 Brad Smith
            Votes:
            0 Vote for this issue
            Watchers:
            5 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.