[osg-users] Please test OpenSceneGraph master in prep for 3.5.6 dev release

Philippe Renon philippe_renon at yahoo.fr
Tue Apr 4 08:39:26 PDT 2017


master does not compile on mys2 anymore due to recent changes in osgcluster example. 

Error is :

D:/M/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgcluster/broadcaster.cpp:139:17: error: 'ifr' was not declared in this scope
         strcpy( ifr.ifr_name, _ifr_name.c_str());
                 ^~~
make[2]: *** [examples/osgcluster/CMakeFiles/example_osgcluster.dir/build.make:63: examples/osgcluster/CMakeFiles/example_osgcluster.dir/broadcaster.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:9169: examples/osgcluster/CMakeFiles/example_osgcluster.dir/all] Error 2


There is also a warning in the same area:

D:/M/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgcluster/broadcaster.cpp: In member function 'bool Broadcaster::init()':
D:/M/mingw-w64-openscenegraph-git/src/OpenSceneGraph/examples/osgcluster/broadcaster.cpp:109:50: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
     if( (_so = socket( AF_INET, SOCK_DGRAM, 0 )) < 0 )

On Windows, socket() will return INVALID_SOCKET in case of failure to create the socket (https://msdn.microsoft.com/en-us/library/windows/desktop/ms740506(v=vs.85).aspx).

PS : I also get the stats crash on msys2 (i.e. reported in the post just before).

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70666#70666








More information about the osg-users mailing list