Hello,

System Info:
Tyan S1668 Dual PentiumPro@180MHz
224MB RAM
TNT2 32MB
Promise Ultra66 Card
Netgear FA311 Ethernet
SB AWE64
15GB Quantum LCT15.

Just installed Mandrake 8.2 on my Dual PentiumPro box and decided to fine
tune the kernel, make bzImage builds no problem but when the modules build I
get the following compile errors:

make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.18-6mdk/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-6mdk/include  -Wall -Wstrict-protot
ypes  -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-point
er -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -D
MODVERSIONS -include
/usr/src/linux-2.4.18-6mdk/include/linux/modversions.h -DKBUILD_BASENAME=nbd
  -c -o nbd.o nbd.c
In file included from
/usr/src/linux-2.4.18-6mdk/include/linux/spinlock.h:39,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/module.h:11,
                 from nbd.c:36:
/usr/src/linux-2.4.18-6mdk/include/asm/spinlock.h:10: nondigits in number
and not hexadecimal /usr/src/linux-2.4.18-6mdk/include/asm/spinlock.h:10:
nondigits in number and not hexadecimal
/usr/src/linux-2.4.18-6mdk/include/asm/spinlock.h:10: parse error before
`1b7d4074'
/usr/src/linux-2.4.18-6mdk/include/asm/spinlock.h:11: `printk_R_ver_str'
declared as function returning a function
/usr/src/linux-2.4.18-6mdk/include/asm/spinlock.h:11: warning: function
declaration isn't a prototype
In file included from
/usr/src/linux-2.4.18-6mdk/include/linux/prefetch.h:13,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/list.h:6,
                 from /usr/src/linux-2.4.18-6mdk/include/linux/module.h:12,
                 from nbd.c:36:
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:51: warning: parameter
names (without types) in function declaration
/usr/src/linux-2.4.18-6mdk/include/asm/processor.h:51: field
`loops_per_jiffy_R_ver_str' declared as a function

---------------- end compile errors

Now looking at the files these are the lines that are flagged:

asm/spinlock.h:10

extern int printk(const char * fmt, ...)
 __attribute__ ((format (printf, 1, 2)));

asm/processor.h:51
struct cpuinfo_x86 {
        ...
 unsigned long loops_per_jiffy;
        ...
} __attribute__((__aligned__(SMP_CACHE_BYTES)));

Obviously somewhere in my config I have either got something #defined that I
should or should not, for all my looking I cannot see what it could be, I
bet it is something so simple I am just overlooking it.

Anyone else had any problems building modules ?

Thanks for any help or hints.

Richard.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to