Digi Neo Installation RedHat 8

Hello,

I am trying to install the driver for Digi Neo Port in RedHat 8. I am using dgnc-1.1 driver pack.

I run configure and then make using default settings. However, the following listing appears:

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: /usr/src/linux-2.4.18-14/include/linux/signal.h:19: parse error before "sigset_t" /usr/src/linux-2.4.18-14/include/linux/signal.h:19: warning: no semicolon at end of struct or union /usr/src/linux-2.4.18-14/include/linux/signal.h:31: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:32: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigaddset’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:33: _sig' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:33: (Each undeclared identifier is reported only once /usr/src/linux-2.4.18-14/include/linux/signal.h:33: for each function it appears in.) /usr/src/linux-2.4.18-14/include/linux/signal.h:34: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:35: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:37: _NSIG_BPW’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:40: parse error before ‘’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:41: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigdelset': /usr/src/linux-2.4.18-14/include/linux/signal.h:42: _sig’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:43: _NSIG_WORDS' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:44: set’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:46: _NSIG_BPW' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: At top level: /usr/src/linux-2.4.18-14/include/linux/signal.h:49: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:50: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigismember’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:51: _sig' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:52: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:53: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:55: _NSIG_BPW’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:108: parse error before '
’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:108: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigorsets': /usr/src/linux-2.4.18-14/include/linux/signal.h:108: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:108: a' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:108: b’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:108: r' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: At top level: /usr/src/linux-2.4.18-14/include/linux/signal.h:111: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:111: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigandsets’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:111: _NSIG_WORDS' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:111: a’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:111: b' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:111: r’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:114: parse error before ‘’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:114: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function signandsets': /usr/src/linux-2.4.18-14/include/linux/signal.h:114: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:114: a' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:114: b’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:114: r' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: At top level: /usr/src/linux-2.4.18-14/include/linux/signal.h:140: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:140: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function signotset’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:140: _NSIG_WORDS' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:140: set’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:145: parse error before '
’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:146: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigemptyset': /usr/src/linux-2.4.18-14/include/linux/signal.h:147: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:149: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:149: sigset_t’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:157: parse error before ‘’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:158: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigfillset': /usr/src/linux-2.4.18-14/include/linux/signal.h:159: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:161: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:161: sigset_t’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:169: parse error before '
’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:169: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h:173: parse error before ‘’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:174: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigaddsetmask': /usr/src/linux-2.4.18-14/include/linux/signal.h:175: set’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:175: mask' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: At top level: /usr/src/linux-2.4.18-14/include/linux/signal.h:178: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:179: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigdelsetmask’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:180: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:180: mask’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/signal.h:183: parse error before '
’ token
/usr/src/linux-2.4.18-14/include/linux/signal.h:184: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/signal.h: In function sigtestsetmask': /usr/src/linux-2.4.18-14/include/linux/signal.h:185: set’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:185: mask' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: At top level: /usr/src/linux-2.4.18-14/include/linux/signal.h:188: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:189: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function siginitset’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:190: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:190: mask’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:191: _NSIG_WORDS' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: At top level: /usr/src/linux-2.4.18-14/include/linux/signal.h:200: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/signal.h:201: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/signal.h: In function siginitsetinv’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:202: set' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h:202: mask’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/signal.h:203: _NSIG_WORDS' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/signal.h: In function init_sigpending’:
/usr/src/linux-2.4.18-14/include/linux/signal.h:216: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/signal.h:217: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/signal.h:218: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/signal.h:218: dereferencing pointer to incomplete type
In file included from dgnc_cls.c:36:
/usr/src/linux-2.4.18-14/include/linux/sched.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/sched.h:208: parse error before “pgd_t”
/usr/src/linux-2.4.18-14/include/linux/sched.h:208: warning: no semicolon at end of struct or union
/usr/src/linux-2.4.18-14/include/linux/sched.h:228: parse error before ‘:’ token
/usr/src/linux-2.4.18-14/include/linux/sched.h:232: parse error before ‘}’ token
/usr/src/linux-2.4.18-14/include/linux/sched.h:249: _NSIG' undeclared here (not in a function) /usr/src/linux-2.4.18-14/include/linux/sched.h:396: parse error before "sigset_t" /usr/src/linux-2.4.18-14/include/linux/sched.h:396: warning: no semicolon at end of struct or union /usr/src/linux-2.4.18-14/include/linux/sched.h:403: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/sched.h:403: warning: type defaults to int’ in declaration of notifier_mask' /usr/src/linux-2.4.18-14/include/linux/sched.h:403: warning: data definition has no type or storage class /usr/src/linux-2.4.18-14/include/linux/sched.h:413: parse error before '}' token /usr/src/linux-2.4.18-14/include/linux/sched.h:512: field task’ has incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function hash_pid': /usr/src/linux-2.4.18-14/include/linux/sched.h:529: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:529: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:531: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:532: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:532: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:534: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h: In function unhash_pid’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:539: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h:540: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h:540: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h:541: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h:541: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function find_task_by_pid': /usr/src/linux-2.4.18-14/include/linux/sched.h:548: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:548: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h: In function task_set_cpu’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:558: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h:559: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function task_release_cpu': /usr/src/linux-2.4.18-14/include/linux/sched.h:564: dereferencing pointer to incomplete type In file included from dgnc_cls.c:36: /usr/src/linux-2.4.18-14/include/linux/sched.h:571:25: asm/current.h: No such file or directory /usr/src/linux-2.4.18-14/include/linux/sched.h: At top level: /usr/src/linux-2.4.18-14/include/linux/sched.h:613: parse error before '*' token /usr/src/linux-2.4.18-14/include/linux/sched.h:613: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/sched.h:615: parse error before "sigset_t" /usr/src/linux-2.4.18-14/include/linux/sched.h:615: warning: function declaration isn't a prototype /usr/src/linux-2.4.18-14/include/linux/sched.h: In function signal_pending’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:634: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/sched.h:641: parse error before ‘*’ token
/usr/src/linux-2.4.18-14/include/linux/sched.h:642: warning: function declaration isn’t a prototype
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function has_pending_signals': /usr/src/linux-2.4.18-14/include/linux/sched.h:646: _NSIG_WORDS’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/sched.h:648: warning: left-hand operand of comma expression has no effect
/usr/src/linux-2.4.18-14/include/linux/sched.h:649: signal' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/sched.h:649: blocked’ undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function recalc_sigpending': /usr/src/linux-2.4.18-14/include/linux/sched.h:673: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:673: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:673: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h: In function on_sig_stack’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:680: current' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/sched.h: In function sas_ss_flags’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:685: current' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/sched.h: In function suser’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:710: current' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/sched.h: In function fsuser’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:719: current' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/sched.h: In function capable’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:735: current' undeclared (first use in this function) /usr/src/linux-2.4.18-14/include/linux/sched.h: In function mmdrop’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:758: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function del_from_runqueue': /usr/src/linux-2.4.18-14/include/linux/sched.h:879: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:880: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:881: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h: In function task_on_runqueue’:
/usr/src/linux-2.4.18-14/include/linux/sched.h:886: dereferencing pointer to incomplete type
/usr/src/linux-2.4.18-14/include/linux/sched.h: In function unhash_process': /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:895: dereferencing pointer to incomplete type /usr/src/linux-2.4.18-14/include/linux/sched.h:896: dereferencing pointer to incomplete type 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?

There is a mis-match between the running kernel and the kernel-source package. Be sure the kernel source that is installed matches your running kernel exactly and create a symbolic link:

uname -r

rpm -qa | grep kernel-source

ln -s /usr/src/linux-(version) /usr/src/linux

Also, please be sure to specify the distribution when running “configure”:

./configure DISTRO=REDHAT_80