LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-16-2006, 10:10 AM   #1
TotalDefiance
Member
 
Registered: Jan 2004
Distribution: Slackware, RH, WBEL
Posts: 65

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 05:22 PM
cpqfc on AS 3.0 bwynia Linux - Hardware 0 08-08-2004 02:36 PM
Compaq RA4100 and cpqfc module not showing disks mschrijn Linux - Hardware 0 09-07-2003 12:05 PM
cpqfc driver gets installe first not scsi driver... vinay_r99 Linux - Hardware 0 09-05-2002 10:03 AM
How to install cpqfc driver in 7.1 version vinay_r99 Linux - Hardware 1 06-14-2002 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration