[pso] compilare tema 1

Daniel Baluta daniel.baluta at gmail.com
Mon Mar 30 13:55:26 EEST 2009


Salut,

Te-ai uitat aici ([1]).

Ce-ti spune #ifndef __KERNEL__?

thanks,
Daniel.

[1]http://lxr.linux.no/linux+v2.6.28.4/arch/x86/include/asm/ptrace.h#L19

2009/3/30 Andrei Hanganu <handrei at gmail.com>:
> 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
>
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
>


More information about the pso mailing list