LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-15-2004, 07:33 AM   #1
chipix
LQ Newbie
 
Registered: Dec 2002
Location: Athens, HELLAS
Distribution: Fedora Core 4
Posts: 22

Rep: Reputation: 15
Question Installation Digi Neo Port RedHat 8


Hi,

I am trying to install a Digi Neo port PCI card in a RedHat 8 PC (default kernel 2.4.18-14).
However, when I try to compile the driver I get the following errors:

Code:
gcc -O2 -march=i486 -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing -DCPU=586 -O2 -D__KERNEL__ -DMODULE  -DLINUX -DDG_NAME=\"dgnc-"1.1-1"\" -DDG_PART=\"40002369_B\" -I/usr/src/linux-2.4.18-14/include -I./include -I../include -I../dpa -Wall -Wstrict-prototypes -pipe -fno-strength-reduce -DDGNC_TRACER  -DNO_DISTRO -c dgnc_cls.c -o dgnc_cls.o
In file included from /usr/src/linux-2.4.18-14/include/linux/config.h:4,
                 from /usr/src/linux-2.4.18-14/include/linux/linkage.h:4,
                 from /usr/src/linux-2.4.18-14/include/linux/kernel.h:11,
                 from dgnc_cls.c:34:
/usr/include/linux/autoconf.h:1:2: #error Invalid kernel header included in userspace
In file included from /usr/src/linux-2.4.18-14/include/linux/dcache.h:6,
                 from /usr/src/linux-2.4.18-14/include/linux/fs.h:19,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/include/asm/atomic.h:40:2: warning: #warning Using kernel header in userland program. BAD!
In file included from /usr/src/linux-2.4.18-14/include/linux/dcache.h:7,
                 from /usr/src/linux-2.4.18-14/include/linux/fs.h:19,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/mount.h: In function `mntget':
/usr/src/linux-2.4.18-14/include/linux/mount.h:37: warning: implicit declaration of function `atomic_inc'
/usr/src/linux-2.4.18-14/include/linux/mount.h: In function `mntput':
/usr/src/linux-2.4.18-14/include/linux/mount.h:46: warning: implicit declaration of function `atomic_dec_and_test'
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:19,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/dcache.h: In function `dget':
/usr/src/linux-2.4.18-14/include/linux/dcache.h:247: warning: implicit declaration of function `BUG'
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:26,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/include/asm/bitops.h:333:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:334:2: warning: #warning Using kernel headers in userspace.
In file included from /usr/src/linux-2.4.18-14/include/linux/ext3_fs_i.h:19,
                 from /usr/src/linux-2.4.18-14/include/linux/fs.h:293,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/rwsem.h: In function `down_read':
/usr/src/linux-2.4.18-14/include/linux/rwsem.h:44: warning: implicit declaration of function `__down_read'
/usr/src/linux-2.4.18-14/include/linux/rwsem.h: In function `down_write':
/usr/src/linux-2.4.18-14/include/linux/rwsem.h:54: warning: implicit declaration of function `__down_write'
/usr/src/linux-2.4.18-14/include/linux/rwsem.h: In function `up_read':
/usr/src/linux-2.4.18-14/include/linux/rwsem.h:64: warning: implicit declaration of function `__up_read'
/usr/src/linux-2.4.18-14/include/linux/rwsem.h: In function `up_write':
/usr/src/linux-2.4.18-14/include/linux/rwsem.h:74: warning: implicit declaration of function `__up_write'
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:293,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/ext3_fs_i.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/ext3_fs_i.h:75: field `truncate_sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:294,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/hpfs_fs_i.h:19: field `i_sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:301,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/affs_fs_i.h:27: field `i_link_lock' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/affs_fs_i.h:28: field `i_ext_lock' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:306,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/shmem_fs.h:24: field `sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:314,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/ncp_fs_i.h:22: field `open_sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:317,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/jffs2_fs_i.h:26: field `sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/fs.h:415: field `sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:425: field `bd_sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:453: field `i_sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:454: field `i_zombie' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/fs.h:655: field `dqio_sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:656: field `dqoff_sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:675,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/msdos_fs_sb.h:44: field `fat_lock' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:679,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/affs_fs_sb.h:28: field `s_bmlock' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:683,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/smb_fs_sb.h:37: field `sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/smb_fs_sb.h: In function `smb_lock_server':
/usr/src/linux-2.4.18-14/include/linux/smb_fs_sb.h:65: warning: implicit declaration of function `down'
/usr/src/linux-2.4.18-14/include/linux/smb_fs_sb.h: In function `smb_unlock_server':
/usr/src/linux-2.4.18-14/include/linux/smb_fs_sb.h:71: warning: implicit declaration of function `up'
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:690,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/ncp_fs_sb.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/ncp_fs_sb.h:46: field `sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/fs.h:693,
                 from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/jffs2_fs_sb.h:29: field `gc_thread_start' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/jffs2_fs_sb.h:34: field `alloc_sem' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/capability.h:17,
                 from /usr/src/linux-2.4.18-14/include/linux/binfmts.h:5,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:9,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/fs.h:713: field `s_umount' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:714: field `s_lock' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:758: field `s_vfs_rename_sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h:767: field `s_nfsd_free_path_sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/fs.h: In function `put_bh':
