Bug 1637255

Summary: vxl using libs fail to compile with -std=gnu++11
Product: [Fedora] Fedora Reporter: Orion Poplawski <orion>
Component: vxlAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: igor.raits, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: vxl-2.0.2-4.fc30 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-19 01:45:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1674578    

Description Orion Poplawski 2018-10-09 02:17:15 UTC
Description of problem:

Trying to build InsightToolkit with VTK 8.1.1 which uses -std=gnu++11 results in:

BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:387:22: error: 'constexpr' needed for in-class initialization of static data member 'const float vnl_numeric_traits<float>::zero' of non-integral type [-fpermissive]
BUILDSTDERR:    static const float zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0F);
BUILDSTDERR:                       ^~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:389:22: error: 'constexpr' needed for in-class initialization of static data member 'const float vnl_numeric_traits<float>::one' of non-integral type [-fpermissive]
BUILDSTDERR:    static const float one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0F);
BUILDSTDERR:                       ^~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:391:22: error: 'constexpr' needed for in-class initialization of static data member 'const float vnl_numeric_traits<float>::maxval' of non-integral type [-fpermissive]
BUILDSTDERR:    static const float maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(3.40282346638528860e+38F);
BUILDSTDERR:                       ^~~~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:410:23: error: 'constexpr' needed for in-class initialization of static data member 'const double vnl_numeric_traits<double>::zero' of non-integral type [-fpermissive]
BUILDSTDERR:    static const double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
BUILDSTDERR:                        ^~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:412:23: error: 'constexpr' needed for in-class initialization of static data member 'const double vnl_numeric_traits<double>::one' of non-integral type [-fpermissive]
BUILDSTDERR:    static const double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
BUILDSTDERR:                        ^~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:414:23: error: 'constexpr' needed for in-class initialization of static data member 'const double vnl_numeric_traits<double>::maxval' of non-integral type [-fpermissive]
BUILDSTDERR:    static const double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
BUILDSTDERR:                        ^~~~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:433:28: error: 'constexpr' needed for in-class initialization of static data member 'const long double vnl_numeric_traits<long double>::zero' of non-integral type [-fpermissive]
BUILDSTDERR:    static const long double zero VCL_STATIC_CONST_INIT_FLOAT_DECL(0.0);
BUILDSTDERR:                             ^~~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:435:28: error: 'constexpr' needed for in-class initialization of static data member 'const long double vnl_numeric_traits<long double>::one' of non-integral type [-fpermissive]
BUILDSTDERR:    static const long double one VCL_STATIC_CONST_INIT_FLOAT_DECL(1.0);
BUILDSTDERR:                             ^~~
BUILDSTDERR: /usr/include/vxl/core/vnl/vnl_numeric_traits.h:437:28: error: 'constexpr' needed for in-class initialization of static data member 'const long double vnl_numeric_traits<long double>::maxval' of non-integral type [-fpermissive]
BUILDSTDERR:    static const long double maxval VCL_STATIC_CONST_INIT_FLOAT_DECL(1.7976931348623157E+308);
BUILDSTDERR:                             ^~~~~~


Version-Release number of selected component (if applicable):
vxl-1.17.0-28

See https://copr.fedorainfracloud.org/coprs/orion/vtk8/builds/

Comment 1 Fedora Update System 2019-05-29 06:54:08 UTC
FEDORA-2019-b0a152dd3b has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-b0a152dd3b

Comment 2 Fedora Update System 2019-05-30 13:57:58 UTC
vxl-2.0.2-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-b0a152dd3b

Comment 3 Fedora Update System 2019-06-19 01:45:40 UTC
vxl-2.0.2-4.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.