Build is broken on illumos due to isinf usage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS |
New
|
Undecided
|
Unassigned |
Bug Description
This time the following change caused issue on OpenIndiana:
diff -ur percona-
--- percona-
+++ percona-
@@ -1,4 +1,4 @@
-/* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
+/* Copyright (c) 2002, 2015, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -68,6 +68,10 @@
b += 2;
}while (a != end);
+ /* Check for infinity or NaN */
+ if (my_isinf(square) || isnan(square))
+ square = DBL_MAX;
+
return square;
}
@@ -102,6 +106,9 @@
my_isinf refers to isinf() and it is available only in C++ or C99 on Solaris/illumos. The following patch fixes this:
--- percona-
+++ percona-
@@ -26,6 +26,7 @@
+SET( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99" )
MYSQL_
STORAGE_ENGINE
MANDATORY
tags: | added: contribution |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-3364