[vtkusers] VTK compile error: gcc 3.32, Solaris 10

Francois Bertel francois.bertel at kitware.com
Mon Oct 20 11:59:55 EDT 2008


Keep the conversation on the list, please.

* Do you have any warning before that?
* can you attach your CMakeCache.txt (this file is at the root of your
VTK build directory)
* Can you grep for "*__GLXextFuncPtr" in your system? (from /usr)

My guess (just a guess...) is your system defines

typedef void (*__GLXextFuncPtr)();

instead of

typedef void (*__GLXextFuncPtr)(void); (as defined in
VTK/Utilities/ParseOGLExt/headers/glxext.h)

in C, f() actually means f(int).




On Mon, Oct 20, 2008 at 11:06 AM, Stephen Hamer <sthamer at vt.edu> wrote:
> I am using VTK 5.2.0.
>
> -----Original Message-----
> From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
> Of Francois Bertel
> Sent: Monday, October 20, 2008 10:53 AM
> To: vtkusers at vtk.org
> Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10
>
> Which version of VTK are use using? A release (4.4, 5.0.x, 5.2.x)? or VTK
> CVS ?
>
> On Mon, Oct 20, 2008 at 10:46 AM, Stephen Hamer <sthamer at vt.edu> wrote:
>> Hi vtkusers!
>>
>>
>>
>> I am new to this list, and sort of new to VTK. My problem though is
> building
>> it. I am using gcc 3.3.2, cmake 2.4.8, and make 3.8.1 on a Solaris 10
>> machine (not the native packages), and get the following error.
>>
>>
>>
>> [ 68%] Building CXX object
>>
>> Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o
>>
>> /packages/VTK/Rendering/vtkOpenGLExtensionManager.cxx: In member function
>> `virtual void (*vtkOpenGLExtensionManager::GetProcAddress(const
> char*))()':
>>
>> /packages/VTK/Rendering/vtkOpenGLExtensionManager.cxx:261: error: invalid
>> static_cast from type `void (*)(...)' to type `void (*)()'
>>
>> make[2]: ***
>> [Rendering/CMakeFiles/vtkRendering.dir/vtkOpenGLExtensionManager.o] Error
> 1
>>
>> make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
>>
>> make: *** [all] Error 2
>>
>>
>>
>>
>>
>> It seems like some sort of incompatibility with my gcc version, but I
> really
>> am not sure. I get something similar when building FTLK on the same
> machine.
>> I've searched the internet and this list and come up short for a solution.
> I
>> was wondering if anyone has seen something like this before and could help
>> me out. Thank you very much!
>>
>>
>>
>> -Stephen
>>
>> _______________________________________________
>> This is the private VTK discussion list.
>> Please keep messages on-topic. Check the FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
> --
> François Bertel, PhD  | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
>                      | Clifton Park NY 12065, USA
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



-- 
François Bertel, PhD  | Kitware Inc. Suite 204
1 (518) 371 3971 x113 | 28 Corporate Drive
                      | Clifton Park NY 12065, USA



More information about the vtkusers mailing list