ePyron Felix Deierlein
2004-Apr-30 07:19 UTC
[Asterisk-Users] Can not compile zaptel at SuSE 9.0
Hello all, I am not able to compile zaptel... I am using kernel 2.4.21-202 and it's source is linked to /usr/src/linux. I already have to test installations running at SuSE 9.0 (but here I have an SMP system with to processors). Could you give me a hint? /usr/src/linux/include/linux/highmem.h:93: error: `clear_user_page' undeclared (first use in this function) /usr/src/linux/include/linux/highmem.h:93: error: (Each undeclared identifier is reported only once /usr/src/linux/include/linux/highmem.h:93: error: for each function it appears in.) /usr/src/linux/include/linux/highmem.h:132:41: macro "copy_user_page" requires 4 arguments, but only 3 given /usr/src/linux/include/linux/highmem.h: In function `copy_user_highpage': /usr/src/linux/include/linux/highmem.h:132: 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/include/linux/pci.h:669, from zaptel.c:46: /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/include/linux/pci.h:669, from zaptel.c:46: /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/include/linux/pci.h:669, from zaptel.c:46: /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 zaptel.c:48: /usr/src/linux/include/linux/version.h:6:2: #error "The kernel sources in /usr/src/linux are not yet configured." /usr/src/linux/include/linux/version.h:7:2: #error "Please run 'make cloneconfig && make dep' in /usr/src/linux/" /usr/src/linux/include/linux/version.h:8:2: #error "to get a kernel that is configured like the running kernel." /usr/src/linux/include/linux/version.h:9:2: #error "Alternatively, you can copy one of the config files" /usr/src/linux/include/linux/version.h:10:2: #error "arch/$ARCH/defconfig.* to .config, and run" /usr/src/linux/include/linux/version.h:11:2: #error "'make oldconfig && make dep' to configure the kernel" /usr/src/linux/include/linux/version.h:12:2: #error "for that configuration." In file included from zaptel.h:36, from zaptel.c:82: /usr/src/linux/include/linux/version.h:6:2: #error "The kernel sources in /usr/src/linux are not yet configured." /usr/src/linux/include/linux/version.h:7:2: #error "Please run 'make cloneconfig && make dep' in /usr/src/linux/" /usr/src/linux/include/linux/version.h:8:2: #error "to get a kernel that is configured like the running kernel." /usr/src/linux/include/linux/version.h:9:2: #error "Alternatively, you can copy one of the config files" /usr/src/linux/include/linux/version.h:10:2: #error "arch/$ARCH/defconfig.* to .config, and run" /usr/src/linux/include/linux/version.h:11:2: #error "'make oldconfig && make dep' to configure the kernel" /usr/src/linux/include/linux/version.h:12:2: #error "for that configuration." In file included from /usr/src/linux/include/linux/poll.h:11, from zaptel.h:853, from zaptel.c:82: /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_to_user': /usr/include/asm/uaccess.h:401: error: `n' undeclared (first use in this function) /usr/include/asm/uaccess.h:406: error: `to' undeclared (first use in this function) /usr/include/asm/uaccess.h:406: error: `from' undeclared (first use in this function) /usr/include/asm/uaccess.h: At top level: /usr/include/asm/uaccess.h:437: 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 In file included from zaptel.c:82: zaptel.h:1408:41: missing binary operator before token "(" zaptel.c:110: error: parse error before "config_must_be_included_before_module" zaptel.c:110: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:110: warning: data definition has no type or storage class zaptel.c:111: error: parse error before "config_must_be_included_before_module" zaptel.c:111: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:111: warning: data definition has no type or storage class zaptel.c:112: error: parse error before "config_must_be_included_before_module" zaptel.c:112: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:112: warning: data definition has no type or storage class zaptel.c:113: error: parse error before "config_must_be_included_before_module" zaptel.c:113: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:113: warning: data definition has no type or storage class zaptel.c:114: error: parse error before "config_must_be_included_before_module" zaptel.c:114: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:114: warning: data definition has no type or storage class zaptel.c:115: error: parse error before "config_must_be_included_before_module" zaptel.c:115: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:115: warning: data definition has no type or storage class zaptel.c:120: error: parse error before "config_must_be_included_before_module" zaptel.c:120: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:120: warning: data definition has no type or storage class zaptel.c:121: error: parse error before "config_must_be_included_before_module" zaptel.c:121: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:121: warning: data definition has no type or storage class zaptel.c:123: error: parse error before "config_must_be_included_before_module" zaptel.c:123: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:123: warning: data definition has no type or storage class zaptel.c:124: error: parse error before "config_must_be_included_before_module" zaptel.c:124: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:124: warning: data definition has no type or storage class zaptel.c:125: error: parse error before "config_must_be_included_before_module" zaptel.c:125: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:125: warning: data definition has no type or storage class zaptel.c:126: error: parse error before "config_must_be_included_before_module" zaptel.c:126: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:126: warning: data definition has no type or storage class zaptel.c:127: error: parse error before "config_must_be_included_before_module" zaptel.c:127: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:127: warning: data definition has no type or storage class zaptel.c:128: error: parse error before "config_must_be_included_before_module" zaptel.c:128: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:128: warning: data definition has no type or storage class zaptel.c:129: error: parse error before "config_must_be_included_before_module" zaptel.c:129: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:129: warning: data definition has no type or storage class zaptel.c:130: error: parse error before "config_must_be_included_before_module" zaptel.c:130: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:130: warning: data definition has no type or storage class zaptel.c:131: error: parse error before "config_must_be_included_before_module" zaptel.c:131: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:131: warning: data definition has no type or storage class zaptel.c:132: error: parse error before "config_must_be_included_before_module" zaptel.c:132: warning: type defaults to `int' in declaration of `config_must_be_included_before_module' zaptel.c:132: warning: data definition has no type or storage class zaptel.c: In function `zt_qevent_lock': zaptel.c:648: error: parse error before "unsigned" zaptel.c: In function `zt_reallocbufs': zaptel.c:744: error: parse error before "unsigned" zaptel.c: In function `close_channel': zaptel.c:934: error: parse error before "unsigned" zaptel.c: In function `zt_chan_reg': zaptel.c:1141: error: parse error before "unsigned" zaptel.c: In function `zt_chan_unreg': zaptel.c:1515: error: parse error before "unsigned" zaptel.c: In function `zt_chan_read': zaptel.c:1534: error: parse error before "unsigned" zaptel.c:1540: error: parse error before "unsigned" zaptel.c:1593: error: parse error before "unsigned" zaptel.c: In function `zt_chan_write': zaptel.c:1618: error: parse error before "unsigned" zaptel.c:1622: error: parse error before "unsigned" zaptel.c:1688: error: parse error before "unsigned" zaptel.c: In function `initialize_channel': zaptel.c:2012: error: parse error before "unsigned" zaptel.c: In function `zt_timing_open': zaptel.c:2038: error: parse error before "unsigned" zaptel.c: In function `zt_timer_release': zaptel.c:2063: error: parse error before "unsigned" zaptel.c: In function `zt_open': zaptel.c:2196: error: parse error before "unsigned" zaptel.c: In function `zt_release': zaptel.c:2495: error: parse error before "unsigned" zaptel.c: In function `zt_timer_ioctl': zaptel.c:2555: error: parse error before "unsigned" zaptel.c:2563: error: parse error before "unsigned" zaptel.c:2573: error: parse error before "unsigned" zaptel.c:2580: error: parse error before "unsigned" zaptel.c:2585: error: parse error before "unsigned" zaptel.c: In function `zt_common_ioctl': zaptel.c:2786: error: parse error before "unsigned" zaptel.c: In function `zt_ctl_ioctl': zaptel.c:2907: error: parse error before "unsigned" zaptel.c:2954: error: parse error before "unsigned" zaptel.c:3058: error: parse error before "unsigned" zaptel.c:3071: error: parse error before "unsigned" zaptel.c:3098: error: parse error before "unsigned" zaptel.c:3162: error: parse error before "unsigned" zaptel.c:3170: error: parse error before "unsigned" zaptel.c:3180: error: parse error before "unsigned" zaptel.c: In function `zt_chanandpseudo_ioctl': zaptel.c:3215: error: parse error before "unsigned" zaptel.c:3254: error: parse error before "unsigned" zaptel.c:3333: error: parse error before "unsigned" zaptel.c:3341: error: parse error before "unsigned" zaptel.c:3383: error: parse error before "unsigned" zaptel.c:3410: error: parse error before "unsigned" zaptel.c:3418: error: parse error before "unsigned" zaptel.c:3430: error: parse error before "unsigned" zaptel.c:3438: error: parse error before "unsigned" zaptel.c:3445: error: parse error before "unsigned" zaptel.c:3487: error: parse error before "unsigned" zaptel.c:3488: error: parse error before "unsigned" zaptel.c:3510: error: parse error before "unsigned" zaptel.c:3511: error: parse error before "unsigned" zaptel.c:3530: error: parse error before "unsigned" zaptel.c:3531: error: parse error before "unsigned" zaptel.c:3581: error: parse error before "unsigned" zaptel.c:3582: error: parse error before "unsigned" zaptel.c: In function `zt_chan_ioctl': zaptel.c:3716: error: parse error before "unsigned" zaptel.c:3745: error: parse error before "unsigned" zaptel.c:3863: error: parse error before "unsigned" zaptel.c:3874: error: parse error before "unsigned" zaptel.c:3915: error: parse error before "unsigned" zaptel.c:3921: error: parse error before "unsigned" zaptel.c:3925: error: parse error before "unsigned" zaptel.c:3931: error: parse error before "unsigned" zaptel.c:3941: error: parse error before "unsigned" zaptel.c:3953: error: parse error before "unsigned" zaptel.c:3957: error: parse error before "unsigned" zaptel.c:3966: error: parse error before "unsigned" zaptel.c:3970: error: parse error before "unsigned" zaptel.c:3979: error: parse error before "unsigned" zaptel.c: In function `zt_hooksig': zaptel.c:4916: error: parse error before "unsigned" zaptel.c: In function `zt_rbsbits': zaptel.c:4970: error: parse error before "unsigned" zaptel.c: In function `zt_ec_chunk': zaptel.c:5021: error: parse error before "unsigned" zaptel.c: In function `process_timers': zaptel.c:5540: error: parse error before "unsigned" zaptel.c: In function `zt_timer_poll': zaptel.c:5553: error: parse error before "unsigned" zaptel.c: In function `zt_chan_poll': zaptel.c:5585: error: parse error before "unsigned" zaptel.c: In function `zt_transmit': zaptel.c:5768: error: parse error before "unsigned" zaptel.c: In function `zt_receive': zaptel.c:5860: error: parse error before "unsigned" zaptel.c:5882: error: parse error before "unsigned" zaptel.c:5892: error: parse error before "unsigned" zaptel.c:5918: error: parse error before "unsigned" zaptel.c:5929: error: parse error before "unsigned" zaptel.c:5932: error: parse error before "unsigned" make: *** [zaptel.o] Error 1 stern01:/usr/src/zaptel # Felix Deierlein
> -----Original Message----- > Hello all, > > I am not able to compile zaptel... > I am using kernel 2.4.21-202 and it's source is linked to/usr/src/linux. I> already have to test installations running at SuSE 9.0 (but here Ihave an> SMP system with to processors). > > Could you give me a hint? ><snip> Have you tried the following, which is suggested in the output? 'make cloneconfig && make dep' in /usr/src/linux/ -nathan