Hi,<br><br>I use :<br>- m68k-elf-gcc and m68k-elf-g++ 4.2.3 (toolchain of &quot;freescale-coldfire-4.2&quot;)<br>- klone-2.1.1rc0 with a single &quot;webapp&quot; folder contains a single KLX page (named index.klx)<br><br>
I have not &quot;badly punctuated parameter list in `#define&#39;&quot; errors again :)<br><br><br>But I have four new errors (detailed after this trace) at the compilation of .cc file :<br>==========================================================================<br>
In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:15,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/site/pg_96999b9cde0a341e168e8a972bcdc019.cc:10:<br>./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing/timegm.h:14: error: declaration of &#39;time_t timegm(tm*)&#39; throws different exceptions<br>
/opt/uClinux-dist/uClibc/include/time.h:273: error: from previous declaration &#39;time_t timegm(tm*) throw ()&#39;<br>In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:17,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/site/pg_96999b9cde0a341e168e8a972bcdc019.cc:10:<br>
./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing/strlcpy.h:17: error: declaration of &#39;size_t strlcpy(char*, const char*, size_t)&#39; throws different exceptions<br>/opt/uClinux-dist/uClibc/include/string.h:398: error: from previous declaration &#39;size_t strlcpy(char*, const char*, size_t) throw ()&#39;<br>
In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:18,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/site/pg_96999b9cde0a341e168e8a972bcdc019.cc:10:<br>./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing/strlcat.h:17: error: declaration of &#39;size_t strlcat(char*, const char*, size_t)&#39; throws different exceptions<br>
/opt/uClinux-dist/uClibc/include/string.h:396: error: from previous declaration &#39;size_t strlcat(char*, const char*, size_t) throw ()&#39;<br>In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:20,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/site/pg_96999b9cde0a341e168e8a972bcdc019.cc:10:<br>
./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing/daemon.h:23: error: declaration of &#39;int daemon(int, int)&#39; throws different exceptions<br>/opt/uClinux-dist/uClibc/include/unistd.h:789: error: from previous declaration &#39;int daemon(int, int) throw ()&#39;<br>
==========================================================================<br><br><font size="4"><b>Error 1 : timegm</b></font><br>My extract from &quot;libu/include/u/libu_conf.h&quot; :<br>=====================<br>&nbsp;&nbsp;&nbsp; #undef HAVE_TIMEGM<br>
=====================<br><br>My extract from &quot;libu/include/u/missing/timegm.h&quot; :<br>======================<br>&nbsp;&nbsp;&nbsp; #ifndef HAVE_TIMEGM<br>&nbsp;&nbsp;&nbsp; time_t timegm(struct tm *tm);<br>&nbsp;&nbsp;&nbsp; #endif<br>======================<br>
<br>However my uClinux library contents the definition of this function.<br>
My extract from &quot;/opt/uClinux-dist/uClibc/include/unistd.h&quot; :<br>
====================<br>
&nbsp;&nbsp;&nbsp; # ifdef __USE_MISC<br>&nbsp;&nbsp;&nbsp; /* Miscellaneous functions many Unices inherited from the public domain<br>&nbsp;&nbsp; localtime package.&nbsp; These are included only for compatibility.&nbsp; */<br><br>&nbsp;&nbsp;&nbsp; /* Like `mktime&#39;, but for TP represents Universal Time, not local time.&nbsp; */<br>
&nbsp;&nbsp;&nbsp; extern time_t timegm (struct tm *__tp) __THROW;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //this is the line 273<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; # endif<br>
====================<br><br><br><b><font size="4">Error 2 and 3 : strlcpy/strlcat</font></b><br>My extract from &quot;libu/include/u/libu_conf.h&quot; :<br>====================<br>&nbsp;&nbsp;&nbsp; #undef HAVE_STRLCPY<br>&nbsp;&nbsp;&nbsp; #define HAVE_STRLCPY 1<br>
<br>&nbsp;&nbsp;&nbsp; #undef HAVE_STRLCAT<br>&nbsp;&nbsp;&nbsp; #define HAVE_STRLCAT 1<br>====================<br><br>I think that these errors are caused by a syntax error (it lacks a&#39;L&#39;) from &quot;libu/include/u/missing/strlcpy.h&quot; :<br>
====================<br>&nbsp;&nbsp;&nbsp; #ifdef <span style="color: rgb(255, 0, 0);">HAVE_STRCPY&nbsp;&nbsp;&nbsp; --&gt; HAVE_STRLCPY</span><br>&nbsp;&nbsp;&nbsp; #include &lt;string.h&gt;<br>&nbsp;&nbsp;&nbsp; #else<br><br>&nbsp;&nbsp;&nbsp; #ifdef __cplusplus<br>&nbsp;&nbsp;&nbsp; extern &quot;C&quot; {<br>
&nbsp;&nbsp;&nbsp; #endif<br><br>&nbsp;&nbsp;&nbsp; size_t strlcpy(char *dst, const char *src, size_t siz);<br><br>&nbsp;&nbsp;&nbsp; #ifdef __cplusplus<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; #endif<br>====================<br><br><br>and from &quot;libu/include/u/missing/strlcat.h&quot;<br>
====================<br>&nbsp;&nbsp;&nbsp; #ifdef <span style="color: rgb(255, 0, 0);">HAVE_STRCAT&nbsp;&nbsp;&nbsp; --&gt; HAVE_STRLCAT</span><br>&nbsp;&nbsp;&nbsp; #include &lt;string.h&gt;<br>&nbsp;&nbsp;&nbsp; #else<br><br>&nbsp;&nbsp;&nbsp; #ifdef __cplusplus<br>&nbsp;&nbsp;&nbsp; extern &quot;C&quot; {<br>
&nbsp;&nbsp;&nbsp; #endif<br><br>&nbsp;&nbsp;&nbsp; size_t strlcat(char *dst, const char *src, size_t siz);<br><br>&nbsp;&nbsp;&nbsp; #ifdef __cplusplus<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; #endif<br>====================<br><br><br><font size="4"><b>Error 4 : daemon</b></font><br>My extract from &quot;libu/include/u/libu_conf.h&quot; :<br>

