<html><body bgcolor="#FFFFFF"><div>The port is not to blame when lua is using non-portable APIs, as has been mentioned here on several occasions. So, to solve this, don't add compatibility layers to the ports (eg a fake errno.h), the sword25 code should be made portable.<br><br></div><div>Max</div><div><br>Am 14.05.2011 um 11:43 schrieb Filippos Karapetis <<a href="mailto:bluegr@gmail.com">bluegr@gmail.com</a>>:<br><br></div><div></div><blockquote type="cite"><div>Hello<div><br></div><div>I've recently dropped the libpng requirement for the sword25 engine. This allowed the engine to be compiled</div><div>for the majority of platforms we support (with a few patches here and there). However, the engine (and in</div>
<div>particular, the LUA library it uses) fails to compile under WinCE and PS2, and I would like some opinions</div><div>on how to handle them.</div><div><br></div><div>PS2: The errors there seem... odd. Seems like there's some weird problem with libc. Can the PS2 porter</div>
<div>supply more information on them?</div><div><div>/opt/toolchains/ps2/tools/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libc.a(unlinkr.o)(.text+0x1c): In function `_unlink_r':</div><div>../../../../../newlib/libc/reent/unlinkr.c:54: undefined reference to `unlink'</div>
<div>/opt/toolchains/ps2/tools/ee/lib/gcc-lib/ee/3.2.2/../../../../ee/lib/libc.a(linkr.o)(.text+0x24): In function `_link_r':</div><div>../../../../../newlib/libc/reent/linkr.c:61: undefined reference to `link'</div>
<div><br></div><div>Also, there are tons of warnings like these:</div><div><div>In file included from ../../src-master/src/engines/sword25/sword25.cpp:46:</div><div>../../src-master/src/engines/sword25/kernel/kernel.h:73: warning: `class </div>
<div>   Sword25::Kernel' only defines a private destructor and has no friends</div></div><div><br></div><div>There's a comment inside that class that the constructor and destructor are private to make the class</div>
<div>a singleton... this sounds odd to me. Why create a singleton in this manner inside engine code in the first place?</div><div><br></div><div>Now, concerning WinCE... AFAIK, this port misses a ton of headers from the standard C library.</div>
</div><div>The current error thrown is that errno.h is missing. According to a post I found while Googling, we could use a</div><div>minimal errno.h:</div><div><a href="http://mailman.videolan.org/pipermail/vlc-devel/2009-November/068586.html"><a href="http://mailman.videolan.org/pipermail/vlc-devel/2009-November/068586.html">http://mailman.videolan.org/pipermail/vlc-devel/2009-November/068586.html</a></a></div>
<div>and the minimal errno.h can be found at:</div><div><a href="http://altair.videolan.org/~linkfanel/errno"><a href="http://altair.videolan.org/~linkfanel/errno">http://altair.videolan.org/~linkfanel/errno</a></a></div><div><br></div><div>Is the aforementioned solution viable? What else is missing from WinCE?</div>
<div><br></div><div>Regards</div><div>Filippos</div><div><br></div><div>-- <br>"Experience is the name every one gives to their mistakes" - Oscar Wilde <br>
</div>
</div></blockquote><blockquote type="cite"><div><span>------------------------------------------------------------------------------</span><br><span>Achieve unprecedented app performance and reliability</span><br><span>What every C/C++ and Fortran developer should know.</span><br><span>Learn how Intel has extended the reach of its next-generation tools</span><br><span>to help boost performance applications - inlcuding clusters.</span><br><span><a href="http://p.sf.net/sfu/intel-dev2devmay">http://p.sf.net/sfu/intel-dev2devmay</a></span></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Scummvm-devel mailing list</span><br><span><a href="mailto:Scummvm-devel@lists.sourceforge.net">Scummvm-devel@lists.sourceforge.net</a></span><br><span><a href="https://lists.sourceforge.net/lists/listinfo/scummvm-devel">https://lists.sourceforge.net/lists/listinfo/scummvm-devel</a></span><br></div></blockquote></body></html>