Compile errors on kernel compilation.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The problem happens in make modules when it gets to here:

make -C block modules
make[2]: Entering directory `/usr/src/linux-2.4.18-14/drivers/block'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-14/include -Wall 
-Wstrict-prototypes -W
no-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer 
-pipe -mpreferred-stack-boundary=2 -march=i686 -malign-functions=4  -DMODULE 
-DMODVERSIONS -include /usr/src/linux-2.4.18-14/include/linux/modversions.h
 -nostdinc 
-I /usr/lib/gcc-lib/i386-redhat-linux/3.2/include -DKBUILD_BASENAME=loop  
-DEXPORT_SYMTAB -c loop.c
cc1: warning: -malign-functions is obsolete, use -falign-functions
In file included from 
/usr/src/linux-2.4.18-14/include/linux/spinlock.h:56,
                 from /usr/src/linux-2.4.18-14/include/linux/module.h:11,
                 from loop.c:62:
/usr/src/linux-2.4.18-14/include/asm/spinlock.h:9: invalid suffix on 
integer constant
/usr/src/linux-2.4.18-14/include/asm/spinlock.h:9: parse error before 
numeric constant
/usr/src/linux-2.4.18-14/include/asm/spinlock.h:10: `printk_R_ver_str' 
declared as function returning a function
/usr/src/linux-2.4.18-14/include/asm/spinlock.h:10: warning: function 
declaration isn't a prototype

The full list of errors from the compilation is very formidable, but the 
first two errors are probably all I need to solve. 

Line 9 of spinlock.h says:

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

But, if I run the above gcc command with just the preprocessor, I get the 
following junk:

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

It looks like the printk is blowing up wrong. Can someone, anyone, *please 
help me here? This is a fresh install and for the life of my I can't 
imagine why I'm getting this kind of problem. I have not heard of anyone 
else having this. :-(

Thanks guys. I appreciate the help.

-- 
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question? steveo@syslang.net





[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux