hurrylei 发表于 2003-9-24 18:17:47

救命啊!

我在安装Legend-530tx rev B的驱动时出现以下错误,多次安装和换驱动都未解决。各位GG,JJ,DD,MM Help Me!!!!

# ls
linux530_321.tarMakefile
# tar xvf linux530_321.tar
Makefile
readme.txt
via-rhine.c
via-rhine.h
# make all
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6-I/usr/src/linux/include -c via-rhine.c
In file included from /usr/include/linux/fs.h:23,
               from /usr/include/linux/capability.h:17,
               from /usr/include/linux/binfmts.h:5,
               from /usr/include/linux/sched.h:9,
               from /usr/include/linux/mm.h:4,
               from via-rhine.h:25,
               from via-rhine.c:26:
/usr/include/linux/string.h:8:2: warning: #warning Using kernel header in userland!
In file included from /usr/include/linux/sched.h:14,
               from /usr/include/linux/mm.h:4,
               from via-rhine.h:25,
               from via-rhine.c:26:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
               from /usr/include/asm/system.h:7,
               from /usr/include/linux/sched.h:16,
               from /usr/include/linux/mm.h:4,
               from via-rhine.h:25,
               from via-rhine.c:26:
/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 /usr/include/linux/signal.h:4,
               from /usr/include/linux/sched.h:25,
               from /usr/include/linux/mm.h:4,
               from via-rhine.h:25,
               from via-rhine.c:26:
/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/include/linux/sched.h:81,
               from /usr/include/linux/mm.h:4,
               from via-rhine.h:25,
               from via-rhine.c:26:
/usr/include/linux/timer.h:45: parse error before "spinlock_t"
/usr/include/linux/timer.h:53: parse error before '}' token
/usr/include/linux/timer.h:67: parse error before "tvec_base_t"
/usr/include/linux/timer.h:101: parse error before "tvec_bases"
/usr/include/linux/timer.h: In function `init_timer':
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:105: dereferencing pointer to incomplete type
/usr/include/linux/timer.h:106: dereferencing pointer to incomplete type
/usr/include/linux/timer.h: In function `timer_pending':
/usr/include/linux/timer.h:121: dereferencing pointer to incomplete type
In file included from /usr/include/linux/highmem.h:5,
               from /usr/include/linux/skbuff.h:26,
               from via-rhine.h:31,
               from via-rhine.c:26:
/usr/include/asm/pgalloc.h:6:24: asm/fixmap.h: 没有那个文件或目录
In file included from /usr/include/linux/highmem.h:5,
               from /usr/include/linux/skbuff.h:26,
               from via-rhine.h:31,
               from via-rhine.c:26:
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:57: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_slow':
/usr/include/asm/pgalloc.h:59: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: (Each undeclared identifier is reported only once/usr/include/asm/pgalloc.h:59: for each function it appears in.)
/usr/include/asm/pgalloc.h:59: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:59: parse error before ')' token
/usr/include/asm/pgalloc.h:62: `USER_PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `swapper_pg_dir' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:63: `PTRS_PER_PGD' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:70: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/include/asm/pgalloc.h:80: `pgd_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:80: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:83: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/include/asm/pgalloc.h:85: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:90: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/include/asm/pgalloc.h:99: `pgd' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:103: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/include/asm/pgalloc.h:105: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:105: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:109: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:118: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/include/asm/pgalloc.h:127: `pte_t' undeclared (first use in this function)
/usr/include/asm/pgalloc.h:127: parse error before ')' token
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:130: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/include/asm/pgalloc.h:132: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: At top level:
/usr/include/asm/pgalloc.h:137: parse error before '*' token
/usr/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/include/asm/pgalloc.h:139: `pte' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_mm':
/usr/include/asm/pgalloc.h:183: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_page':
/usr/include/asm/pgalloc.h:190: dereferencing pointer to incomplete type
/usr/include/asm/pgalloc.h:190: `current' undeclared (first use in this function)
/usr/include/asm/pgalloc.h: In function `flush_tlb_range':
/usr/include/asm/pgalloc.h:197: `current' undeclared (first use in this function)
In file included from via-rhine.h:31,
               from via-rhine.c:26:
/usr/include/linux/skbuff.h: At top level:
/usr/include/linux/skbuff.h:100: parse error before "spinlock_t"
/usr/include/linux/skbuff.h:120: parse error before "atomic_t"
/usr/include/linux/skbuff.h:124: parse error before '}' token
/usr/include/linux/skbuff.h:183: parse error before "atomic_t"
/usr/include/linux/skbuff.h:215: parse error before '}' token
In file included from via-rhine.h:32,
               from via-rhine.c:26:
/usr/include/linux/delay.h:13:23: asm/delay.h: 没有那个文件或目录
In file included from via-rhine.h:34,
               from via-rhine.c:26:
/usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is
deprecated, use linux/slab.h
In file included from via-rhine.h:35,
               from via-rhine.c:26:
