[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES compile problem



Hello,

On Thu, 25 Dec 2003 14:44:49 +0200 (MET), Erich Arning <Erich.Arning@t-online.de> wrote:

Hi,
now this comes when compiling XaAES:
...
In file included from /usr/include/mt_gemx.h:14,
                 from xa_aes.h:31,
                 from xa_types.h:30,
                 from xa_appl.c:26:
/usr/include/mt_gem.h:1119: warning: declaration of `Path' shadows global declaration /usr/include/mt_gem.h:1120: warning: declaration of `Path' shadows global declaration /usr/include/mt_gem.h:1121: warning: declaration of `Path' shadows global declaration
xa_appl.c: In function `XA_appl_search':
xa_appl.c:64: `APP_DESK' undeclared (first use in this function)
xa_appl.c:64: (Each undeclared identifier is reported only once
xa_appl.c:64: for each function it appears in.)
make[1]: *** [xa_appl.o] Error 1
make[1]: Leaving directory `/j/root/freemint/xaaes/src'
make: *** [all-recursive] Error 1
root@hades/root/freemint/xaaes>

The problem is in xa_aes.h

this file contains
#include "mt_gemx.h"

but there is no "-I../../../lib/gemlib/" parameter given by the makefile to gcc, so gcc includes the header from /usr/include. You have to install the current gemlib (from CVS) to get xaaes compilable. You may also wait for gemlib 0.43.1.

BTW, here is an interesting question: may XaAES include files from gemlib-cvs (IIRC xaaes is on the /freemint cvs module, and gemlib is on the /lib cvs module) ? The path from xaaes to gemlib may differ from one developper to another...

If the answer is YES (link from xaaes-cvs to gemlib-cvs), then the line "#include "mt_gem.h"" must be included before "#include "mt_gemx.h"". Without this line, "mt_gemx.h" (../../../lib/gemlib/mt_gemx.h) will include <mt_gem.h> (/usr/include/mt_gem.h) instead of "mt_gem.h" (../../../lib/gemlib/mt_gem.h).

If the answer is NO, we should use <mt_gemx.h> instead of "mt_gemx.h".

best regards,
Arnaud.


Nota: I just added the missing line "#include "mt_gem.h"" in xaaes/src/xa_aes.h. It's now in CVS.