Repository: OGRECave/ogre

Issue #1092: Build fails with clang-60: call to member function 'createOrRetrieve' is ambiguou
Created: 2019-02-07T05:11:40Z
csharp/OgreCSHARP_wrap.cxx|106567 col 24| error: call to member function 'createOrRetrieve' is ambiguous
||       result = (arg1)->createOrRetrieve((Ogre::String const &)*arg2,(Ogre::String const &)*arg3,arg4,arg5,(Ogre::NameValuePairList const *)arg6);
||                ~~~~~~~~^~~~~~~~~~~~~~~~
OgreMain/include/OgreResourceManager.h|140 col 40| note: candidate function
||         ResourceCreateOrRetrieveResult createOrRetrieve(const String& name,
||                                        ^
OgreMain/include/OgreTextureManager.h|126 col 40| note: candidate function
||         ResourceCreateOrRetrieveResult createOrRetrieve(
||                                        ^
csharp/OgreCSHARP_wrap.cxx|110156 col 24| error: call to member function 'getResourceByName' is ambiguous
||       result = (arg1)->getResourceByName((Ogre::String const &)*arg2,(Ogre::String const &)*arg3);
||                ~~~~~~~~^~~~~~~~~~~~~~~~~
OgreMain/include/OgreResourceManager.h|319 col 29| note: candidate function
||         virtual ResourcePtr getResourceByName(const String& name, const String& groupName OGRE_RESOURCE_GROUP_INIT);
||                             ^
OgreMain/include/OgreGpuProgramManager.h|177 col 21| note: candidate function
||         ResourcePtr getResourceByName(const String& name, const String& group OGRE_RESOURCE_GROUP_INIT, bool preferHighLevelPrograms = true);
||                     ^
csharp/OgreCSHARP_wrap.cxx|110189 col 24| error: call to member function 'getResourceByName' is ambiguous
||       result = (arg1)->getResourceByName((Ogre::String const &)*arg2);
||                ~~~~~~~~^~~~~~~~~~~~~~~~~
csharp/OgreCSHARP_wrap.cxx|208020 col 24| error: call to member function 'createOrRetrieve' is ambiguous
||       result = (arg1)->createOrRetrieve((Ogre::String const &)*arg2,(Ogre::String const &)*arg3,arg4,arg5,(Ogre::NameValuePairList const *)arg6);
||                ~~~~~~~~^~~~~~~~~~~~~~~~
OgreMain/include/OgreResourceManager.h|140 col 40| note: candidate function
||         ResourceCreateOrRetrieveResult createOrRetrieve(const String& name,
||                                        ^
OgreMain/include/OgreMeshManager.h|98 col 40| note: candidate function
||         ResourceCreateOrRetrieveResult createOrRetrieve(
||                                        ^

version 1.11.5
FreeBSD 11.2

Duplicate issue #1116: ogre3d 1.11.5 compile failed
Created: 2019-03-02T21:47:00Z
Ogre Version: 1.11.5
Operating System / Platform: Ubuntu16.0.4

Tried to compile, run cmake and it failed with
Scanning dependencies of target libzzip
[  9%] Building C object zzip/CMakeFiles/libzzip.dir/dir.c.o
In file included from /home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/dir.c:9:0:
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:29:5: error: unknown type name ‘uint32_t’
     uint32_t    d_usize;        /* uncompressed size */
     ^
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:30:5: error: unknown type name ‘uint32_t’
     uint32_t    d_csize;        /* compressed size */
     ^
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:31:5: error: unknown type name ‘uint32_t’
     uint32_t    d_crc32;        /* the adler32-checksum */
     ^
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:32:5: error: unknown type name ‘uint32_t’
     uint32_t    d_off;          /* offset of file in zipfile */
     ^
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:33:5: error: unknown type name ‘uint16_t’
     uint16_t    d_reclen;       /* next dir_hdr structure offset */
     ^
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:34:5: error: unknown type name ‘uint16_t’
     uint16_t    d_namlen;       /* explicit namelen of d_name */
     ^
/home/bernard/Downloads/ogre-1.11.5/build/zziplib-develop/zzip/lib.h:35:5: error: unknown type name ‘uint8_t’
     uint8_t     d_compr;        /* the compression type, 0 = store, 8 = inflate */
     ^
zzip/CMakeFiles/libzzip.dir/build.make:62: recipe for target 'zzip/CMakeFiles/libzzip.dir/dir.c.o' failed
make[2]: *** [zzip/CMakeFiles/libzzip.dir/dir.c.o] Error 1
CMakeFiles/Makefile2:87: recipe for target 'zzip/CMakeFiles/libzzip.dir/all' failed
make[1]: *** [zzip/CMakeFiles/libzzip.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Tried running cmake on ogre3d1.10.2,  zzip configured successfully with no issue. so it seems this is peculiar to v 1.11.5 and not my setup.

Closing comment (2019-03-03T11:47:15Z): duplicate of #1092, fixed in master