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

Stephen Hamer sthamer at vt.edu
Tue Oct 21 08:49:40 EDT 2008


I do not get any warnings before that. My CMakeCache.txt is attached. I'm
pretty sure the variables are good, but I haven't set it up on a Solaris 10
machine before, so I am not sure. I tried to grep for *__ GLXextFuncPtr, (as
"grep -rHn *__ GLXextFuncPtr /usr/")but was unsuccessful. I tried checking
the /usr directory, but grep is still running on that. I ran it on the
/usr/lib, /usr/local, /usr/include directories on the side, and found
nothing. I'm thinking the grep on /usr is on a directory recursion loop, it
has complained about that on one single occasion. 

Can you make a suggestion of where specifically I may find this entry in my
system or any other guesses?

Thanks again for your help.

-Stephen

-----Original Message-----
From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf
Of Francois Bertel
Sent: Monday, October 20, 2008 12:00 PM
To: VTK Users
Subject: Re: [vtkusers] VTK compile error: gcc 3.32, Solaris 10

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
_______________________________________________
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeCache.txt
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081021/95547bff/attachment.txt>


More information about the vtkusers mailing list