[Klone-users] Core compilation

Stefano Barbato barbato at koanlogic.com
Wed Apr 30 07:13:11 EDT 2008


Hi Mickael,

that's a missing feature; the KLone sdk doesn't track the @include  
dependencies so, following your example, if after receiving the error  
below you update the language.kl1 file the file generated from  
index.kl1 (pg_2cc3da97e110aefe2f9367222c408ec1.c) does not get updated  
with new #defines.

a "touch webapp/www/index.kl1" should fix it.

s


On 30/apr/08, at 12:23, Mickael Auger wrote:

> Hi Stefano,
>
> Here, an example of this error :
> =========================================
> m68k-elf-gcc -I/opt/uClinux-dist/uClibc/include -m5307 -msep-data - 
> D__UCLINUX__ -pipe -I/home/all_use
> r/ug_ma/ug_web-m68k-v2/klone-2.1.0/build/target/klone-core-2.1.0/ 
> libu/include -I/home/all_user/ug_ma/
> ug_web-m68k-v2/klone-2.1.0/build/target/klone-core-2.1.0 - 
> DHAVE_CONF_H -g -DDEBUG   -I/home/all_user/
> ug_ma/ug_web-m68k-v2/ -I/home/all_user/ug_ma/ug_web-m68k-v2/ 
> klone-2.1.0/ -c pg_2cc3da97e110aefe2f9367
> 222c408ec1.c -o pg_2cc3da97e110aefe2f9367222c408ec1.o
> /home/all_user/ug_ma/ug_web-m68k-v2/webapp/www/index.kl1: In  
> function `exec_page':
> /home/all_user/ug_ma/ug_web-m68k-v2/webapp/www/index.kl1:99:  
> `METTRE_A_JOUR' undeclared (first use in
>  this function)
> /home/all_user/ug_ma/ug_web-m68k-v2/webapp/www/index.kl1:99: (Each  
> undeclared identifier is reported
> only once
> /home/all_user/ug_ma/ug_web-m68k-v2/webapp/www/index.kl1:99: for  
> each function it appears in.)
> make[5]: *** [pg_2cc3da97e110aefe2f9367222c408ec1.o] Erreur 1
> =========================================
>
>
> index.kl1 (simplified)
> =========================================
> <%@ include language.kl1 %>
> <html>
>    <body>
>       <%=METTRE_A_JOUR %>
>    </body>
> </html>
> =========================================
>
>
> language.kl1 (simplified)
> =========================================
> <%!
> #define METTRE_A_JOUR "Mettre &agrave; jour"
> %>
> =========================================
>
>
> My procedure is:
> - I modify 'index.kl1' to add 'METTRE_A_JOUR' variable
> - I modify 'language.kl1' to add 'METTRE_A_JOUR' variable
> - I enter 'make' in my shell
> - I have the previous error
>
> If I enter 'make clean && make', it's OK. Strange?!
>
>
> Thank.
>
> -- 
> Mickaël AUGER
> mickael.auger at gmail.com  
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users





More information about the klone-users mailing list