Re: Latest Debian package online (including sources)
Bas van Schaik <[email protected]> Tue, 04 Jul 2006 00:46:23 +0200
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
Peter T. Breuer wrote: > "Also sprach Bas van Schaik:" > >> I'v executed nm ask you requested: >> >>> $ nm -l --debug-syms --print-file-name /tmp/*.ko | grep strcpy >>> /tmp/enbd.ko: U strcpy enbd_proc.c:0 >>> > > >>>> gcc -I/home/bas/temp/modules/enbd-module/kernel/linux-2.6.x/include -Wp,-MD,/tmp/linux-2.6.x/drivers/block/enbd/.enbd_proc.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -msoft-float -march=i686 -Iinclude/asm-i386/mach-default -Os -fomit-frame-pointer -Wdeclaration-after-statement -DMODULE -I"/home/bas/temp/modules/enbd-module/kernel/linux-2.6.x/include" -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(enbd_proc)" -D"KBUILD_MODNAME=KBUILD_STR(enbd)" -c -o /tmp/linux-2.6.x/drivers/block/enbd/.tmp_enbd_proc.o /tmp/linux-2.6.x/drivers/block/enbd/enbd_proc.c >>>> > > Yes. Remove -Os. You can't hope to compile for small size and expect > code to be inlined! Correct kernel compilation needs -O1 or -O2. > Weird, I didn't change anything here, but I'll look at it when I'm somehow near the Debian unstable system. Can you tell me the difference between "-O1" and "-O2", I'll need to choose which one to use. >>> make[1]: Leaving directory `/usr/src/linux-headers-2.6.16-2-686' >>> >> I've noticed the weird "unary operator expected" error, but can't find >> the cause of it. There's only line in your code (somewhere in >> > One generally runs make under strace to see what it is. > Did that, but couldn't find out what was causing the error. However, I didn't take a real close look at it, because I didn't think that it was causing the build errors. I will of course check it out soon... Thanks for your help! It's really appreciated! -- Bas