raid517
01-08-2003, 09:27 PM
Hi I wondered if anyone could help me. I have just recently learned how to compile a kernel, however using Mandrake 9.0 I can never seem to complete the compiling process without errors. I have taken great care only to include drivers at part of my kernel when they are directly relevant to my system - and only loading the others that might be useful in the future as modules. I have also opted to try to make sure that I only use drivers/options that are relevant to me while ommiting completely anything that I explicitly do not need.
I couldn't get the official Mandrake 9.0 kernel to compile, so I tried with 2.4.19 form http://www.kernel.org/ - which after disabling almost everything except what I thought to be essential did work... I tried again with 2.5.9 (remember I'm a n00b so I don't know if this is Alpha or not) but it quit with an error:
gcc -D__KERNEL__ -I/usr/src/linux-2.5.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=ataraid -DEXPORT_SYMTAB -c ataraid.c
ataraid.c: In function `ataraid_make_request':
ataraid.c:105: structure has no member named `b_rdev'
ataraid.c: In function `ataraid_split_request':
ataraid.c:182: structure has no member named `b_rsector'
ataraid.c:193: warning: passing arg 1 of `generic_make_request' makes pointer from integer without a cast
ataraid.c:193: too many arguments to function `generic_make_request'
ataraid.c:194: warning: passing arg 1 of `generic_make_request' makes pointer from integer without a cast
ataraid.c:194: too many arguments to function `generic_make_request'
ataraid.c: In function `ataraid_init':
ataraid.c:249: `hardsect_size' undeclared (first use in this function)
ataraid.c:249: (Each undeclared identifier is reported only once
ataraid.c:249: for each function it appears in.)
ataraid.c:280: warning: passing arg 2 of `blk_queue_make_request' from incompatible pointer type
ataraid.c: In function `ataraid_exit':
ataraid.c:289: `hardsect_size' undeclared (first use in this function)
make[3]: *** [ataraid.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.9/drivers/ide'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.9/drivers/ide'
make[1]: *** [_subdir_ide] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.9/drivers'
make: *** [_dir_drivers] Error 2
[root@localhost linux-2.5.9]#
Usually when trying to compile the Mandrake kernel it quits with errors such as ...error opening directory, no such file or directory... When I look for the stated missing files, they usually are indeed missing from the Mandrake source folder...
Can anyone explain why I would get such frequent and seemingly random errors? If Its a case that I must disable virtually all of the features included in the kernel (I never enable any of those features listed as 'experimental' anyway) then why are they included there as options?
Are such errors common place?
I have included my Mandrake configuration file below. The challenge I guess is to see if I have done anything screwy with this file and if while it doesn't compile on my machine, someone else can get the same file to compile on theirs... (BTW I am using an AMD machine if that's relevant). Any advice anyone can offer would be much appreciated.
Q
Ps
Please remove the .txt extension from the file if you do attempt to compile it... :)
I couldn't get the official Mandrake 9.0 kernel to compile, so I tried with 2.4.19 form http://www.kernel.org/ - which after disabling almost everything except what I thought to be essential did work... I tried again with 2.5.9 (remember I'm a n00b so I don't know if this is Alpha or not) but it quit with an error:
gcc -D__KERNEL__ -I/usr/src/linux-2.5.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=athlon -DKBUILD_BASENAME=ataraid -DEXPORT_SYMTAB -c ataraid.c
ataraid.c: In function `ataraid_make_request':
ataraid.c:105: structure has no member named `b_rdev'
ataraid.c: In function `ataraid_split_request':
ataraid.c:182: structure has no member named `b_rsector'
ataraid.c:193: warning: passing arg 1 of `generic_make_request' makes pointer from integer without a cast
ataraid.c:193: too many arguments to function `generic_make_request'
ataraid.c:194: warning: passing arg 1 of `generic_make_request' makes pointer from integer without a cast
ataraid.c:194: too many arguments to function `generic_make_request'
ataraid.c: In function `ataraid_init':
ataraid.c:249: `hardsect_size' undeclared (first use in this function)
ataraid.c:249: (Each undeclared identifier is reported only once
ataraid.c:249: for each function it appears in.)
ataraid.c:280: warning: passing arg 2 of `blk_queue_make_request' from incompatible pointer type
ataraid.c: In function `ataraid_exit':
ataraid.c:289: `hardsect_size' undeclared (first use in this function)
make[3]: *** [ataraid.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.9/drivers/ide'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.9/drivers/ide'
make[1]: *** [_subdir_ide] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.9/drivers'
make: *** [_dir_drivers] Error 2
[root@localhost linux-2.5.9]#
Usually when trying to compile the Mandrake kernel it quits with errors such as ...error opening directory, no such file or directory... When I look for the stated missing files, they usually are indeed missing from the Mandrake source folder...
Can anyone explain why I would get such frequent and seemingly random errors? If Its a case that I must disable virtually all of the features included in the kernel (I never enable any of those features listed as 'experimental' anyway) then why are they included there as options?
Are such errors common place?
I have included my Mandrake configuration file below. The challenge I guess is to see if I have done anything screwy with this file and if while it doesn't compile on my machine, someone else can get the same file to compile on theirs... (BTW I am using an AMD machine if that's relevant). Any advice anyone can offer would be much appreciated.
Q
Ps
Please remove the .txt extension from the file if you do attempt to compile it... :)