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

MIG !!!



I'm having problems to compile the mig 1.3 
first i used the command: 

root@Saturno:~/hurd/mig/objdir# ../mig-1.3/configure --prefix=/usr/local 
--target=i586-gnu --with-hearders=/root/hurd/gnumach/gnumach-1.3/include/ 

followed by 

root@Saturno:~/hurd/mig/objdir# make prefix=/usr/local 

after this, I had to change the gensym.awk because this create an output 
file (cpu.symc) like this 

#include <mach/message.h> 
void bogus() { 
__asm (" 
* word_size mAgIc%0" : : "i" (sizeof(integer_t))); 
__asm (" 
* word_size_in_bits mAgIc%0" : : "i" (sizeof(integer_t)*8)); 
__asm (" 
* sizeof_pointer mAgIc%0" : : "i" (sizeof(void*))); 

.. 

then I modified the output file to this: 

#include <mach/message.h> 
void bogus() { 
__asm ("* word_size mAgIc%0" : : "i" (sizeof(integer_t))); 
__asm ("* word_size_in_bits mAgIc%0" : : "i" (sizeof(integer_t)*8)); 
__asm ("* sizeof_pointer mAgIc%0" : : "i" (sizeof(void*))); 

.. 

after the alteration, the compile of some file happened (error.o, global.o 
and header.o), showing another time 
an error message, like this: 

root@Saturno:~/hurd/mig/objdir# make prefix=/usr/local/ 

.. 

gcc -DPACKAGE=\"mig\" -DVERSION=\"1.3\" -DYYTEXT_POINTER=1 
-DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_VPRINTF=1  -I. 
-I../mig-1.3      -g -O2 -c 
lexxer.c 
./mig-1.3/lexxer.l: In function `yylex': 
./mig-1.3/lexxer.l:151: `MACH_MSG_TYPE_POLYMORPHIC' undeclared (first use 
in this function) 
./mig-1.3/lexxer.l:151: (Each undeclared identifier is reported only once 
./mig-1.3/lexxer.l:151: for each function it appears in.) 
./mig-1.3/lexxer.l:151: `word_size_in_bits' undeclared (first use in this 
function) 
./mig-1.3/lexxer.l:153: `MACH_MSG_TYPE_UNSTRUCTURED' undeclared (first 
use in this function) 
./mig-1.3/lexxer.l:154: `MACH_MSG_TYPE_BIT' undeclared (first use in this 
function) 
./mig-1.3/lexxer.l:155: `MACH_MSG_TYPE_BOOLEAN' undeclared (first use in 
this function) 

.. 

./mig-1.3/lexxer.l:169: `MACH_MSG_TYPE_MOVE_SEND' undeclared (first use 
in this function) 
./mig-1.3/lexxer.l:170: `MACH_MSG_TYPE_MAKE_SEND_ONCE' undeclared (first 
use in this function) 
./mig-1.3/lexxer.l:170: `MACH_MSG_TYPE_PORT_SEND_ONCE' undeclared (first 
use in this function) 
./mig-1.3/lexxer.l:171: `MACH_MSG_TYPE_MOVE_SEND_ONCE' undeclared (first 
use in this function) 
./mig-1.3/lexxer.l:173: `MACH_MSG_TYPE_PORT_NAME' undeclared (first use 
in this function) 
make: *** [lexxer.o] Error 1 
root@Saturno:~/hurd/mig/objdir# 

i dont know if the error is a incorret compile of lexxer.l(flex) or a 
consequence of the alteration made by me in the gensym.awk?? if not, how can 
i fix this??? 

_________________________________________________________
Voce quer um iGMail protegido contra vírus e spams? 
Clique aqui: http://www.igmailseguro.ig.com.br
Ofertas imperdíveis! Link: http://www.americanas.com.br/ig/



Reply to: