…In case this helps…
I used GCC/G++ 4.9.3 to compile Urho3D on my linux system…
I’ve had a look at my install log that I copied form terminal during the make process on my linux pc here: ( i’ve also attached the log with my username snip’d )… I found several things that might cause the black list in some virus scanners: the most notable of which seems to be with a function that can pause a user’s computer during use and another function was recommended to replace it.
If you open the log file i’ve attached in gedit or another text editor/viewer with line numbers turned on and no text wrapping then i can refer to the line numbers for quick reference:
…hmm I don’t see a button for uploading attachments, probably because this is my 2nd post ever here…
168: Scanning dependencies of target StanHull
169: [ 16%] Building CXX object Source/ThirdParty/StanHull/CMakeFiles/StanHull.dir/hull.cpp.o
170: ((SNIP))/Urho3D-1.5/Source/ThirdParty/StanHull/hull.cpp: In function ?int StanHull::overhull(StanHull::Plane*, int, StanHull::float3*, int, int, StanHull::float3*&, int&, int*&, int&, float)?:
171:((SNIP))/Urho3D-1.5/Source/ThirdParty/StanHull/hull.cpp:2590:28: warning: converting to non-pointer type ?int? from NULL [-Wconversion-null]
172: if(verts_count <4) return NULL;
173: ^
174: Linking CXX static library libStanHull.a
175: [ 16%] Built target StanHull
I think this might be the issue: message from g++ [[ tmpnam
is dangerous, better use mkstemp
instead ]]
256: Scanning dependencies of target lua_interpreter
257: [ 25%] Building C object Source/ThirdParty/Lua/CMakeFiles/lua_interpreter.dir/src/lua.c.o
258: Linking C executable ../../../bin/lua
259: libLua.a(loslib.c.o): In function `os_tmpname':
260: loslib.c:(.text+0x23d): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
261: [ 25%] Built target lua_interpreter
262: Scanning dependencies of target luac
263: [ 25%] Building C object Source/ThirdParty/Lua/CMakeFiles/luac.dir/src/luac.c.o
264: Linking C executable ../../../bin/luac
265: [ 25%] Built target luac
knet:
278: Scanning dependencies of target kNet
...
300: [ 29%] Building CXX object Source/ThirdParty/kNet/CMakeFiles/kNet.dir/src/unix/UnixEvent.cpp.o
301: ((SNIP))/Urho3D-1.5/Source/ThirdParty/kNet/src/unix/UnixEvent.cpp: In member function ?void kNet::Event::Set()?:
302: ((SNIP))/Urho3D-1.5/Source/ThirdParty/kNet/src/unix/UnixEvent.cpp:157:32: warning: ignoring return value of ?ssize_t read(int, void*, size_t)?, declared with attribute warn_unused_result [-Wunused-result]
303: read(fd[0], &val, sizeof(val));
304: ^
305: Linking CXX static library libkNet.a
306: [ 29%] Built target kNet
LibCpuId:
542: Scanning dependencies of target LibCpuId
...
548: [ 50%] Building C object Source/ThirdParty/LibCpuId/CMakeFiles/LibCpuId.dir/src/rdtsc.c.o
549: ((SNIP))/Urho3D-1.5/Source/ThirdParty/LibCpuId/src/rdtsc.c: In function ?cpu_clock_by_ic?:
550: ((SNIP))/Urho3D-1.5/Source/ThirdParty/LibCpuId/src/rdtsc.c:268:3: warning: format ?%llu? expects argument of type ?long long unsigned int?, but argument 4 has type ?uint64_t? [-Wformat=]
551: debugf(2, "c = %d, td = %llu\n", c, t1 - t0);
552: ^
553: Linking C static library libLibCpuId.a
554: [ 50%] Built target LibCpuId
the same dangerous warning:
556: Scanning dependencies of target tolua++
557: [ 50%] Building C object Source/ThirdParty/toluapp/src/bin/CMakeFiles/tolua++.dir/tolua.c.o
558: [ 50%] Building C object Source/ThirdParty/toluapp/src/bin/CMakeFiles/tolua++.dir/generated/toluabind.c.o
559: Linking C executable ../../../../../bin/tool/tolua++
560: ../../../Lua/libLua.a(loslib.c.o): In function `os_tmpname':
561: loslib.c:(.text+0x23d): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
562: [ 50%] Built target tolua++
and here:
580: Scanning dependencies of target Urho3D
...
817: [ 76%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/IO/Deserializer.cpp.o
818: [ 76%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/IO/File.cpp.o
819: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/File.cpp: In member function ?virtual unsigned int 820: Urho3D::File::Read(void*, unsigned int)?:
820: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/File.cpp:310:84: warning: ignoring return value of ?size_t fread(void*, size_t, size_t, FILE*)?, declared with attribute warn_unused_result [-Wunused-result]
821: fread(blockHeaderBytes, sizeof blockHeaderBytes, 1, (FILE*)handle_);
822: ^
823: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/File.cpp:323:73: warning: ignoring return value of ?size_t fread(void*, size_t, size_t, FILE*)?, declared with attribute warn_unused_result [-Wunused-result]
824: fread(inputBuffer_.Get(), packedSize, 1, (FILE*)handle_);
825: ^
826: [ 76%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/IO/FileSystem.cpp.o
827: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/FileSystem.cpp: In member function ?Urho3D::String Urho3D::FileSystem::GetCurrentDir() const?:
828: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/FileSystem.cpp:534:27: warning: ignoring return value of ?char* getcwd(char*, size_t)?, declared with attribute warn_unused_result [-Wunused-result]
829: getcwd(path, MAX_PATH);
830: ^
831: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/FileSystem.cpp: In member function ?Urho3D::String Urho3D::FileSystem::GetProgramDir() const?:
832: ((SNIP))/Urho3D-1.5/Source/Urho3D/IO/FileSystem.cpp:711:48: warning: ignoring return value of ?ssize_t readlink(const char*, char*, size_t)?, declared with attribute warn_unused_result [-Wunused-result]
833: readlink(link.CString(), exeName, MAX_PATH);
834: ^
835: [ 76%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/IO/Log.cpp.o
836: [ 77%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/IO/Serializer.cpp.o
837: [ 77%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/LuaScript/generated/CoreLuaAPI.cpp.o
and more of the dangerous function here:
580: Scanning dependencies of target Urho3D
...
851: [ 78%] Building CXX object Source/Urho3D/CMakeFiles/Urho3D.dir/LuaScript/generated/SceneLuaAPI.cpp.o
852: Linking CXX static library ../../lib/libUrho3D.a
853: Merging all archives into a single static library using ar
854: [ 78%] Built target Urho3D
855: Scanning dependencies of target Urho3DPlayer
856: [ 78%] Building CXX object Source/Tools/Urho3DPlayer/CMakeFiles/Urho3DPlayer.dir/Urho3DPlayer.cpp.o
857: Linking CXX executable ../../../bin/Urho3DPlayer
858: ../../../lib/libUrho3D.a(loslib.c.o): In function `os_tmpname':
859: loslib.c:(.text+0x23d): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
860: [ 78%] Built target Urho3DPlayer
861: Scanning dependencies of target Assimp
862: [ 78%] Building CXX object Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/code/Assimp.cpp.o
here:
861:: Scanning dependencies of target Assimp
...
1012: [ 94%] Building C object Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/contrib/unzip/ioapi.c.o
1013: [ 94%] Building C object Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/contrib/unzip/unzip.c.o
1014: ((SNIP))/Urho3D-1.5/Source/ThirdParty/Assimp/contrib/unzip/unzip.c: In function ?unzOpenCurrentFile3?:
1015: ((SNIP))/Urho3D-1.5/Source/ThirdParty/Assimp/contrib/unzip/unzip.c:1177:24: warning: assignment from incompatible pointer type
1016: s->pcrc_32_tab = get_crc_table();
1017: ^
1018: [ 94%] Building C object Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/contrib/zlib/adler32.c.o
1019: [ 94%] Building C object Source/ThirdParty/Assimp/CMakeFiles/Assimp.dir/contrib/zlib/compress.c.o
another dangerous message here:
1060: Scanning dependencies of target ScriptCompiler
1061: [ 96%] Building CXX object Source/Tools/ScriptCompiler/CMakeFiles/ScriptCompiler.dir/ScriptCompiler.cpp.o
1062: Linking CXX executable ../../../bin/tool/ScriptCompiler
1063: ../../../lib/libUrho3D.a(loslib.c.o): In function `os_tmpname':
1064: loslib.c:(.text+0x23d): warning: the use of `tmpnam' is dangerous, better use `mkstemp'
1065: [ 96%] Built target ScriptCompiler
That’s all the error and warning messages I got during my installation and compilation of Urho3D on my computer. NOTE that dispite the errors and warnings, all of the samples work just fine and pretty fast in my machine too!
So I believe the “dangerous” messages form GCC/G++ are likely the cause of the virus scanner programs incorrectly flagging Urho3D or the Urho3DPlayer , imho…
Hope any of that helps someone in some way.