[Klone-users] Compilation for elf m68k
Mickael Auger
mickael.auger at gmail.com
Wed Apr 9 06:15:45 EDT 2008
Hi Thomas,
My mainly folder (named "klone-2.0.2_m68k_bis") contains :
- klone-2.0.2.tar.gz
- m68k-elf.tc
- Makefile (new with the two patch)
- uclinux-vfork.KLONE_REL_2_0_2.patch
- makl.patch
- klapp.mk
The compilation is correct and the execution on embedded system is OK.
After the first compilation I add my .kl1 file in
"klone-2.0.2_m68k_bis/webapp/" and which contains :
<%!
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
%>
<html>
<body>
<%
char* mot = "coucou";
io_printf(out, "%s", mot);
%>
</body>
</html>
I compile with "make" but the compilation displays
/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/webapp/www/tests_standards/test3.kl1:
In function `exec_page':
/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/webapp/www/tests_standards/test3.kl1:9:
parse error before `char'
/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/webapp/www/tests_standards/test3.kl1:10:
`mot' undeclared (first use in this function)
/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/webapp/www/tests_standards/test3.kl1:10:
(Each undeclared identifier is reported only once
/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/webapp/www/tests_standards/test3.kl1:10:
for each function it appears in.)
make[5]: *** [pg_f64f8d7aad264c4e9fbecd3efe9d391a.o] Erreur 1
make[5]: Leaving directory
`/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/klone-2.0.2/build/target/klone-core-2.0.2/site'
make[4]: *** [site] Erreur 2
make[4]: Leaving directory
`/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/klone-2.0.2/build/target/klone-core-2.0.2'
make[3]: *** [klone-make] Erreur 2
make[3]: Leaving directory
`/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/klone-2.0.2'
make[2]: *** [.real-klone-make] Erreur 2
make[2]: Leaving directory
`/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/klone-2.0.2'
make[1]: *** [target-options-default] Erreur 1
make[1]: Leaving directory
`/home/all_user/ug_ma/klone-2.0.2_m68k_patched_bis/klone-2.0.2'
However if my kl1 file contains :
<%!
#include <string.h>
#include <sys/types.h>
#include <dirent.h>
char* mot = "coucou";
%>
<html>
<body>
<%
io_printf(out, "%s", mot);
%>
</body>
</html>
The compilation and the execution are correct. Why ?
I haven't the problem before. But my m68k-elf compilater is strict for the C
language.
To resolve this problem I with to use the C++ compiler, how to specify to
use C++ compiler (given in m68k-elf.tc) ?
Thank you.
--
Mickaël AUGER
mickael.auger at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://koanlogic.com/pipermail/klone-users/attachments/20080409/903df7c0/attachment.html
More information about the klone-users
mailing list