View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013198VTK(No Category)public2012-05-23 10:152012-09-28 08:54
Reporterycollet 
Assigned ToDavid Gobbi 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version 
Summary0013198: compilation problem for vtktkrenderwidget
DescriptionI compiled vtk-5.8.0 on mageia 2 64 bits with gcc-4.6.3.
An error is printed during compilation:
[ 67%] Building CXX object Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkWidgetsInit.cxx.o
[ 67%] Building CXX object Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkRenderWidgetPython.cxx.o
In file included from /home/collette/ARPACK/src/VTK/Rendering/vtkTkRenderWidgetPython.cxx:17:0:
/home/collette/ARPACK/src/VTK/Rendering/vtkTkRenderWidget.cxx: In function ‘int vtkTkRenderWidget_MakeRenderWindow(vtkTkRenderWidget*)’:
/home/collette/ARPACK/src/VTK/Rendering/vtkTkRenderWidget.cxx:1309:16: erreur: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
make[2]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/vtkTkRenderWidgetPython.cxx.o] Erreur 1
make[1]: *** [Rendering/CMakeFiles/vtkRenderingPythonTkWidgets.dir/all] Erreur 2

I added an explicit cast to char * at line 1309 and the compilation went fine.
TagsNo tags attached.
ProjectTBD
Typecrash
Attached Files

 Relationships
has duplicate 0013449closedDavid Gobbi Invalid pointer conversion in vtkTkRenderWidget.cxx 

  Notes
(0029103)
David Gobbi (developer)
2012-09-02 09:42
edited on: 2012-09-06 18:57

self->RW = ckalloc(

needs to be

self->RW = (char *)ckalloc(

What versions of Tcl have "void *ckalloc()"? All the documentation that I've seen uses "char *ckalloc()".

(0029289)
David Gobbi (developer)
2012-09-28 08:54

Fixed by commit 376579aa, this fix will be included in VTK 5.10.1 and VTK 6.0.

 Issue History
Date Modified Username Field Change
2012-05-23 10:15 ycollet New Issue
2012-09-02 09:40 David Gobbi Assigned To => David Gobbi
2012-09-02 09:40 David Gobbi Status backlog => tabled
2012-09-02 09:42 David Gobbi Note Added: 0029103
2012-09-06 18:57 David Gobbi Note Edited: 0029103
2012-09-12 08:34 David Gobbi Relationship added has duplicate 0013449
2012-09-28 08:54 David Gobbi Note Added: 0029289
2012-09-28 08:54 David Gobbi Status tabled => closed
2012-09-28 08:54 David Gobbi Resolution open => fixed


Copyright © 2000 - 2018 MantisBT Team