Re: Latest Debian package online (including sources)
"Peter T. Breuer" <[email protected]> Mon, 3 Jul 2006 22:05:24 +0200 (MET DST)
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Message-ID | <[email protected]> |
"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. > > 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. Peter