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

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: Can't build 5.5 on Ubuntu with systemtap-sdt-dev installed
            Exact duplicate of https://bugs.launchpad.net/maria/+bug/942266 , which is already fixed in the lp:maria/5.5

            Show
            wlad Vladislav Vaintroub added a comment - Re: Can't build 5.5 on Ubuntu with systemtap-sdt-dev installed Exact duplicate of https://bugs.launchpad.net/maria/+bug/942266 , which is already fixed in the lp:maria/5.5
            Hide
            hholzgra Hartmut Holzgraefe added a comment -

            Re: Can't build 5.5 on Ubuntu with systemtap-sdt-dev installed
            Ah ... wasn't sure whether i had reported it here already, and it didn't show in my "Reported Bugs" page ... so lesson learned today: that page only shows open/active bugs, not fiex ones ...

            Show
            hholzgra Hartmut Holzgraefe added a comment - Re: Can't build 5.5 on Ubuntu with systemtap-sdt-dev installed Ah ... wasn't sure whether i had reported it here already, and it didn't show in my "Reported Bugs" page ... so lesson learned today: that page only shows open/active bugs, not fiex ones ...
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 947990

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 947990

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                hholzgra Hartmut Holzgraefe
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: