I have installed the 2.4.21-286 kernel source on IBM x220. The aic7xxx are needed to read the SCSI Hard drives. Upon running the make install I get the following error as it get to the aic7xxx.
make[5]: Entering directory `/usr/src/linux-2.4.21-286/drivers/scsi/aic7xxx/aicasm'
gcc -I/usr/include -I. aicasm.c aicasm_symbol.c aicasm_gram.c aicasm_macro_gram.c aicasm_scan.c aicasm_macro_scan.c -o aicasm -ldb
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from aicasm.c:49:
/usr/include/regex.h:535:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
from /usr/include/sys/types.h:26,
from aicasm.c:44:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous definition
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from aicasm_symbol.c:54:
/usr/include/regex.h:535:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
from /usr/include/sys/types.h:26,
from aicasm_symbol.c:45:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous definition
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from aicasm_gram.y:49:
/usr/include/regex.h:535:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
from /usr/include/sys/types.h:26,
from aicasm_gram.y:46:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous definition
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from aicasm_macro_gram.y:49:
/usr/include/regex.h:535:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
from /usr/include/sys/types.h:26,
from aicasm_macro_gram.y:46:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous definition
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from aicasm_scan.l:50:
/usr/include/regex.h:535:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
from /usr/include/stdio.h:28,
from aicasm_scan.c:12:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous definition
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
In file included from aicasm_macro_scan.l:50:
/usr/include/regex.h:535:1: warning: "__restrict_arr" redefined
In file included from /usr/include/features.h:283,
from /usr/include/stdio.h:28,
from aicasm_macro_scan.c:31:
/usr/include/sys/cdefs.h:212:1: warning: this is the location of the previous definition
/tmp/ccWPKPC0.o: In function `symtable_open':
/tmp/ccWPKPC0.o(.text+0x1c9): undefined reference to `dbopen'
collect2: ld returned 1 exit status
make[5]: *** [aicasm] Error 1
make[5]: Leaving directory `/usr/src/linux-2.4.21-286/drivers/scsi/aic7xxx/aicasm'
make[4]: *** [aicasm/aicasm] Error 2
make[4]: Leaving directory `/usr/src/linux-2.4.21-286/drivers/scsi/aic7xxx'
make[3]: *** [first_rule] Error 2
make[3]: Leaving directory `/usr/src/linux-2.4.21-286/drivers/scsi/aic7xxx'
make[2]: *** [_subdir_aic7xxx] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.21-286/drivers/scsi'
make[1]: *** [_subdir_scsi] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.21-286/drivers'
make: *** [_dir_drivers] Error 2