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

LP:947990 - Can't build 5.5 on Ubuntu with systemtap-sdt-dev installed

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      See also http://bugs.mysql.com/bug.php?id=64477

      [ 25%] Building CXX object storage/myisam/CMakeFiles/myisam.dir/ha_myisam.cc.o
      In file included from /usr/include/sys/sdt.h:65:0,
      from /home/hartmut/projects/mysql/releases/mariadb-5.5.20/build/include/probes_mysql_dtrace.h:9,
      from /home/hartmut/projects/mysql/releases/mariadb-5.5.20/include/probes_mysql.h:24,
      from /home/hartmut/projects/mysql/releases/mariadb-5.5.20/sql/sql_class.h:38,
      from /home/hartmut/projects/mysql/releases/mariadb-5.5.20/storage/myisam/ha_myisam.cc:32:
      /usr/include/c++/4.6/limits:309:11: error: macro "min" requires 2 arguments, but only 1 given
      /usr/include/c++/4.6/limits:313:11: error: macro "max" requires 2 arguments, but only 1 given
      /usr/include/c++/4.6/limits:376:11: error: macro "min" requires 2 arguments, but only 1 given
      /usr/include/c++/4.6/limits:379:11: error: macro "max" requires 2 arguments, but only 1 given

      as sdt.h includes the C++ "limits" header file when being processed in C++ mode.
      As my_globals.h as already been included at that point the min() and max() methods in the
      class templates in the limits header clash with the min() and max() macros defined in
      my_globals.h

      How to repeat:

      try to build 5.5 with systemtap-sdt-dev package installed

      Suggested fix:

      make sure that probes_mysql_dtrace.h is included before my_globals.h

      Workarounds:

      uninstall "systemtap-sdt-dev" or set the cmake setting ENABLE_DTRACE to OFF

      Attachments

        Activity

          People

            wlad Vladislav Vaintroub
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            0 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.