[Asterisk-Users] Problem getting zaprtc installed on a mandrake9.2

Thomas Hupfeldt condor-9 at mail.dk
Tue Oct 26 11:29:33 MST 2004


Kristian Kielhofner wrote:
>
> You want to make sure that /usr/src/linux points to
> /usr/src/linux-2.4.22-37mdk.  Do this as root:
>
> ln -s /usr/src/linux-2.4.22-37mdk /usr/src/linux

Done

> On Mandrake standard kernels, I don't think that rtc is a module by
> default.  Do this after running the above command:
>
> grep -i rtc /usr/src/linux/configs/*

Does'nt work.. There is not a directory called configs..

> and if CONFIG_RTC=y, then you need to recompile your kernel so that
> CONFIG_RTC=m.
>
> Do this by doing uname -r and seeing which kernel you have.  Copy that
> config from /usr/src/linux/configs to /usr/src/linux/.config  Then:

the .config file was placed in the /linux/ folder..

> 1) cd /usr/src/linux
done
> 2) vi .config (change CONFIG_RTC=y to CONFIG_RTC=m)
I cant find this line.. I checked all 2000 lines, but i could'nt find it. So
i wrote it and saved the file.

> 3) Change the Makefile so that EXTRAVERSION (line 4) reflects your new
> version
Done

> 4) make oldconfig && make oldconfig && make dep && make install
done.. This takes several minutes

> 5) make sure that /boot/grub/grub.conf shows your new kernel
grub.conf does not exist..

> 6) reboot
Done
> 7) if everything morks, make the new kernel the default by updating
> /boot/grub/grub.conf
every things works.. i think.. but I cant update the grub.conf, because it
didnt exist.
> 8) Try to rebuild zaprtc.

:o( Still doesnt work..

Best Regards
Thomas H.

Here are what happens (some of the text):

                 from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/asm/pgalloc.h:78:20: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:79:17: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h: In function `get_pgd_fast':
/usr/src/linux/include/asm/pgalloc.h:79: error: invalid lvalue in assignment
/usr/src/linux/include/asm/pgalloc.h:81:17: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:81: error: invalid lvalue in decrement
/usr/src/linux/include/asm/pgalloc.h:89:49: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:90:9: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h: In function `free_pgd_fast':
/usr/src/linux/include/asm/pgalloc.h:90: error: invalid lvalue in assignment
/usr/src/linux/include/asm/pgalloc.h:91:9: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:91: error: invalid lvalue in increment
/usr/src/linux/include/asm/pgalloc.h:103:37: invalid suffix "ccb8" on
integer constant
/usr/src/linux/include/asm/pgalloc.h: In function `free_pgd_slow':
/usr/src/linux/include/asm/pgalloc.h:103: error: called object is not a
function
/usr/src/linux/include/asm/pgalloc.h: In function `pte_alloc_one':
/usr/src/linux/include/asm/pgalloc.h:113: error: called object is not a
function
/usr/src/linux/include/asm/pgalloc.h:117:25: invalid suffix "d59d01" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:117: error: called object is not a
function
/usr/src/linux/include/asm/pgalloc.h:127:37: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:128:17: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h: In function `pte_alloc_one_fast':
/usr/src/linux/include/asm/pgalloc.h:128: error: invalid lvalue in
assignment
/usr/src/linux/include/asm/pgalloc.h:130:17: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:130: error: invalid lvalue in decrement
/usr/src/linux/include/asm/pgalloc.h:137:49: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:138:9: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h: In function `pte_free_fast':
/usr/src/linux/include/asm/pgalloc.h:138: error: invalid lvalue in
assignment
/usr/src/linux/include/asm/pgalloc.h:139:9: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/asm/pgalloc.h:139: error: invalid lvalue in increment
/usr/src/linux/include/asm/pgalloc.h:144:37: invalid suffix "ccb8" on
integer constant
/usr/src/linux/include/asm/pgalloc.h: In function `pte_free_slow':
/usr/src/linux/include/asm/pgalloc.h:144: error: called object is not a
function
In file included from /usr/src/linux/include/linux/vmalloc.h:8,
                 from /usr/src/linux/include/asm/io.h:47,
                 from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/linux/highmem.h:105:33: invalid suffix "b0fd3c5" on
integer constant
In file included from /usr/src/linux/include/linux/vmalloc.h:8,
                 from /usr/src/linux/include/asm/io.h:47,
                 from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/linux/highmem.h: In function
`memclear_highpage_flush':
/usr/src/linux/include/linux/highmem.h:105: error: called object is not a
function
In file included from /usr/src/linux/include/asm/io.h:47,
                 from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/linux/vmalloc.h:23:13: invalid suffix "fd1d81c" on
integer constant
In file included from /usr/src/linux/include/asm/io.h:47,
                 from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/linux/vmalloc.h: At top level:
/usr/src/linux/include/linux/vmalloc.h:23: error: syntax error before
numeric constant
/usr/src/linux/include/linux/vmalloc.h:23: error: `vfree_R_ver_str' declared
as function returning a function
/usr/src/linux/include/linux/vmalloc.h:27:15: invalid suffix "c5b" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:27: error: syntax error before
numeric constant
/usr/src/linux/include/linux/vmalloc.h:27: error: `__vmalloc_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/vmalloc.h:39:16: invalid suffix "c5b" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:39:60: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc':
/usr/src/linux/include/linux/vmalloc.h:39: error: incompatible type for
argument 2 of `constant_test_bit'
/usr/src/linux/include/linux/vmalloc.h:39:60: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:39: error: incompatible type for
argument 2 of `variable_test_bit'
/usr/src/linux/include/linux/vmalloc.h:39: error: called object is not a
function
/usr/src/linux/include/linux/vmalloc.h:48:16: invalid suffix "c5b" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:48:52: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc_dma':
/usr/src/linux/include/linux/vmalloc.h:48: error: incompatible type for
argument 2 of `constant_test_bit'
/usr/src/linux/include/linux/vmalloc.h:48:52: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:48: error: incompatible type for
argument 2 of `variable_test_bit'
/usr/src/linux/include/linux/vmalloc.h:48: error: called object is not a
function
/usr/src/linux/include/linux/vmalloc.h:57:16: invalid suffix "c5b" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:57:44: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/linux/vmalloc.h: In function `vmalloc_32':
/usr/src/linux/include/linux/vmalloc.h:57: error: incompatible type for
argument 2 of `constant_test_bit'
/usr/src/linux/include/linux/vmalloc.h:57:44: invalid suffix "a8db2ac" on
integer constant
/usr/src/linux/include/linux/vmalloc.h:57: error: incompatible type for
argument 2 of `variable_test_bit'
/usr/src/linux/include/linux/vmalloc.h:57: error: called object is not a
function
In file included from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/asm/io.h:108:15: exponent has no digits
In file included from /usr/src/linux/include/linux/mc146818rtc.h:14,
                 from zaprtc.c:66:
/usr/src/linux/include/asm/io.h: At top level:
/usr/src/linux/include/asm/io.h:108: error: syntax error before numeric
constant
/usr/src/linux/include/asm/io.h:108: error: `__ioremap_R_ver_str' declared
as function returning a function
/usr/src/linux/include/asm/io.h:124:16: exponent has no digits
/usr/src/linux/include/asm/io.h: In function `ioremap':
/usr/src/linux/include/asm/io.h:124: error: called object is not a function
/usr/src/linux/include/asm/io.h:149:16: exponent has no digits
/usr/src/linux/include/asm/io.h: In function `ioremap_nocache':
/usr/src/linux/include/asm/io.h:149: error: called object is not a function
/usr/src/linux/include/asm/io.h:152:13: invalid suffix "fb196d4" on integer
constant
/usr/src/linux/include/asm/io.h: At top level:
/usr/src/linux/include/asm/io.h:152: error: syntax error before numeric
constant
/usr/src/linux/include/asm/io.h:152: error: `iounmap_R_ver_str' declared as
function returning a function
In file included from /usr/src/linux/include/linux/mc146818rtc.h:15,
                 from zaprtc.c:66:
/usr/src/linux/include/linux/rtc.h:102: error: `rtc_register_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/rtc.h:102: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/linux/rtc.h:103: error: `rtc_unregister_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/rtc.h:103: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/linux/rtc.h:104: error: `rtc_control_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/rtc.h:104: warning: parameter names (without
types) in function declaration
In file included from /usr/src/linux/include/linux/poll.h:11,
                 from zaprtc.c:68:
/usr/src/linux/include/asm/uaccess.h:35:12: invalid suffix "afbeb" on
integer constant
In file included from /usr/src/linux/include/linux/poll.h:11,
                 from zaprtc.c:68:
/usr/src/linux/include/asm/uaccess.h:35: error: syntax error before numeric
constant
/usr/src/linux/include/asm/uaccess.h:35: error: `__verify_write_R_ver_str'
declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:662: error:
`__generic_copy_to_user_R_ver_str' declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:662: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/asm/uaccess.h:663:15: invalid suffix "aa" on integer
constant
/usr/src/linux/include/asm/uaccess.h:663: error: syntax error before numeric
constant
/usr/src/linux/include/asm/uaccess.h:663: error:
`__generic_copy_from_user_R_ver_str' declared as function returning a
function
/usr/src/linux/include/asm/uaccess.h:778:6: invalid suffix "be5" on integer
constant
In file included from /usr/src/linux/include/linux/poll.h:11,
                 from zaprtc.c:68:
/usr/src/linux/include/asm/uaccess.h:778: error: syntax error before numeric
constant
/usr/src/linux/include/asm/uaccess.h:778: error:
`strncpy_from_user_R_ver_str' declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:779: error:
`__strncpy_from_user_R_ver_str' declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:779: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/asm/uaccess.h:797: error: `strnlen_user_R_ver_str'
declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:797: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/asm/uaccess.h:798:15: invalid suffix "aec9089" on
integer constant
/usr/src/linux/include/asm/uaccess.h:798: error: syntax error before numeric
constant
/usr/src/linux/include/asm/uaccess.h:798: error: `clear_user_R_ver_str'
declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:799: error: `__clear_user_R_ver_str'
declared as function returning a function
/usr/src/linux/include/asm/uaccess.h:799: warning: parameter names (without
types) in function declaration
In file included from zaprtc.c:68:
/usr/src/linux/include/linux/poll.h:33:13: invalid suffix "fd02e58" on
integer constant
In file included from zaprtc.c:68:
/usr/src/linux/include/linux/poll.h:33: error: syntax error before numeric
constant
/usr/src/linux/include/linux/poll.h:33: error: `poll_freewait_R_ver_str'
declared as function returning a function
In file included from /usr/src/linux/include/linux/proc_fs.h:5,
                 from zaprtc.c:69:
/usr/src/linux/include/linux/slab.h:52:22: invalid suffix "bb6891" on
integer constant
In file included from /usr/src/linux/include/linux/proc_fs.h:5,
                 from zaprtc.c:69:
/usr/src/linux/include/linux/slab.h:52: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:52: error:
`kmem_find_general_cachep_R_ver_str' declared as function returning a
function
/usr/src/linux/include/linux/slab.h:55: error: `kmem_cache_create_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/slab.h:55: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/linux/slab.h:56: error:
`kmem_cache_destroy_R_ver_str' declared as function returning a function
/usr/src/linux/include/linux/slab.h:56: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/linux/slab.h:57:12: invalid suffix "f7cf04" on
integer constant
/usr/src/linux/include/linux/slab.h:57: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:57: error: `kmem_cache_shrink_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/slab.h:58: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:58: error: `kmem_cache_alloc_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/slab.h:59:13: invalid suffix "f2686" on integer
constant
/usr/src/linux/include/linux/slab.h:59: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:59: error: `kmem_cache_free_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/slab.h:60:21: invalid suffix "a3c749" on
integer constant
/usr/src/linux/include/linux/slab.h:60: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:60: error: `kmem_cache_size_R_ver_str'
declared as function returning a function
/usr/src/linux/include/linux/slab.h:62:14: invalid suffix "d4cfe6" on
integer constant
/usr/src/linux/include/linux/slab.h:62: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:62: error: `kmalloc_R_ver_str' declared
as function returning a function
/usr/src/linux/include/linux/slab.h:63:13: invalid suffix "a0cba" on integer
constant
/usr/src/linux/include/linux/slab.h:63: error: syntax error before numeric
constant
/usr/src/linux/include/linux/slab.h:63: error: `kfree_R_ver_str' declared as
function returning a function
/usr/src/linux/include/linux/slab.h:70: warning: parameter names (without
types) in function declaration
/usr/src/linux/include/linux/slab.h:74: warning: parameter names (without
types) in function declaration
zaprtc.c:76:20: zaptel.h: No such file or directory
zaprtc.c:89: error: field `span' has incomplete type
zaprtc.c:90: error: field `chan' has incomplete type
zaprtc.c:166:5: invalid suffix "d26aa98" on integer constant
zaprtc.c: In function `rtc_zt_init':
zaprtc.c:166: error: called object is not a function
zaprtc.c:167:5: invalid suffix "d26aa98" on integer constant
zaprtc.c:167: error: called object is not a function
zaprtc.c:168:5: invalid suffix "d26aa98" on integer constant
zaprtc.c:168: error: called object is not a function
zaprtc.c:172: error: `ZT_LAW_MULAW' undeclared (first use in this function)
zaprtc.c:176: warning: implicit declaration of function `zt_register'
zaprtc.c:177:9: invalid suffix "b7d4074" on integer constant
zaprtc.c:177: error: called object is not a function
zaprtc.c:209:17: invalid suffix "f13d309" on integer constant
zaprtc.c:209:43: invalid suffix "da02d67" on integer constant
zaprtc.c: In function `rtc_interrupt':
zaprtc.c:209: error: called object is not a function
zaprtc.c:219: warning: implicit declaration of function `zt_receive'
zaprtc.c:220: warning: implicit declaration of function `zt_transmit'
zaprtc.c:309:17: invalid suffix "c" on integer constant
zaprtc.c: In function `rtc_read':
zaprtc.c:309: error: called object is not a function
zaprtc.c: In function `rtc_ioctl':
zaprtc.c:362: error: `fc62f16d' undeclared (first use in this function)
zaprtc.c:362: error: called object is not a function
zaprtc.c:380:49: invalid suffix "da02d67" on integer constant
zaprtc.c:381: error: `a19eacf8' undeclared (first use in this function)
zaprtc.c:381: error: called object is not a function
zaprtc.c:421:59: invalid suffix "aa" on integer constant
zaprtc.c:421: error: called object is not a function
zaprtc.c:471:59: invalid suffix "aa" on integer constant
zaprtc.c:471: error: called object is not a function
zaprtc.c:616: error: `d523fdd3' undeclared (first use in this function)
zaprtc.c:616: error: called object is not a function
zaprtc.c: In function `rtc_release':
zaprtc.c:674: error: `fc62f16d' undeclared (first use in this function)
zaprtc.c:674: error: called object is not a function
zaprtc.c:801:62: invalid suffix "a1a4f09" on integer constant
zaprtc.c:801:62: exponent has no digits
zaprtc.c: In function `rtc_init':
zaprtc.c:801: error: invalid lvalue in unary `&'
zaprtc.c:801: error: called object is not a function
zaprtc.c:803:17: invalid suffix "b7d4074" on integer constant
zaprtc.c:803: error: called object is not a function
zaprtc.c:808:12: invalid suffix "c60f2e0" on integer constant
zaprtc.c:808: error: called object is not a function
zaprtc.c:811:17: invalid suffix "b7d4074" on integer constant
zaprtc.c:811: error: called object is not a function
zaprtc.c:812: error: `d49501d4' undeclared (first use in this function)
zaprtc.c:812:58: exponent has no digits
zaprtc.c:812: error: invalid lvalue in unary `&'
zaprtc.c:812: error: called object is not a function
zaprtc.c:882:9: invalid suffix "b7d4074" on integer constant
zaprtc.c:882: error: called object is not a function
zaprtc.c: In function `rtc_exit':
zaprtc.c:897: error: `d49501d4' undeclared (first use in this function)
zaprtc.c:897:52: exponent has no digits
zaprtc.c:897: error: invalid lvalue in unary `&'
zaprtc.c:897: error: called object is not a function
zaprtc.c:900: error: `f20dabd8' undeclared (first use in this function)
zaprtc.c:900: error: called object is not a function
zaprtc.c:930:17: invalid suffix "f13d309" on integer constant
zaprtc.c:930:43: invalid suffix "da02d67" on integer constant
zaprtc.c: In function `rtc_dropped_irq':
zaprtc.c:930: error: called object is not a function
zaprtc.c:940:9: invalid suffix "b7d4074" on integer constant
zaprtc.c:940: error: called object is not a function
zaprtc.c:976:14: invalid suffix "d26aa98" on integer constant
zaprtc.c: In function `rtc_proc_output':
zaprtc.c:981: error: called object is not a function
zaprtc.c:990:14: invalid suffix "d26aa98" on integer constant
zaprtc.c:990: error: called object is not a function
zaprtc.c:992:22: invalid suffix "d26aa98" on integer constant
zaprtc.c:992: error: called object is not a function
zaprtc.c:994:22: invalid suffix "d26aa98" on integer constant
zaprtc.c:994: error: called object is not a function
zaprtc.c:997:22: invalid suffix "d26aa98" on integer constant
zaprtc.c:997: error: called object is not a function
zaprtc.c:999:22: invalid suffix "d26aa98" on integer constant
zaprtc.c:999: error: called object is not a function
zaprtc.c:1002:22: invalid suffix "d26aa98" on integer constant
zaprtc.c:1002: error: called object is not a function
zaprtc.c:1004:22: invalid suffix "d26aa98" on integer constant
zaprtc.c:1004: error: called object is not a function
zaprtc.c:1006:14: invalid suffix "d26aa98" on integer constant
zaprtc.c:1024: error: called object is not a function
zaprtc.c:1059:38: invalid suffix "da02d67" on integer constant
zaprtc.c:1076:24: invalid suffix "da02d67" on integer constant
make: *** [zaprtc.o] Fejl 1






More information about the asterisk-users mailing list