/usr/include/linux/interrupt.h:44:25: asm/hardirq.h: 没有那个文件或目录
/usr/include/linux/interrupt.h:45:25: asm/softirq.h: 没有那个文件或目录
In file included from via-rhine.h:35,
               from via-rhine.c:26:
/usr/include/linux/interrupt.h:77: parse error before '(' token
/usr/include/linux/interrupt.h:78: parse error before '(' token
/usr/include/linux/interrupt.h:106: parse error before "atomic_t"
/usr/include/linux/interrupt.h:108: conflicting types for `data'
/usr/include/linux/skbuff.h:189: previous declaration of `data'
/usr/include/linux/interrupt.h:109: parse error before '}' token
/usr/include/linux/interrupt.h:127: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here
(not in a function)
/usr/include/linux/interrupt.h:127: requested alignment is not a constant
/usr/include/linux/interrupt.h:154: parse error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_schedule':
/usr/include/linux/interrupt.h:158: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:162: parse error before '(' token
/usr/include/linux/interrupt.h: In function `tasklet_hi_schedule':
/usr/include/linux/interrupt.h:166: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_disable_nosync':
/usr/include/linux/interrupt.h:173: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_enable':
/usr/include/linux/interrupt.h:187: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: In function `tasklet_hi_enable':
/usr/include/linux/interrupt.h:193: dereferencing pointer to incomplete type
/usr/include/linux/interrupt.h: At top level:
/usr/include/linux/interrupt.h:224: parse error before "global_bh_lock"
/usr/include/linux/interrupt.h: In function `mark_bh':
/usr/include/linux/interrupt.h:228: invalid use of undefined type `struct tasklet_struct'
In file included from via-rhine.c:26:
via-rhine.h: At top level:
via-rhine.h:415: field `timer' has incomplete type
via-rhine.c: In function `pci_drv_register':
via-rhine.c:96: warning: implicit declaration of function `pci_find_class'
via-rhine.c:96: warning: assignment makes pointer from integer without a cast
via-rhine.c:103: warning: implicit declaration of function `pci_read_config_dword'
via-rhine.c:109: warning: implicit declaration of function `printk'
via-rhine.c:109: `KERN_DEBUG' undeclared (first use in this function)
via-rhine.c:109: parse error before string constant
via-rhine.c:110: warning: left-hand operand of comma expression has no effect
via-rhine.c:110: warning: left-hand operand of comma expression has no effect
via-rhine.c:110: parse error before ')' token
via-rhine.c:124: dereferencing pointer to incomplete type
via-rhine.c:125: warning: implicit declaration of function `pci_resource_start'
via-rhine.c:151: warning: implicit declaration of function `pci_read_config_word'
via-rhine.c:154: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:154: parse error before string constant
via-rhine.c:157: warning: implicit declaration of function `pci_write_config_word'
via-rhine.c:161: dereferencing pointer to incomplete type
via-rhine.c:163: warning: implicit declaration of function `pci_set_master'
via-rhine.c:167: warning: implicit declaration of function `pci_read_config_byte'
via-rhine.c:169: parse error before string constant
via-rhine.c:172: warning: implicit declaration of function `pci_write_config_byte'
via-rhine.c:182: union has no member named `usecount'
via-rhine.c: In function `pci_drv_unregister':
via-rhine.c:310: union has no member named `usecount'
via-rhine.c: In function `acpi_wake':
via-rhine.c:367: warning: implicit declaration of function `pci_write_config_dword'
via-rhine.c: In function `via_probe1':
via-rhine.c:415: warning: implicit declaration of function `udelay'
via-rhine.c:446: warning: implicit declaration of function `init_etherdev'
via-rhine.c:446: warning: assignment makes pointer from integer without a cast
via-rhine.c:448: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:448: parse error before string constant
via-rhine.c:453: dereferencing pointer to incomplete type
via-rhine.c:455: dereferencing pointer to incomplete type
via-rhine.c:456: dereferencing pointer to incomplete type
via-rhine.c:459: warning: implicit declaration of function `kmalloc'
via-rhine.c:459: `GFP_KERNEL' undeclared (first use in this function)
via-rhine.c:459: warning: assignment makes pointer from integer without a cast
via-rhine.c:465: dereferencing pointer to incomplete type
via-rhine.c:471: dereferencing pointer to incomplete type
via-rhine.c:472: dereferencing pointer to incomplete type
via-rhine.c:474: dereferencing pointer to incomplete type
via-rhine.c:484: dereferencing pointer to incomplete type
via-rhine.c:485: dereferencing pointer to incomplete type
via-rhine.c:503: dereferencing pointer to incomplete type
via-rhine.c:504: dereferencing pointer to incomplete type
via-rhine.c:505: dereferencing pointer to incomplete type
via-rhine.c:506: dereferencing pointer to incomplete type
via-rhine.c:507: dereferencing pointer to incomplete type
via-rhine.c:508: dereferencing pointer to incomplete type
via-rhine.c:518: parse error before string constant
via-rhine.c: In function `mdio_read':
via-rhine.c:533: dereferencing pointer to incomplete type
via-rhine.c:538: dereferencing pointer to incomplete type
via-rhine.c: In function `mdio_write':
via-rhine.c:581: dereferencing pointer to incomplete type
via-rhine.c:585: dereferencing pointer to incomplete type
via-rhine.c: In function `netdev_open':
via-rhine.c:639: dereferencing pointer to incomplete type
via-rhine.c:640: dereferencing pointer to incomplete type
via-rhine.c:653: union has no member named `usecount'
via-rhine.c:655: warning: implicit declaration of function `request_irq'
via-rhine.c:655: dereferencing pointer to incomplete type
via-rhine.c:655: `SA_SHIRQ' undeclared (first use in this function)
via-rhine.c:655: dereferencing pointer to incomplete type
via-rhine.c:657: union has no member named `usecount'
via-rhine.c:662: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:662: parse error before string constant
via-rhine.c:663: dereferencing pointer to incomplete type
via-rhine.c:663: dereferencing pointer to incomplete type
via-rhine.c:663: warning: left-hand operand of comma expression has no effect
via-rhine.c:663: warning: left-hand operand of comma expression has no effect
via-rhine.c:663: parse error before ')' token
via-rhine.c:667: warning: implicit declaration of function `virt_to_bus'
via-rhine.c:671: dereferencing pointer to incomplete type
via-rhine.c:687: dereferencing pointer to incomplete type
via-rhine.c:688: dereferencing pointer to incomplete type
via-rhine.c:691: warning: implicit declaration of function `netif_start_queue'
via-rhine.c:731: parse error before string constant
via-rhine.c:733: dereferencing pointer to incomplete type
via-rhine.c:734: warning: left-hand operand of comma expression has no effect
via-rhine.c:734: warning: left-hand operand of comma expression has no effect
via-rhine.c:734: parse error before ')' token
via-rhine.c:738: `jiffies' undeclared (first use in this function)
via-rhine.c: In function `check_duplex':
via-rhine.c:748: dereferencing pointer to incomplete type
via-rhine.c:749: dereferencing pointer to incomplete type
via-rhine.c:760: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:760: parse error before string constant
via-rhine.c:761: dereferencing pointer to incomplete type
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: warning: left-hand operand of comma expression has no effect
via-rhine.c:762: parse error before ')' token
via-rhine.c: In function `netdev_timer':
via-rhine.c:774: dereferencing pointer to incomplete type
via-rhine.c:775: dereferencing pointer to incomplete type
via-rhine.c:779: `KERN_INFO' undeclared (first use in this function)
via-rhine.c:779: parse error before string constant
via-rhine.c:783: warning: implicit declaration of function `netif_queue_stopped'via-rhine.c:785: `jiffies' undeclared (first use in this function)
via-rhine.c:785: dereferencing pointer to incomplete type
via-rhine.c:775: warning: unused variable `ioaddr'
via-rhine.c:774: confused by earlier errors, bailing out
make: *** Error 1

mozilla 发表于 2003-9-25 08:57:45

我在7.2下编译没问题
看看你有没有/usr/src/linux/include/asm这个目录

hurrylei 发表于 2003-9-25 20:47:56

有啊。但就是不行。

mozilla 发表于 2003-9-26 08:59:20

你安装了内核源码没有?就是kernel-source包。并且/usr/src/linux-2.4xxxx目录有没有链接到/usr/src/linux?
如果内核源码装了,链接做了还不行按下面的做
cd /usr/include
mv linux linux.bak
mv asm asm.bak
ln -s /usr/src/linux/include/linux linux
ln -s /usr/src/linuix/include/asm asm

hurrylei 发表于 2003-9-27 00:52:14

怎样将/usr/src/linux-2.4xxxx目录链接到/usr/src/linux呢

mozilla 发表于 2003-9-27 09:24:23

cd /usr/src
ln -s linux-2.4xxxx linux

hurrylei 发表于 2003-9-27 13:34:52

我把链接
ln -s /usr/src/linux/include/linux linux
搞成了
ln -s /usr/src/linux/include/linux linux
怎么办呢?

hurrylei 发表于 2003-9-27 14:31:29

斑竹。辛苦你了。原来Rh9.0能够找到。启动系统的时候因为显示网卡有问题,所以一直以为网卡没装上。后来侥幸试了一下居然通了。
真的辛苦你了。谢谢。
但我想知道如何在Linux中显示网卡的正常名称和型号。
链接问题也望解答。
谢谢了!!!!!!!!!

mozilla 发表于 2003-9-27 17:53:24

在/etc/modules.conf里eth0行可以看出网卡类型,应该有相应的命令能查询但我没用过
cd /usr/src
rm linux -f
ln linux-xxxx linux

hurrylei 发表于 2003-9-28 23:04:17

多谢。
页: [1]
查看完整版本: 救命啊!