Hi,<br><br>I use :<br>- m68k-elf-gcc and m68k-elf-g++ 4.2.3 (toolchain of "freescale-coldfire-4.2")<br>- klone-2.1.1rc0 with a single "webapp" folder contains a single KLX page (named index.klx)<br><br>
I have not "badly punctuated parameter list in `#define'" 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> from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br> from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br>
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 'time_t timegm(tm*)' throws different exceptions<br>
/opt/uClinux-dist/uClibc/include/time.h:273: error: from previous declaration 'time_t timegm(tm*) throw ()'<br>In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:17,<br>
from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br> from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br> 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 'size_t strlcpy(char*, const char*, size_t)' throws different exceptions<br>/opt/uClinux-dist/uClibc/include/string.h:398: error: from previous declaration 'size_t strlcpy(char*, const char*, size_t) throw ()'<br>
In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:18,<br> from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br> from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br>
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 'size_t strlcat(char*, const char*, size_t)' throws different exceptions<br>
/opt/uClinux-dist/uClibc/include/string.h:396: error: from previous declaration 'size_t strlcat(char*, const char*, size_t) throw ()'<br>In file included from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/missing.h:20,<br>
from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/libu/include/u/libu.h:13,<br> from ./klone-2.1.1rc0/build/target/klone-core-2.1.1rc0/klone/emb.h:19,<br> 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 'int daemon(int, int)' throws different exceptions<br>/opt/uClinux-dist/uClibc/include/unistd.h:789: error: from previous declaration 'int daemon(int, int) throw ()'<br>
==========================================================================<br><br><font size="4"><b>Error 1 : timegm</b></font><br>My extract from "libu/include/u/libu_conf.h" :<br>=====================<br> #undef HAVE_TIMEGM<br>
=====================<br><br>My extract from "libu/include/u/missing/timegm.h" :<br>======================<br> #ifndef HAVE_TIMEGM<br> time_t timegm(struct tm *tm);<br> #endif<br>======================<br>
<br>However my uClinux library contents the definition of this function.<br>
My extract from "/opt/uClinux-dist/uClibc/include/unistd.h" :<br>
====================<br>
# ifdef __USE_MISC<br> /* Miscellaneous functions many Unices inherited from the public domain<br> localtime package. These are included only for compatibility. */<br><br> /* Like `mktime', but for TP represents Universal Time, not local time. */<br>
extern time_t timegm (struct tm *__tp) __THROW; //this is the line 273<br> ...<br> # endif<br>
====================<br><br><br><b><font size="4">Error 2 and 3 : strlcpy/strlcat</font></b><br>My extract from "libu/include/u/libu_conf.h" :<br>====================<br> #undef HAVE_STRLCPY<br> #define HAVE_STRLCPY 1<br>
<br> #undef HAVE_STRLCAT<br> #define HAVE_STRLCAT 1<br>====================<br><br>I think that these errors are caused by a syntax error (it lacks a'L') from "libu/include/u/missing/strlcpy.h" :<br>
====================<br> #ifdef <span style="color: rgb(255, 0, 0);">HAVE_STRCPY --> HAVE_STRLCPY</span><br> #include <string.h><br> #else<br><br> #ifdef __cplusplus<br> extern "C" {<br>
#endif<br><br> size_t strlcpy(char *dst, const char *src, size_t siz);<br><br> #ifdef __cplusplus<br> }<br> #endif<br>====================<br><br><br>and from "libu/include/u/missing/strlcat.h"<br>
====================<br> #ifdef <span style="color: rgb(255, 0, 0);">HAVE_STRCAT --> HAVE_STRLCAT</span><br> #include <string.h><br> #else<br><br> #ifdef __cplusplus<br> extern "C" {<br>
#endif<br><br> size_t strlcat(char *dst, const char *src, size_t siz);<br><br> #ifdef __cplusplus<br> }<br> #endif<br>====================<br><br><br><font size="4"><b>Error 4 : daemon</b></font><br>My extract from "libu/include/u/libu_conf.h" :<br>
====================<br> <span style="color: rgb(255, 0, 0);">#undef HAVE_DAEMON</span><br> #undef HAVE_MKSTEMPS<br> #undef HAVE_UNISTD<br> #define HAVE_UNISTD 1<br><br> #undef HAVE_STDLIB<br> #define HAVE_STDLIB 1<br>
====================<br><br>My extract from "libu/include/u/missing/daemon.h" :<br>====================<br> #ifdef HAVE_DAEMON<br> #ifdef HAVE_STDLIB<br> #include <stdlib.h><br> #endif<br><br>
#ifdef HAVE_UNISTD<br> #include <unistd.h><br> #endif<br><br> #else /* HAVE_DAEMON */<br><br> #ifdef __cplusplus<br> extern "C" {<br> #endif<br><br> int daemon(int nochdir, int noclose);<br>
<br> #ifdef __cplusplus<br> }<br> #endif<br>====================<br><br>However my uClinux library contents the definition of this function.<br>My extract from "/opt/uClinux-dist/uClibc/include/unistd.h" :<br>
====================<br> #if defined __USE_BSD || (defined __USE_XOPEN && !defined __USE_UNIX98)<br> ...<br> /* Put the program in the background, and dissociate from the controlling<br> terminal. If NOCHDIR is zero, do `chdir ("/")'. If NOCLOSE is zero,<br>
redirects stdin, stdout, and stderr to /dev/null. */<br> extern int daemon (int __nochdir, int __noclose) __THROW; //this is the line 789<br> #endif /* Use BSD || X/Open. */<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>