View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016084VTK(No Category)public2016-04-20 18:292016-07-06 14:24
ReporterNico Schlömer 
Assigned ToCory Quammen 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version7.1.0 
Summary0016084: compile error: vtkCubeAxesActor2D.h:49:29: error: expected identifier before numeric constant
DescriptionWhen compiling VTK, I'm getting the error
```
/«PKGBUILDDIR»/Rendering/Annotation/vtkCubeAxesActor2D.h:49:29: error: expected identifier before numeric constant
 #define VTK_FLY_OUTER_EDGES 0
                             ^
```
This is on the latest Ubuntu (releasing tomorrow) with GCC 5.3.1. Full logs are at [1].

Any ideas what might be going wrong?

[1] https://launchpadlibrarian.net/254754517/buildlog_ubuntu-xenial-amd64.vtk6_7.1.0~20160420232037-xenial1_BUILDING.txt.gz [^]
TagsNo tags attached.
ProjectTBD
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0035909)
Nico Schlömer (reporter)
2016-04-21 03:33

The bug appears to stem from commit [1]. There, some `#define`s are (thankfully) removed and replaced by enums. However, the `#define`s in vtkCubeAxesActor2D.h seem to have been forgotten, specifically `VTK_FLY_OUTER_EDGES` which now conflicts with the enum. The error one is getting is
```
error: expected identifier before numeric constant
```
for the expression `VTK_FLY_OUTER_EDGES = 0`. Makes sense.

[1] https://github.com/Kitware/VTK/commit/18af3e8b00e97ef55793ee9f55428d2cfae4c13e [^]
(0035910)
Nico Schlömer (reporter)
2016-04-21 07:07

I've added a PR for the issue. https://gitlab.kitware.com/vtk/vtk/merge_requests/1443 [^]
(0036218)
Cory Quammen (developer)
2016-07-06 14:24

Merge request granted.

 Issue History
Date Modified Username Field Change
2016-04-20 18:29 Nico Schlömer New Issue
2016-04-21 03:33 Nico Schlömer Note Added: 0035909
2016-04-21 07:07 Nico Schlömer Note Added: 0035910
2016-07-06 14:24 Cory Quammen Note Added: 0036218
2016-07-06 14:24 Cory Quammen Status backlog => closed
2016-07-06 14:24 Cory Quammen Assigned To => Cory Quammen
2016-07-06 14:24 Cory Quammen Resolution open => fixed
2016-07-06 14:24 Cory Quammen Fixed in Version => 7.1.0


Copyright © 2000 - 2018 MantisBT Team