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
- All
- Comments
- Work Log
- History
- Activity
- Transitions
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