====================<br>&nbsp;&nbsp;&nbsp; <span style="color: rgb(255, 0, 0);">#undef HAVE_DAEMON</span><br>&nbsp;&nbsp;&nbsp; #undef HAVE_MKSTEMPS<br>&nbsp;&nbsp;&nbsp; #undef HAVE_UNISTD<br>&nbsp;&nbsp;&nbsp; #define HAVE_UNISTD 1<br><br>&nbsp;&nbsp;&nbsp; #undef HAVE_STDLIB<br>&nbsp;&nbsp;&nbsp; #define HAVE_STDLIB 1<br>

====================<br><br>My extract from &quot;libu/include/u/missing/daemon.h&quot; :<br>====================<br>&nbsp;&nbsp;&nbsp; #ifdef HAVE_DAEMON<br>&nbsp;&nbsp;&nbsp; #ifdef HAVE_STDLIB<br>&nbsp;&nbsp;&nbsp; #include &lt;stdlib.h&gt;<br>&nbsp;&nbsp;&nbsp; #endif<br><br>
&nbsp;&nbsp;&nbsp; #ifdef HAVE_UNISTD<br>&nbsp;&nbsp;&nbsp; #include &lt;unistd.h&gt;<br>&nbsp;&nbsp;&nbsp; #endif<br><br>&nbsp;&nbsp;&nbsp; #else /* HAVE_DAEMON */<br><br>&nbsp;&nbsp;&nbsp; #ifdef __cplusplus<br>&nbsp;&nbsp;&nbsp; extern &quot;C&quot; {<br>&nbsp;&nbsp;&nbsp; #endif<br><br>&nbsp;&nbsp;&nbsp; int daemon(int nochdir, int noclose);<br>
<br>&nbsp;&nbsp;&nbsp; #ifdef __cplusplus<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; #endif<br>====================<br><br>However my uClinux library contents the definition of this function.<br>My extract from &quot;/opt/uClinux-dist/uClibc/include/unistd.h&quot; :<br>
====================<br>&nbsp;&nbsp;&nbsp; #if defined __USE_BSD || (defined __USE_XOPEN &amp;&amp; !defined __USE_UNIX98)<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; /* Put the program in the background, and dissociate from the controlling<br>&nbsp;&nbsp; terminal.&nbsp; If NOCHDIR is zero, do `chdir (&quot;/&quot;)&#39;.&nbsp; If NOCLOSE is zero,<br>
&nbsp;&nbsp; redirects stdin, stdout, and stderr to /dev/null.&nbsp; */<br>&nbsp;&nbsp;&nbsp; extern int daemon (int __nochdir, int __noclose) __THROW;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //this is the line 789<br>&nbsp;&nbsp;&nbsp; #endif /* Use BSD || X/Open.&nbsp; */<br>
====================<br><br><br><br>Thank.<br clear="all"><br>-- <br>Mickaël AUGER<br><a href="mailto:mickael.auger@gmail.com">mickael.auger@gmail.com</a>