/usr/src/linux-2.4.18-14/include/linux/fs.h:1125: warning: implicit declaration of function `smp_mb__before_atomic_dec'
/usr/src/linux-2.4.18-14/include/linux/fs.h:1126: warning: implicit declaration of function `atomic_dec'
In file included from /usr/src/linux-2.4.18-14/include/linux/sched.h:24,
                 from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/tty.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/tty.h:141: field `pty_sem' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/tty.h:307: field `atomic_read' has incomplete type
/usr/src/linux-2.4.18-14/include/linux/tty.h:308: field `atomic_write' has incomplete type
In file included from /usr/src/linux-2.4.18-14/include/linux/signal.h:4,
                 from /usr/src/linux-2.4.18-14/include/linux/sched.h:26,
                 from dgnc_cls.c:36:
/usr/include/asm/signal.h:107: parse error before "sigset_t"
/usr/include/asm/signal.h:110: parse error before '}' token
In file included from /usr/src/linux-2.4.18-14/include/linux/sched.h:26,
                 from dgnc_cls.c:36:

...
(the listing continues)
In file included from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function `task_lock':
/usr/src/linux-2.4.18-14/include/linux/sched.h:903: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function `d_path':
/usr/src/linux-2.4.18-14/include/linux/sched.h:918: `current' undeclared (first use in this function)
In file included from dgnc_cls.c:37:
/usr/src/linux-2.4.18-14/include/linux/interrupt.h:45:25: asm/hardirq.h: No such file or directory
/usr/src/linux-2.4.18-14/include/linux/interrupt.h:46:25: asm/softirq.h: No such file or directory
In file included from dgnc_cls.c:37:
/usr/src/linux-2.4.18-14/include/linux/interrupt.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/interrupt.h:128: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/src/linux-2.4.18-14/include/linux/interrupt.h:128: requested alignment is not a constant
/usr/src/linux-2.4.18-14/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/usr/src/linux-2.4.18-14/include/linux/interrupt.h:175: warning: implicit declaration of function `smp_mb__after_atomic_inc'
In file included from dgnc_cls.c:38:
/usr/src/linux-2.4.18-14/include/linux/delay.h:12:23: asm/delay.h: No such file or directory
dgnc_cls.c: In function `cls_param':
dgnc_cls.c:270: warning: implicit declaration of function `readb'
dgnc_cls.c:280: warning: implicit declaration of function `writeb'
dgnc_cls.c: In function `cls_drain':
dgnc_cls.c:674: `current' undeclared (first use in this function)
dgnc_cls.c: In function `cls_flush_uart_write':
dgnc_cls.c:692: warning: implicit declaration of function `udelay'
/usr/include/asm/io.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/sched.h:212: storage size of `mmap_sem' isn't known
/usr/src/linux-2.4.18-14/include/linux/sched.h:397: storage size of `pending' isn't known
make[1]: *** [dgnc_cls.o] Error 1
make[1]: Leaving directory `/tmp/dgnc-1.1/driver'
make: *** [build] Error 2
Any suggestions?
 
  


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
Neo under Debian nefryt Debian 2 12-03-2005 03:09 AM
k8n neo platinum pete123 Suse/Novell 5 05-19-2005 02:47 PM
digi driver installation errs:no member named session Sailaja Reddy Red Hat 0 08-16-2004 05:22 AM
K8T Neo-FIS2R, any luck yet? batmanamd64 Fedora 0 03-13-2004 11:09 PM
red hat install on msi875p neo taote Linux - Hardware 2 11-05-2003 11:11 PM


All times are GMT -5. The time now is 03:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration