Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2017 18:30:38 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r440885 - head/databases/gigabase
Message-ID:  <201705141830.v4EIUcGY065381@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun May 14 18:30:38 2017
New Revision: 440885
URL: https://svnweb.freebsd.org/changeset/ports/440885

Log:
  databases/gigabase: work around GCC >= 6 bustage
  
  testtimeseries.cpp: In function 'float fmax(float, float)':
  testtimeseries.cpp:50:35: error: 'float fmax(float, float)' conflicts with a previous declaration
   inline float fmax(float x, float y) { return x > y ? x : y; }
                                     ^
  In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                   from testtimeseries.cpp:15:
  /usr/local/lib/gcc6/include/c++/cmath:1452:3: note: previous declaration 'constexpr float std::fmax(float, float)'
     fmax(float __x, float __y)
     ^~~~
  testtimeseries.cpp: In function 'float fmin(float, float)':
  testtimeseries.cpp:51:35: error: 'float fmin(float, float)' conflicts with a previous declaration
   inline float fmin(float x, float y) { return x < y ? x : y; }
                                     ^
  In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                   from testtimeseries.cpp:15:
  /usr/local/lib/gcc6/include/c++/cmath:1472:3: note: previous declaration 'constexpr float std::fmin(float, float)'
     fmin(float __x, float __y)
     ^~~~
  testtimeseries.cpp: In function 'int main(int, char**)':
  testtimeseries.cpp:69:54: error: call of overloaded 'fmax(float&, float&)' is ambiguous
               quote.high = fmax(quote.open, quote.close);
                                                        ^
  In file included from /usr/local/lib/gcc6/include/c++/cmath:45:0,
                   from /usr/local/lib/gcc6/include/c++/math.h:36,
                   from testtimeseries.cpp:15:
  /usr/include/math.h:309:8: note: candidate: double fmax(double, double)
   double fmax(double, double) __pure2;
          ^~~~
  In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                   from testtimeseries.cpp:15:
  /usr/local/lib/gcc6/include/c++/cmath:1463:5: note: candidate: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmax(_Tp, _Up) [with _Tp = float; _Up = float; typename __gnu_cxx::__promote_2<_Tp, _Up>::__type = float]
       fmax(_Tp __x, _Up __y)
       ^~~~
  /usr/local/lib/gcc6/include/c++/cmath:1456:3: note: candidate: constexpr long double std::fmax(long double, long double)
     fmax(long double __x, long double __y)
     ^~~~
  /usr/local/lib/gcc6/include/c++/cmath:1452:3: note: candidate: constexpr float std::fmax(float, float)
     fmax(float __x, float __y)
     ^~~~
  testtimeseries.cpp:50:14: note: candidate: float fmax(float, float)
   inline float fmax(float x, float y) { return x > y ? x : y; }
                ^~~~
  testtimeseries.cpp:70:53: error: call of overloaded 'fmin(float&, float&)' is ambiguous
               quote.low = fmin(quote.open, quote.close);
                                                       ^
  In file included from /usr/local/lib/gcc6/include/c++/cmath:45:0,
                   from /usr/local/lib/gcc6/include/c++/math.h:36,
                   from testtimeseries.cpp:15:
  /usr/include/math.h:310:8: note: candidate: double fmin(double, double)
   double fmin(double, double) __pure2;
          ^~~~
  In file included from /usr/local/lib/gcc6/include/c++/math.h:36:0,
                   from testtimeseries.cpp:15:
  /usr/local/lib/gcc6/include/c++/cmath:1483:5: note: candidate: constexpr typename __gnu_cxx::__promote_2<_Tp, _Up>::__type std::fmin(_Tp, _Up) [with _Tp = float; _Up = float; typename __gnu_cxx::__promote_2<_Tp, _Up>::__type = float]
       fmin(_Tp __x, _Up __y)
       ^~~~
  /usr/local/lib/gcc6/include/c++/cmath:1476:3: note: candidate: constexpr long double std::fmin(long double, long double)
     fmin(long double __x, long double __y)
     ^~~~
  /usr/local/lib/gcc6/include/c++/cmath:1472:3: note: candidate: constexpr float std::fmin(float, float)
     fmin(float __x, float __y)
     ^~~~
  testtimeseries.cpp:51:14: note: candidate: float fmin(float, float)
   inline float fmin(float x, float y) { return x < y ? x : y; }
                ^~~~
  
  PR:		219275

Modified:
  head/databases/gigabase/Makefile   (contents, props changed)

Modified: head/databases/gigabase/Makefile
==============================================================================
--- head/databases/gigabase/Makefile	Sun May 14 17:17:42 2017	(r440884)
+++ head/databases/gigabase/Makefile	Sun May 14 18:30:38 2017	(r440885)
@@ -19,6 +19,7 @@ GNU_CONFIGURE=	yes
 USES=		autoreconf dos2unix gmake libtool
 DOS2UNIX_FILES=	Makefile.in configure.in *.cpp *.h
 USE_GCC=	any
+USE_CXXSTD=	gnu++98
 USE_LDCONFIG=	yes
 
 post-build:



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