Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2013 20:51:43 GMT
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181407: [patch] Fix databases/mysql55-server build under 10-CURRENT
Message-ID:  <201308192051.r7JKphpM017203@oldred.freebsd.org>
Resent-Message-ID: <201308192100.r7JL00Ga024482@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         181407
>Category:       ports
>Synopsis:       [patch] Fix databases/mysql55-server build under 10-CURRENT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 19 21:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ryan Steinmetz
>Release:        10-CURRENT
>Organization:
>Environment:
FreeBSD fun 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r254474: Sun Aug 18 05:40:23 UTC 2013     peter@fun.freebsd.org:/usr/obj/usr/src/sys/HALO  amd64
>Description:
[ 49%] Building CXX object sql/CMakeFiles/sql.dir/item_func.cc.o
In file included from /var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/sql/item_func.cc:27:
In file included from /var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/include/my_global.h:351:
/usr/include/sys/timeb.h:42:2: warning: "this file includes <sys/timeb.h> which is deprecated" [-W#warnings]
#warning "this file includes <sys/timeb.h> which is deprecated"
 ^
/var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/sql/item_func.cc:2344:29: error: controlling expression type 'volatile double' not compatible with any generic
      association type
  else if (!dec_negative && my_isinf(value_mul_tmp))
                            ^~~~~~~~~~~~~~~~~~~~~~~
/var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32/include/my_global.h:814:21: note: expanded from macro 'my_isinf'
#define my_isinf(X) isinf(X)
                    ^~~~~~~~
/usr/include/math.h:107:18: note: expanded from macro 'isinf'
#define isinf(x) __fp_type_select(x, __isinff, __isinf, __isinfl)
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/math.h:86:49: note: expanded from macro '__fp_type_select'
#define __fp_type_select(x, f, d, ld) _Generic((0,(x)),                 \
                                                ^~~~~
1 warning and 1 error generated.
*** Error code 1

Stop.
make: stopped in /var/ports/basejail/usr/ports/databases/mysql55-server/work/mysql-5.5.32
*** Error code 1
>How-To-Repeat:
Attempt to build databases/mysql55-server under 10-CURRENT
>Fix:
Add attached patch to files/

Patch attached with submission follows:

--- ./sql/item_func.cc.orig	2013-08-19 16:44:21.000000000 -0400
+++ ./sql/item_func.cc	2013-08-19 16:44:33.000000000 -0400
@@ -2341,7 +2341,7 @@
 
   if (dec_negative && my_isinf(tmp))
     tmp2= 0.0;
-  else if (!dec_negative && my_isinf(value_mul_tmp))
+  else if (!dec_negative && my_isinf((double)value_mul_tmp))
     tmp2= value;
   else if (truncate)
   {


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308192051.r7JKphpM017203>