[pso] compilare tema 1

Andrei Hanganu handrei at gmail.com
Mon Mar 30 13:48:32 EEST 2009


Salut.

In ultima etapa a temei 1 linux compilarea esueaza din cauza la, citez:

/root/pso/root/tema_1/sci.c:110: error: 'struct pt_regs' has no member named
'eax'
/root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member named
'ebx'
/root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member named
'ecx'
/root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member named
'edx'
/root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member named
'esi'
/root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member named
'edi'
/root/pso/root/tema_1/sci.c:118: error: 'struct pt_regs' has no member named
'ebp'

practic folosesc membrii acestia din pt_regs in callul lui log_syscall.

Structura e definita in ptrace.h in sursele kernelului, dar nu stiu de ce nu
ia definirea valida pentru i386. Pe imaginea de anul trecut nu aveam eroarea
aceasta, inteleg ca e alta versiune de kernel dar nu am gasit nicaieri
documentata schimbarea formei acestei structuri, deci trag concluzia ca
gresesc eu cu ceva la compilare.
De altfel "make prepare" si "make modules_prepare" in /usr/src/linux nu a
avut nici un impact, am incercat chiar niste linkuri fortate la alte
directoare asm in sursa kernelului fara sorti de izbanda.

orice sugestie e apreciata,
multumesc

Hanganu Andrei
352c4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090330/ad7bdf79/attachment.htm>


More information about the pso mailing list