[MDEV-3089] LP:947990 - Can't build 5.5 on Ubuntu with systemtap-sdt-dev installed Created: 2012-03-06  Updated: 2012-10-04  Resolved: 2012-10-04

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Hartmut Holzgraefe Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: Launchpad

Attachments: XML File LPexportBug947990.xml    

 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



 Comments   
Comment by Vladislav Vaintroub [ 2012-03-06 ]

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

Comment by Rasmus Johansson (Inactive) [ 2012-03-06 ]

Launchpad bug id: 947990

Comment by Hartmut Holzgraefe [ 2012-03-06 ]

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 ...

Generated at Thu Feb 08 06:46:14 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.