Hi, Thanks Stephan for your reply. I was using the latest commit from the master branch of the github mirror. I just did a checkout with svn and saw your commit. I can confirm that the latest trunk builds successfully. If it's a compiler/linker bug, I agree that defining an explicit destructor is a good workaround after all.
Btw, I noticed that the mercurial mirror on bitbucket is completely outdated, it stops in August 2012. (link on: http://www.openscenegraph.org/index.php/download-section/code-repositories). I think it can be confusing to have outdated mirrors around, especially when they look like official repositories. Cheers, Jean-Claude On 25 Nov 2013, at 17:58 , Stephan Maximilian Huber <[email protected]> wrote: > Hi, > > try a more recent version from trunk or the 3.2-branch, a fix for this issue > was added last week. It seems that clang/llvm does some too optimistic > optimizations. I could fix the bug by adding a explicit destructor (this got > committed to trunk) or by reducing the optimization-setting for the > serializer (this got committed to the 3.2-branch as it does not break > ABI-compatibility) > > Note that the github-mirror is currently not in sync with the subversion > repository so try svn instead. > > cheers, > > Stephan > > > Am 25.11.2013 um 17:47 schrieb Jean-Claude Monnin <[email protected]>: > >> Hi, >> >> I had exactly the same issue than Jan Klimke when trying to compile the >> latest osg with Xcode 5, 64-bit dylib build (not frameworks) with libc++ as >> standard library. >> Could anyone successfully build a recent osg with Xcode 5? >> >> The problem is that the linker can't find the destructor of GUIEventHandler >> when building the serializers: >> Undefined symbols for architecture x86_64: >> "osgGA::GUIEventHandler::~GUIEventHandler()", referenced from: >> construction vtable for >> osgGA::GUIEventHandler-in-osgGA::KeySwitchMatrixManipulator in >> KeySwitchMatrixManipulator.cpp.o >> .... >> >> I found following workarounds, but none of them is good: >> 1) Remove the file >> "src/osgWrappers/serializers/osgGA/KeySwitchMatrixManipulator.cpp" >> 2) Define an empty virtual destructor in GUIEventHandler (eg. "virtual >> ~GUIEventHandler() {}). >> >> Looks like a linker issue. KeySwitchMatrixManipulator is used at other >> places sucessfully, it's just in the serializers that the issue shows up. >> >> Any hints welcome. >> >> Thanks >> Jean-Claude >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

