![]() |
Linux status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93) +--- Thread: Linux status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? (/showthread.php?tid=295948) |
status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - PGNd - 2016-11-07 I'm building kodi/master on linux/64, Code: git log | head currently fails at Code: ... Code: CServiceManager::Init1(): error: undefined reference to 'CPlatform::CreateInstance()' Code: [platform] - add unique hardware identifier as info label #10543 Code: https://github.com/xbmc/xbmc/pull/10543#issuecomment-255586521 IS there a cmd-line config, or manual edit, that'll fix this? Or do I need to drop back to a particular source rev? RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - PGNd - 2016-11-07 Re: > Or do I need to drop back to a particular source rev? 1st walking backwards through tags, 17.0b2 appears to be before the ~Sep19-24th commits that start causing this issue. 17.0b2 won't configure without error, lacking Code: https://github.com/xbmc/xbmc/commit/247b43a48c5b576df90f04353a07e32002e198cf Code: ... and, no surprise, so do 17.0b4 & 17.0b5. RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - wsnipex - 2016-11-07 Unless you patched kodi with the UUID PR yourself, it cannot be the problem, since it is not in master... Pastebin a full build log and your CMakeCache.txt RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'&qu... - PGNd - 2016-11-07 (2016-11-07, 11:04)wsnipex Wrote: Unless you patched kodi with the UUID PR yourself, it cannot be the problem, since it is not in master... Not intentionally ... (2016-11-07, 11:04)wsnipex Wrote: Pastebin a full build log https://pastebin.com/6FytNenb (2016-11-07, 11:04)wsnipex Wrote: and your CMakeCache.txt https://pastebin.com/UiYfnmap RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - wsnipex - 2016-11-07 something is off there, your system doesn't compile platform_common.a, which contains the symbol. Are you sure you are compiling kodi master, without any patches? did you already try a clean build? Code: git fetch RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'&qu... - PGNd - 2016-11-07 (2016-11-07, 19:58)wsnipex Wrote: something is off there, your system doesn't compile platform_common.a, which contains the symbol. yep, master. no patches. And I reset & clean each time, unless I do a completely new/clean checkout ... p.s. just re-did a sanity check. starting from clean checkout. same issue ... RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'&qu... - PGNd - 2016-11-08 @wsnipex Quote:your system doesn't compile platform_common.a With that hint, I can get a complete build if I change my long-standing cmake config, enabling static libs Code: cmake \ With that change, I get to Code: ... cmake STATIC_LIBS == 1 has not been previously needed. What's changed that it is now? Or is this actually a bug? RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - wsnipex - 2016-11-08 hmm, guess you found a bug. RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'&qu... - PGNd - 2016-11-09 (2016-11-08, 09:31)wsnipex Wrote: hmm, guess you found a bug. -> cmake sharedlib build fails, doesn't compile platform_common.a, unless "-DENABLE_STATIC_LIBS=1" is set http://trac.kodi.tv/ticket/17061#ticket RE: status/workaround for "error: undef'd ref to 'CPlatform::CreateInstance()'"? - fetzerch - 2016-11-09 Yep, that's a bug: https://github.com/xbmc/xbmc/pull/10897 Thanks for reporting. |