[vtkusers] OpenSolaris build

Mathieu Malaterre mathieu.malaterre at gmail.com
Thu Jul 23 11:52:43 EDT 2009



2009/7/21 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>:
>
> Le 21 juil. 09 à 21:00, Denis Barbier a écrit :
>
>> Le 21 juillet 2009 19:30, Gaëtan Lehmann a écrit :
>> [...]
>>>
>>> If I comment the calls to alloca(), everything builds. Of course some
>>> tests
>>> are failing - I'd be happy to get some help on that point.
>>
>> [...]
>>
>> Have a look at the beginning of Hybrid/vtkVRMLImporter.cxx, it seems that
>> in your case, alloca declaration is
>>  char *alloca ();
>> and further calls fail when compiling with a C++ compiler.
>> This function is redeclared lines 828 and below in a slightly different
>> way,
>> you may try to delete lines 7--28.
>>
>
> Somehow, I've missed the declarations of alloca() at the top of the file.
> You pointed me to the right direction. Thank you! :-)
>
> alloca.h is available with sun studio - we only have to use it. A fix is
> attached to that mail.
>
> Can someone commit that patch and the previous one? They are changing the
> behavior only on solaris and with sun studio, and they are very small, so
> they should be quite safe.

Done.

$ cvs ci -m"COMP: Fix OpenSolaris builds. Thanks to Gaetan Lehmann for patch" Hybrid/vtkVRMLImporter.cxx
Committer: Mathieu Malaterre <mathieu.malaterre at gmail.com>
/cvsroot/VTK/VTK/Hybrid/vtkVRMLImporter.cxx,v  <--  Hybrid/vtkVRMLImporter.cxx
new revision: 1.74; previous revision: 1.73


-- 
Mathieu
http://mathieumalaterre.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 270 bytes
Desc: OpenPGP digital signature
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090723/5a10613f/attachment.pgp>


More information about the vtkusers mailing list