[osg-users] openscenegraph-git : conflicting declaration error

philippe renon philippe_renon at yahoo.fr
Wed Jun 8 13:36:48 PDT 2016


Hi,
Building current openscenegraph-git, with a fully updated msys2, fails with this error:
In file included from C:/msys64/usr/include/sys/select.h:26:0,
                 from C:/msys64/usr/include/sys/types.h:68,
                 from C:/msys64/usr/include/stdio.h:48,
                 from C:/msys64/mingw64/include/libavutil/common.h:38,
                 from C:/msys64/mingw64/include/libavutil/avutil.h:288,
                 from C:/msys64/mingw64/include/libavutil/samplefmt.h:24,
                 from C:/msys64/mingw64/include/libavcodec/avcodec.h:31,
                 from D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:11,
                 from D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10,
                 from D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:2:
C:/msys64/usr/include/sys/_timeval.h:40:18: error: conflicting declaration 'typedef long int time_t'
 typedef _TIME_T_ time_t;
                  ^
In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/stddef.h:7:0,
                 from C:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/5.4.0/include/stddef.h:1,
                 from C:/msys64/usr/include/sys/reent.h:14,
                 from C:/msys64/usr/include/sys/errno.h:11,
                 from C:/msys64/usr/include/errno.h:9,
                 from D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegHeaders.hpp:9,
                 from D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.hpp:10,
                 from D:/MINGW-packages/mingw-w64-openscenegraph-git/src/OpenSceneGraph/src/osgPlugins/ffmpeg/FFmpegClocks.cpp:2:
C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:138:20: note: previous declaration as 'typedef __time64_t time_t'
 typedef __time64_t time_t;

I also see a number of warnings apparently related to system and gcc includes.
Any pointer on how to address such issues ?Is it a problem with system headers or with openscenegraph ?

 Fixing system headers is not something i am comfortable with.

Cheers,Philippe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160608/c806d6f4/attachment-0002.htm>


More information about the osg-users mailing list