Hi Carsten,

On Wed, Jun 11, 2008 at 1:22 AM, Ákos Balázs <[EMAIL PROTECTED]> wrote:
> See the attachment. The patch is against the current CVS tree. Looking
> at it again I think the patch to OSGBaseFunctions.inl is only
> necessary because I've included the "-ansi" compiler option, without
> it it should compile on OS X as is. Now there seem to be some problems
> related to the functor stuff so some of the BaseTests don't build, but
> the segfault at exit seems to be gone now. :)

Following up on myself (I love doing that :-) I think I fixed the
problems with the BaseTests. It seems that Gerrit's commits that
changed the C-style casts to  static_casts broke the BaseTests.
Curoiusly only ``testfunctors.cpp'' from the BaseTests package seems
to be affected, everything else works fine. I don't claim to know half
as much about C++ as Gerrit does, but AFAIU
the C++ casting rules in this case the dreaded reinterpret_cast must
be used instead of static_cast since the cast is between two unrelated
pointer types (neither of which is a pointer to void), so I think the
compiler (in my case gcc 4.0) is right here. I've attached a patch
against the current CVS that fixes this.

On a semi-related note, my original patch for osgfinite() was buggy,
it was missing a #else directive, unfortunately. Fortunately :), no
one commited this so far, so I've attached the correct patch aswell.
My earlier patch to the buildsystem is still valid, at least I don't
have problems with building OpenSG on 10.5.3 anymore.  :-)

Yours,

         Ákos

Attachment: osx_isfinite2.patch
Description: Binary data

Attachment: static_cast.patch
Description: Binary data

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to