LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-12-2005, 05:45 PM   #1
Arodef
Member
 
Registered: Apr 2004
Distribution: Centos, Fedora
Posts: 125

Rep: Reputation: 17
Help needed installing Dlink network adapter driver - compile errors


I'm getting a compile error when I try to compile their driver. I'm running Fedora Core 1, kernel 2.4.22. I meet the requirements listed on their readme file (kernel later than 2.4.18, kernel source is installed). If you want to see if it can compile on your system, the driver is located at:

http://support.dlink.com/products/vi...id=DGE%2D530T#

Attached below is a copy the start of the errors I am getting, it's too long to include all of it. Any ideas? Thanks for any help!

[root@super sk98lin]# make all
gcc -D__KERNEL__ -DMODULE -D__SMP__ -O2 -Wall -Wstrict-prototypes -I/usr/include -I. -DSK_USE_CSUM -c -o skge.o skge.c
In file included from skge.c:368:
/usr/include/linux/proc_fs.h:47: error: syntax error before "off_t"
/usr/include/linux/proc_fs.h:51: error: syntax error before "off_t"
/usr/include/linux/proc_fs.h:57: error: syntax error before "mode_t"
/usr/include/linux/proc_fs.h:59: error: syntax error before "uid"
/usr/include/linux/proc_fs.h:60: error: syntax error before "gid"
/usr/include/linux/proc_fs.h:70: error: syntax error before "count"
/usr/include/linux/proc_fs.h:72: error: syntax error before "rdev"
/usr/include/linux/proc_fs.h:176: error: syntax error before "mode_t"
/usr/include/linux/proc_fs.h: In function `proc_net_create':
/usr/include/linux/proc_fs.h:177: error: `NULL' undeclared (first use in this function)
/usr/include/linux/proc_fs.h:177: error: (Each undeclared identifier is reported only once
/usr/include/linux/proc_fs.h:177: error: for each function it appears in.)
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:181: error: syntax error before "mode_t"
/usr/include/linux/proc_fs.h: In function `create_proc_entry':
/usr/include/linux/proc_fs.h:181: error: `NULL' undeclared (first use in this function)
/usr/include/linux/proc_fs.h: In function `proc_symlink':
/usr/include/linux/proc_fs.h:185: error: `NULL' undeclared (first use in this function)
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:186: error: syntax error before "mode_t"
/usr/include/linux/proc_fs.h: In function `proc_mknod':
/usr/include/linux/proc_fs.h:187: error: `NULL' undeclared (first use in this function)
/usr/include/linux/proc_fs.h: In function `proc_mkdir':
/usr/include/linux/proc_fs.h:189: error: `NULL' undeclared (first use in this function)
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:192: error: syntax error before "mode_t"
/usr/include/linux/proc_fs.h:193: error: syntax error before "off_t"
/usr/include/linux/proc_fs.h:193: error: `create_proc_read_entry' declared as function returning a function
/usr/include/linux/proc_fs.h:196: error: syntax error before "mode_t"
/usr/include/linux/proc_fs.h: In function `create_proc_info_entry':
/usr/include/linux/proc_fs.h:197: error: `NULL' undeclared (first use in this function)
/usr/include/linux/proc_fs.h: At top level:
/usr/include/linux/proc_fs.h:203: error: `NULL' used prior to declaration
In file included from /usr/include/linux/interrupt.h:10,
from h/skdrv1st.h:129,
from skge.c:369:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from h/skdrv1st.h:129,
from skge.c:369:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: No such file or directory
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: No such file or directory
In file included from h/skdrv1st.h:129,
from skge.c:369:
/usr/include/linux/interrupt.h:73: error: syntax error before "void"
/usr/include/linux/interrupt.h:77: error: syntax error before '(' token
/usr/include/linux/interrupt.h:78: error: syntax error before '(' token
/usr/include/linux/interrupt.h:106: error: syntax error before "atomic_t"
/usr/include/linux/interrupt.h:108: error: conflicting types for `data'
/usr/include/linux/proc_fs.h:67: error: previous declaration of `data'
/usr/include/linux/interrupt.h:109: error: syntax error before '}' token
/usr/include/linux/interrupt.h:127: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:127: error: requested alignment is not a constant/usr/include/linux/interrupt.h:154: error: syntax error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/include/linux/interrupt.h:158: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:162: error: syntax error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/include/linux/interrupt.h:166: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/usr/include/linux/interrupt.h:173: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_enable':
/usr/include/linux/interrupt.h:187: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_hi_enable':
/usr/include/linux/interrupt.h:193: error: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:224: error: syntax error before "global_bh_lock"
/usr/include/linux/interrupt.h: In function `mark_bh':
/usr/include/linux/interrupt.h:228: error: invalid use of undefined type `struct tasklet_struct'
In file included from h/skdrv1st.h:131,
from skge.c:369:
/usr/include/asm/byteorder.h:6:2: warning: #warning using private kernel header; include <endian.h> instead!
In file included from h/skdrv1st.h:133,
from skge.c:369:
/usr/include/asm/io.h:4:2: warning: #warning <asm/io.h> is deprecated, use <sys/io.h> instead
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/skbuff.h:19,
from h/skdrv1st.h:136,
from skge.c:369:
/usr/include/linux/timex.h: At top level:
/usr/include/linux/timex.h:56: error: syntax error before "and"
In file included from /usr/include/linux/timex.h:126,
from /usr/include/linux/sched.h:14,
from /usr/include/linux/skbuff.h:19,
from h/skdrv1st.h:136,
from skge.c:369:
/usr/include/asm/timex.h:33: error: syntax error before "cacheflush_time"
/usr/include/asm/timex.h:35: error: syntax error before "get_cycles"
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/skbuff.h:19,
from h/skdrv1st.h:136,
from skge.c:369:
/usr/include/linux/timex.h:147: 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/skbuff.h:19,
from h/skdrv1st.h:136,
from skge.c:369:
/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/sched.h:81,
from /usr/include/linux/skbuff.h:19,
from h/skdrv1st.h:136,
from skge.c:369:
/usr/include/linux/timer.h:45: error: syntax error before "spinlock_t"
/usr/include/linux/timer.h:53: error: syntax error before '}' token
/usr/include/linux/timer.h:67: error: syntax error before "tvec_base_t"
/usr/include/linux/timer.h:101: error: syntax error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: error: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: error: dereferencing pointer to incomplete type
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from h/skdrv1st.h:136,
from skge.c:369:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: No such file or directory
In file included from /usr/include/linux/highmem.h:5,
from /usr/include/linux/skbuff.h:26,
from h/skdrv1st.h:136,
from skge.c:369:
 
  


Reply



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
Network Problems: DLink-G122 USB wireless adapter Superion Linux - Newbie 1 10-09-2005 06:12 PM
installing a network adapter-need a driver! thedottedline Linux - Hardware 2 01-29-2005 08:42 AM
Funny Dell Box - Adapter(R) SCSI Card 39320, driver needed chenglim Linux - Hardware 3 01-20-2005 12:38 AM
Driver help needed for ehernet adapter of IBM R51 vasundhar Linux - Enterprise 3 10-15-2004 04:15 PM
Driver needed for the BT Voyager 1010 USB Adapter gray_vegan Linux - Wireless Networking 2 02-16-2004 06:09 PM

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

All times are GMT -5. The time now is 02:43 AM.

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