hsT
Group: Members
Posts: 2
Joined: April 2005 |
|
Posted: Aug. 31 2007,19:06 |
|
Hi, I installed gcc1, the kernel-source and headers from the repo, downloaded the drivers for my rt2500 based pcmcia wireless-card from the ralink-website and tried to compile it.
when I did make config (as descriped on the german gentoo-wiki), it said make: cc: command not found.. so i entered /usr/bin and typed ln -s gcc cc. then, I tried make config again and got this: /usr/src/linux-2.4.26/Makefile: no such file or directory. So I looked into the src-directory and believed that the soruce would be kinda incomplete.. ok, I downloaded the 2.4.26-kernelsource from kernel.org, put it into the src directory and tried make config again. okay, this workes now, but when i try to compile it (make all), it won't work
now I really got no clue what else I could try.. anyone got an idea? or could someone compile that driver for me? :/
here's the output of the "make all"-command:
Code Sample | cc -D -I/usr/src/linux-2.4.26/include -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.26/include/linux/modversions.h -Wall -Wstrict-prototypes -Wno-trigraphs -c -o rtmp_main.o rtmp_main.c <command line>:138471537:59576: /usr/src/linux-2.4.26/include/linux/modversions.h: No such file or directory In file included from /usr/src/linux-2.4.26/include/linux/kernel.h:13, from /usr/include/asm/system.h:5, from /usr/src/linux-2.4.26/include/linux/spinlock.h:6, from /usr/src/linux-2.4.26/include/linux/module.h:11, from rt_config.h:63, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/types.h:21: error: parse error before "dev_t" In file included from /usr/include/asm/math_emu.h:4, from /usr/include/asm/processor.h:11, from /usr/src/linux-2.4.26/include/linux/prefetch.h:13, from /usr/src/linux-2.4.26/include/linux/list.h:6, from /usr/src/linux-2.4.26/include/linux/module.h:12, from rt_config.h:63, from rtmp_main.c:38: /usr/include/asm/sigcontext.h:79: error: parse error before '*' token /usr/include/asm/sigcontext.h:82: error: parse error before '}' token In file included from /usr/include/asm/processor.h:11, from /usr/src/linux-2.4.26/include/linux/prefetch.h:13, from /usr/src/linux-2.4.26/include/linux/list.h:6, from /usr/src/linux-2.4.26/include/linux/module.h:12, from rt_config.h:63, from rtmp_main.c:38: /usr/include/asm/math_emu.h:6: error: parse error before '*' token /usr/include/asm/math_emu.h:7: error: parse error before '*' token In file included from /usr/src/linux-2.4.26/include/linux/prefetch.h:13, from /usr/src/linux-2.4.26/include/linux/list.h:6, from /usr/src/linux-2.4.26/include/linux/module.h:12, from rt_config.h:63, from rtmp_main.c:38: /usr/include/asm/processor.h:421: error: parse error before '*' token /usr/include/asm/processor.h:427: error: parse error before '}' token In file included from /usr/src/linux-2.4.26/include/linux/fs.h:19, from /usr/src/linux-2.4.26/include/linux/capability.h:17, from /usr/src/linux-2.4.26/include/linux/binfmts.h:5, from /usr/src/linux-2.4.26/include/linux/sched.h:9, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/dcache.h: In function `d_drop': /usr/src/linux-2.4.26/include/linux/dcache.h:149: warning: implicit declaration of function `spin_lock' /usr/src/linux-2.4.26/include/linux/dcache.h:152: warning: implicit declaration of function `spin_unlock' In file included from /usr/src/linux-2.4.26/include/linux/capability.h:17, from /usr/src/linux-2.4.26/include/linux/binfmts.h:5, from /usr/src/linux-2.4.26/include/linux/sched.h:9, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/fs.h: At top level: /usr/src/linux-2.4.26/include/linux/fs.h:424: error: parse error before "dev_t" /usr/src/linux-2.4.26/include/linux/fs.h:424: warning: no semicolon at end of struct or union /usr/src/linux-2.4.26/include/linux/fs.h:427: error: parse error before '}' token /usr/src/linux-2.4.26/include/linux/fs.h:433: error: parse error before "dev_t" /usr/src/linux-2.4.26/include/linux/fs.h:433: warning: no semicolon at end of struct or union /usr/src/linux-2.4.26/include/linux/fs.h:438: error: parse error before '}' token In file included from /usr/src/linux-2.4.26/include/linux/reiserfs_fs_sb.h:8, from /usr/src/linux-2.4.26/include/linux/fs.h:729, from /usr/src/linux-2.4.26/include/linux/capability.h:17, from /usr/src/linux-2.4.26/include/linux/binfmts.h:5, from /usr/src/linux-2.4.26/include/linux/sched.h:9, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/tqueue.h: In function `queue_task': /usr/src/linux-2.4.26/include/linux/tqueue.h:107: warning: implicit declaration of function `typecheck' /usr/src/linux-2.4.26/include/linux/tqueue.h:107: error: parse error before "unsigned" In file included from /usr/src/linux-2.4.26/include/linux/capability.h:17, from /usr/src/linux-2.4.26/include/linux/binfmts.h:5, from /usr/src/linux-2.4.26/include/linux/sched.h:9, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/fs.h: At top level: /usr/src/linux-2.4.26/include/linux/fs.h:818: error: parse error before "dev_t" /usr/src/linux-2.4.26/include/linux/fs.h:818: warning: function declaration isn't a prototype /usr/src/linux-2.4.26/include/linux/fs.h:1109: warning: parameter names (without types) in function declaration /usr/src/linux-2.4.26/include/linux/fs.h:1113: warning: parameter names (without types) in function declaration In file included from /usr/include/asm/smp.h:18, from /usr/src/linux-2.4.26/include/linux/smp.h:14, from /usr/src/linux-2.4.26/include/linux/sched.h:23, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory In file included from /usr/include/asm/smp.h:18, from /usr/src/linux-2.4.26/include/linux/smp.h:14, from /usr/src/linux-2.4.26/include/linux/sched.h:23, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function) /usr/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type' /usr/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type' /usr/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function) /usr/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus' /usr/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus' /usr/include/asm/mpspec.h:54: error: `MAX_APICS' undeclared here (not in a function) In file included from /usr/include/asm/smp.h:20, from /usr/src/linux-2.4.26/include/linux/smp.h:14, from /usr/src/linux-2.4.26/include/linux/sched.h:23, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/include/asm/io_apic.h:120: error: `MAX_IRQ_SOURCES' undeclared here (not in a function) /usr/include/asm/io_apic.h:120: error: conflicting types for `mp_irqs' /usr/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs' In file included from /usr/src/linux-2.4.26/include/linux/smp.h:14, from /usr/src/linux-2.4.26/include/linux/sched.h:23, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/include/asm/smp.h:73:26: mach_apicdef.h: No such file or directory In file included from /usr/include/asm/siginfo.h:4, from /usr/src/linux-2.4.26/include/linux/signal.h:5, from /usr/src/linux-2.4.26/include/linux/sched.h:26, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/include/asm-generic/siginfo.h:51: error: parse error before "timer_t" /usr/include/asm-generic/siginfo.h:87: error: parse error before '}' token /usr/include/asm-generic/siginfo.h:88: error: parse error before '}' token /usr/include/asm-generic/siginfo.h: In function `copy_siginfo': /usr/include/asm-generic/siginfo.h:278: error: structure has no member named `_sifields' /usr/include/asm-generic/siginfo.h:278: error: structure has no member named `_sifields' /usr/include/asm-generic/siginfo.h:278: error: structure has no member named `_sifields' /usr/include/asm-generic/siginfo.h: At top level: /usr/include/asm-generic/siginfo.h:283: error: parse error before '*' token In file included from /usr/src/linux-2.4.26/include/linux/sched.h:26, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/signal.h:14: error: parse error before "siginfo_t" /usr/src/linux-2.4.26/include/linux/signal.h:14: warning: no semicolon at end of struct or union In file included from /usr/src/linux-2.4.26/include/linux/sched.h:28, from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/fs_struct.h: In function `set_fs_root': /usr/src/linux-2.4.26/include/linux/fs_struct.h:34: warning: implicit declaration of function `write_lock' /usr/src/linux-2.4.26/include/linux/fs_struct.h:39: warning: implicit declaration of function `write_unlock' In file included from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/sched.h: At top level: /usr/src/linux-2.4.26/include/linux/sched.h:390: error: field `thread' has incomplete type In file included from /usr/src/linux-2.4.26/include/linux/mm.h:4, from /usr/src/linux-2.4.26/include/linux/slab.h:14, from rt_config.h:70, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/sched.h:624: error: parse error before "siginfo_t" /usr/src/linux-2.4.26/include/linux/sched.h:624: warning: function declaration isn't a prototype /usr/src/linux-2.4.26/include/linux/sched.h:807: error: conflicting types for `kernel_thread' /usr/include/asm/processor.h:492: error: previous declaration of `kernel_thread' /usr/src/linux-2.4.26/include/linux/sched.h: In function `d_path': /usr/src/linux-2.4.26/include/linux/sched.h:937: warning: implicit declaration of function `read_lock' /usr/src/linux-2.4.26/include/linux/sched.h:940: warning: implicit declaration of function `read_unlock' In file included from /usr/src/linux-2.4.26/include/linux/irq.h:19, from /usr/include/asm/hardirq.h:6, from /usr/src/linux-2.4.26/include/linux/interrupt.h:52, from rt_config.h:71, from rtmp_main.c:38: /usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory In file included from /usr/include/asm/hardirq.h:6, from /usr/src/linux-2.4.26/include/linux/interrupt.h:52, from rt_config.h:71, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/irq.h: At top level: /usr/src/linux-2.4.26/include/linux/irq.h:67: error: `NR_IRQS' undeclared here (not in a function) In file included from /usr/src/linux-2.4.26/include/linux/irq.h:69, from /usr/include/asm/hardirq.h:6, from /usr/src/linux-2.4.26/include/linux/interrupt.h:52, from rt_config.h:71, from rtmp_main.c:38: /usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a function) /usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function) In file included from rt_config.h:71, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/interrupt.h:53:25: asm/softirq.h: No such file or directory In file included from /usr/src/linux-2.4.26/include/linux/vmalloc.h:8, from /usr/include/asm/io.h:46, from /usr/include/asm/pci.h:39, from /usr/src/linux-2.4.26/include/linux/pci.h:680, from rt_config.h:72, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/highmem.h: In function `bh_kmap_irq': /usr/src/linux-2.4.26/include/linux/highmem.h:48: error: `KM_BH_IRQ' undeclared (first use in this function) /usr/src/linux-2.4.26/include/linux/highmem.h:48: error: (Each undeclared identifier is reported only once /usr/src/linux-2.4.26/include/linux/highmem.h:48: error: for each function it appears in.) /usr/src/linux-2.4.26/include/linux/highmem.h: In function `bh_kunmap_irq': /usr/src/linux-2.4.26/include/linux/highmem.h:60: error: `KM_BH_IRQ' undeclared (first use in this function) In file included from /usr/src/linux-2.4.26/include/linux/vmalloc.h:8, from /usr/include/asm/io.h:46, from /usr/include/asm/pci.h:39, from /usr/src/linux-2.4.26/include/linux/pci.h:680, from rt_config.h:72, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/highmem.h:87:36: macro "clear_user_page" requires 3 arguments, but only 2 given /usr/src/linux-2.4.26/include/linux/highmem.h: In function `clear_user_highpage': /usr/src/linux-2.4.26/include/linux/highmem.h:87: error: `clear_user_page' undeclared (first use in this function) /usr/src/linux-2.4.26/include/linux/highmem.h:119:41: macro "copy_user_page" requires 4 arguments, but only 3 given /usr/src/linux-2.4.26/include/linux/highmem.h: In function `copy_user_highpage': /usr/src/linux-2.4.26/include/linux/highmem.h:119: error: `copy_user_page' undeclared (first use in this function) In file included from /usr/include/linux/dma-mapping.h:13, from /usr/include/asm-generic/pci-dma-compat.h:7, from /usr/include/asm/pci.h:92, from /usr/src/linux-2.4.26/include/linux/pci.h:680, from rt_config.h:72, from rtmp_main.c:38: /usr/include/asm/dma-mapping.h: In function `dma_set_mask': /usr/include/asm/dma-mapping.h:112: error: dereferencing pointer to incomplete type /usr/include/asm/dma-mapping.h:115: error: dereferencing pointer to incomplete type In file included from /usr/include/asm/pci.h:92, from /usr/src/linux-2.4.26/include/linux/pci.h:680, from rt_config.h:72, from rtmp_main.c:38: /usr/include/asm-generic/pci-dma-compat.h: In function `pci_dma_supported': /usr/include/asm-generic/pci-dma-compat.h:15: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_alloc_consistent': /usr/include/asm-generic/pci-dma-compat.h:22: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_free_consistent': /usr/include/asm-generic/pci-dma-compat.h:29: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_map_single': /usr/include/asm-generic/pci-dma-compat.h:35: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_unmap_single': /usr/include/asm-generic/pci-dma-compat.h:42: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_map_page': /usr/include/asm-generic/pci-dma-compat.h:49: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_unmap_page': /usr/include/asm-generic/pci-dma-compat.h:56: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_map_sg': /usr/include/asm-generic/pci-dma-compat.h:63: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_unmap_sg': /usr/include/asm-generic/pci-dma-compat.h:70: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_dma_sync_single': /usr/include/asm-generic/pci-dma-compat.h:77: error: structure has no member named `dev' /usr/include/asm-generic/pci-dma-compat.h: In function `pci_dma_sync_sg': /usr/include/asm-generic/pci-dma-compat.h:84: error: structure has no member named `dev' In file included from /usr/include/asm/pci.h:95, from /usr/src/linux-2.4.26/include/linux/pci.h:680, from rt_config.h:72, from rtmp_main.c:38: /usr/include/asm-generic/pci.h: In function `pcibios_resource_to_bus': /usr/include/asm-generic/pci.h:21: error: dereferencing pointer to incomplete type /usr/include/asm-generic/pci.h:22: error: dereferencing pointer to incomplete type In file included from /usr/src/linux-2.4.26/include/linux/netdevice.h:153, from rt_config.h:73, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_queue_head': /usr/src/linux-2.4.26/include/linux/skbuff.h:503: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_queue_tail': /usr/src/linux-2.4.26/include/linux/skbuff.h:550: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_dequeue': /usr/src/linux-2.4.26/include/linux/skbuff.h:598: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_insert': /usr/src/linux-2.4.26/include/linux/skbuff.h:634: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_append': /usr/src/linux-2.4.26/include/linux/skbuff.h:663: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_unlink': /usr/src/linux-2.4.26/include/linux/skbuff.h:708: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `skb_dequeue_tail': /usr/src/linux-2.4.26/include/linux/skbuff.h:747: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `kmap_skb_frag': /usr/src/linux-2.4.26/include/linux/skbuff.h:1118: warning: implicit declaration of function `preempt_count' /usr/src/linux-2.4.26/include/linux/skbuff.h:1121: warning: implicit declaration of function `local_bh_disable' /usr/src/linux-2.4.26/include/linux/skbuff.h: In function `kunmap_skb_frag': /usr/src/linux-2.4.26/include/linux/skbuff.h:1130: warning: implicit declaration of function `local_bh_enable' In file included from rt_config.h:73, from rtmp_main.c:38: /usr/src/linux-2.4.26/include/linux/netdevice.h: In function `netif_rx_schedule': /usr/src/linux-2.4.26/include/linux/netdevice.h:760: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/netdevice.h: In function `netif_rx_reschedule': /usr/src/linux-2.4.26/include/linux/netdevice.h:785: error: parse error before "unsigned" /usr/src/linux-2.4.26/include/linux/netdevice.h: In function `netif_rx_complete': /usr/src/linux-2.4.26/include/linux/netdevice.h:805: error: parse error before "unsigned" In file included from rt_config.h:92, from rtmp_main.c:38: /usr/include/asm/uaccess.h: At top level: /usr/include/asm/uaccess.h:102: error: parse error before '*' token /usr/include/asm/uaccess.h: In function `verify_area': /usr/include/asm/uaccess.h:104: error: `addr' undeclared (first use in this function) /usr/include/asm/uaccess.h:104: error: `size' undeclared (first use in this function) /usr/include/asm/uaccess.h: At top level: /usr/include/asm/uaccess.h:374: error: parse error before '*' token /usr/include/asm/uaccess.h:375: error: parse error before '*' token /usr/include/asm/uaccess.h:399: error: parse error before '*' token /usr/include/asm/uaccess.h: In function `copy_from_user': /usr/include/asm/uaccess.h:439: error: `n' undeclared (first use in this function) /usr/include/asm/uaccess.h:444: error: `to' undeclared (first use in this function) /usr/include/asm/uaccess.h:444: error: `from' undeclared (first use in this function) /usr/include/asm/uaccess.h: At top level: /usr/include/asm/uaccess.h:471: error: parse error before '*' token /usr/include/asm/uaccess.h: In function `copy_to_user': /usr/include/asm/uaccess.h:474: error: `to' undeclared (first use in this function) /usr/include/asm/uaccess.h:474: error: `n' undeclared (first use in this function) /usr/include/asm/uaccess.h:475: error: `from' undeclared (first use in this function) /usr/include/asm/uaccess.h: At top level: /usr/include/asm/uaccess.h:496: error: parse error before '*' token /usr/include/asm/uaccess.h: In function `copy_from_user': /usr/include/asm/uaccess.h:499: error: `from' undeclared (first use in this function) /usr/include/asm/uaccess.h:499: error: `n' undeclared (first use in this function) /usr/include/asm/uaccess.h:500: error: `to' undeclared (first use in this function) /usr/include/asm/uaccess.h: At top level: /usr/include/asm/uaccess.h:506: error: parse error before '*' token /usr/include/asm/uaccess.h:507: error: parse error before '*' token /usr/include/asm/uaccess.h:525: error: parse error before '*' token /usr/include/asm/uaccess.h:526: error: parse error before '*' token /usr/include/asm/uaccess.h:527: error: parse error before '*' token make: *** [rtmp_main.o] Error 1
|
|