On Thu, May 03, 2007 at 02:58:02PM +0200, zoraida hidalgo wrote: > Hello, > > i'm trying to add a new kernel module to my ubuntu. I want to insert a new > executable interpreter in order to create a new executable format. I have > changed the magic number of an elf executable and I have used the > /fs/binfmt_elf.c. to generate the new interpreter modifying this file to > recognize my executable's magic number. When I try to compile my module > with > this make file: > > MOD=binfmt_elfOS > KMOD=$(MOD).ko > obj-m += $(MOD).o > all: > make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules > > clean: > make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean > > > the displayed message is First, look at the warnings during compilation. >>> make > make -C /lib/modules/2.6.20-15-386/build M=/home/zeta/phd/loader modules > make[1]: se ingresa al directorio `/usr/src/linux-headers-2.6.20-15-386' > CC [M] /home/loader/binfmt_elfOS.o > /home/loader/binfmt_elfOS.c: En la función 'load_elf_binary': > /home//loader/binfmt_elfOS.c:525: aviso: ISO C90 prohíbe las declaraciones > mezcladas y código > /home/loader/binfmt_elfOS.c:757: aviso: declaración implícita de la > función > 'sprint' Typo, correct might be sprintf(). > /home/loader/binfmt_elfOS.c:774: aviso: declaración implícita de la > función > 'steal_locks' No longer available since kernel 2.6.18. >... > MODPOST 1 modules >... > WARNING: "randomize_va_space" [/home/loader/binfmt_elfOS.ko] undefined! >... Not exported to modules (might also be the case for some of the others). > Could anyone help me? > > Thanks! cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