Help Me Compile CPQFC...?
1) I have a deep-rooted biased against the cpqfc (compaq fibrechannel) driver.
2) I'm trying to compile cpqfc (cpqfc_2.1.1) on RedHat ES4.
3)
[root@hostname ~]# lspci | grep Fibre
06:02.0 Fibre Channel: Compaq Computer Corporation FibreChannel HBA Tachyon (rev 06)
There are two makefiles with the package. Both create their own sepearate errors.
Using 'makefile'....
[root@hostname cpqfc]# make
makefile:152: /Rules.make: No such file or directory
make: *** No rule to make target `/Rules.make'. Stop.
After removing the include for 'Rules.make'...
[root@hostname cpqfc]# make
make: *** No rule to make target `scsi.o', needed by `scsi_mod.o'. Stop.
When using 'Makefile'....
[root@hostname cpqfc]# make
cc -D__KERNEL__ -DMODULE -Wall -O2 -DLOCAL_BUILD -DMODULE -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -I. -I.
/include -I/usr/src/linux/drivers/scsi -I/usr/src/linux/include/scsi -I/usr/src/linux/include -D__SMP__ -DCONFIG_SMP -c -o cpqf
cTSinit.o cpqfcTSinit.c
cc1: /usr/src/linux/include/linux/modversions.h: No such file or directory
In file included from /usr/include/linux/sched.h:8,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from /usr/include/linux/sched.h:13,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/linux/times.h:7: error: syntax error before "clock_t"
/usr/include/linux/times.h:9: error: syntax error before "tms_cutime"
/usr/include/linux/times.h:10: error: syntax error before "tms_cstime"
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/linux/timex.h:148: error: field `time' has incomplete type
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/asm/signal.h:107: error: syntax error before "sigset_t"
/usr/include/asm/signal.h:110: error: syntax error before '}' token
In file included from /usr/include/linux/signal.h:5,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/asm/siginfo.h:26: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:38: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:41: error: syntax error before '}' token
/usr/include/asm/siginfo.h:45: error: syntax error before "pid_t"
/usr/include/asm/siginfo.h:48: error: syntax error before "_utime"
/usr/include/asm/siginfo.h:49: error: syntax error before "_stime"
/usr/include/asm/siginfo.h:62: error: syntax error before '}' token
/usr/include/asm/siginfo.h:63: error: syntax error before '}' token
In file included from /usr/include/linux/sched.h:65,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/linux/time.h:10: error: syntax error before "time_t"
/usr/include/linux/time.h:12: error: syntax error before '}' token
/usr/include/linux/time.h:18: error: syntax error before "time_t"
/usr/include/linux/time.h:44: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:45: error: field `it_value' has incomplete type
/usr/include/linux/time.h:49: error: field `it_interval' has incomplete type
/usr/include/linux/time.h:50: error: field `it_value' has incomplete type
In file included from /usr/include/linux/sched.h:67,
from /usr/include/linux/blkdev.h:5,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/linux/resource.h:22: error: field `ru_utime' has incomplete type
/usr/include/linux/resource.h:23: error: field `ru_stime' has incomplete type
In file included from /usr/include/linux/blkdev.h:8,
from /usr/include/linux/blk.h:4,
from cpqfcTSinit.c:34:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
In file included from cpqfcTSinit.c:34:
/usr/include/linux/blk.h:13:2: #endif without #if
cpqfcTSinit.c:36:26: linux/string.h: No such file or directory
cpqfcTSinit.c:40:25: linux/delay.h: No such file or directory
cpqfcTSinit.c:41:25: linux/timer.h: No such file or directory
cpqfcTSinit.c:43:40: linux/vmalloc.h: No such file or directory
cpqfcTSinit.c:52:44: asm/uaccess.h: No such file or directory
cpqfcTSinit.c:55:16: sd.h: No such file or directory
cpqfcTSinit.c:57:19: hosts.h: No such file or directory
In file included from cpqfcTSinit.c:59:
./include/cpqfcTSstructs.h:24:46: linux/tqueue.h: No such file or directory
In file included from ./include/cpqfcTSstructs.h:25,
from cpqfcTSinit.c:59:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
In file included from ./include/cpqfcTSstructs.h:26,
from cpqfcTSinit.c:59:
./include/cpqfcTSioctl.h:60: error: syntax error before "ushort"
./include/cpqfcTSioctl.h:60: warning: no semicolon at end of struct or union
./include/cpqfcTSioctl.h:61: warning: type defaults to `int' in declaration of `pdrive'
./include/cpqfcTSioctl.h:61: warning: data definition has no type or storage class
./include/cpqfcTSioctl.h:67: error: syntax error before '}' token
./include/cpqfcTSioctl.h:67: warning: type defaults to `int' in declaration of `cpqfc_passthru_t'
./include/cpqfcTSioctl.h:67: warning: data definition has no type or storage class
In file included from cpqfcTSinit.c:59:
./include/cpqfcTSstructs.h:537: error: syntax error before "dma_addr_t"
./include/cpqfcTSstructs.h:537: warning: no semicolon at end of struct or union
./include/cpqfcTSstructs.h:540: error: syntax error before '}' token
./include/cpqfcTSstructs.h:540: warning: type defaults to `int' in declaration of `SGPAGES'
./include/cpqfcTSstructs.h:540: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:663: error: syntax error before "dma_addr_t"
./include/cpqfcTSstructs.h:663: warning: no semicolon at end of struct or union
./include/cpqfcTSstructs.h:665: error: syntax error before '}' token
./include/cpqfcTSstructs.h:665: warning: type defaults to `int' in declaration of `ALIGNED_MEM'
./include/cpqfcTSstructs.h:665: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:698: error: syntax error before "u64"
./include/cpqfcTSstructs.h:698: warning: no semicolon at end of struct or union
./include/cpqfcTSstructs.h:698: warning: no semicolon at end of struct or union
./include/cpqfcTSstructs.h:699: warning: type defaults to `int' in declaration of `u'
./include/cpqfcTSstructs.h:699: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:703: error: syntax error before "ScsiCmnd"
./include/cpqfcTSstructs.h:703: warning: type defaults to `int' in declaration of `ScsiCmnd'
./include/cpqfcTSstructs.h:703: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:742: error: syntax error before '}' token
./include/cpqfcTSstructs.h:742: warning: type defaults to `int' in declaration of `FC_LOGGEDIN_PORT'
./include/cpqfcTSstructs.h:742: warning: type defaults to `int' in declaration of `PFC_LOGGEDIN_PORT'
./include/cpqfcTSstructs.h:742: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:751: error: syntax error before "PFC_LOGGEDIN_PORT"
./include/cpqfcTSstructs.h:751: warning: no semicolon at end of struct or union
./include/cpqfcTSstructs.h:752: warning: type defaults to `int' in declaration of `Cmnd'
./include/cpqfcTSstructs.h:752: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:758: error: syntax error before '}' token
./include/cpqfcTSstructs.h:758: warning: type defaults to `int' in declaration of `FC_EXCHANGE'
./include/cpqfcTSstructs.h:758: warning: type defaults to `int' in declaration of `PFC_EXCHANGE'
./include/cpqfcTSstructs.h:758: warning: data definition has no type or storage class
./include/cpqfcTSstructs.h:769: error: syntax error before "FC_EXCHANGE"
etc, etc etc...
I'll continue trying, but any help would be appreciated.
|