Thomas Hupfeldt
2004-Oct-26 09:47 UTC
[Asterisk-Users] Problem getting zaprtc installed on a mandrake 9.2
Hello.. Im quiet new in this, but i have got asterisk running so far with some extensions and so on.. But now I want som Music on Hold and Some Conference calls.. Then do need the zaprtc installed but there i get this failure message. I have checked the version of my kernel, and this is a version. 2.4.. Can anyone explan what i am doing wrong ? Best Regard Thomas H. Denmark. cc -c zaprtc.c -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -fomit-frame-pointer -O2 -Wall -I/usr/src/linux/include -Wall In file included from /usr/include/linux/prefetch.h:13, from /usr/include/linux/list.h:6, from /usr/include/linux/module.h:11, from zaprtc.c:60: /usr/include/asm/processor.h:55: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/asm/processor.h:55: error: requested alignment is not a constant In file included from /usr/include/linux/module.h:20, from zaprtc.c:60: /usr/include/linux/modversions.h:1:2: #error "=======================================================" /usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header" /usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/modversions.h:4:2: #error "" /usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the" /usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be" /usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space" /usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well." /usr/include/linux/modversions.h:12:2: #error "" /usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:" /usr/include/linux/modversions.h:14:2: #error "" /usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed" /usr/include/linux/modversions.h:16:2: #error "" /usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link" /usr/include/linux/modversions.h:18:2: #error " /lib/modules/`uname -r`/build exists and points to" /usr/include/linux/modversions.h:19:2: #error " the matching kernel source directory" /usr/include/linux/modversions.h:20:2: #error "" /usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to" /usr/include/linux/modversions.h:22:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h" /usr/include/linux/modversions.h:23:2: #error "" /usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following" /usr/include/linux/modversions.h:25:2: #error " compiler option to use the correct include files:" /usr/include/linux/modversions.h:26:2: #error "" /usr/include/linux/modversions.h:27:2: #error " -I/lib/modules/`uname -r`/build/include" /usr/include/linux/modversions.h:28:2: #error "" /usr/include/linux/modversions.h:29:2: #error " instead of" /usr/include/linux/modversions.h:30:2: #error "" /usr/include/linux/modversions.h:31:2: #error " -I/usr/include/linux" /usr/include/linux/modversions.h:32:2: #error "" /usr/include/linux/modversions.h:33:2: #error " Please adjust the Makefile accordingly." /usr/include/linux/modversions.h:34:2: #error "=======================================================" In file included from /usr/include/linux/module.h:297, from zaprtc.c:60: /usr/include/linux/version.h:2:2: #error "=======================================================" /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header" /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules." /usr/include/linux/version.h:5:2: #error "" /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined" /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)" /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the" /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be" /usr/include/linux/version.h:10:2: #error "included via other system header files - user space" /usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or" /usr/include/linux/version.h:12:2: #error "<asm/*.h> as well." /usr/include/linux/version.h:13:2: #error "" /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:" /usr/include/linux/version.h:15:2: #error "" /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed" /usr/include/linux/version.h:17:2: #error "" /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link" /usr/include/linux/version.h:19:2: #error " /lib/modules/`uname -r`/build exists and points to" /usr/include/linux/version.h:20:2: #error " the matching kernel source directory" /usr/include/linux/version.h:21:2: #error "" /usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to" /usr/include/linux/version.h:23:2: #error " /lib/modules/`uname -r`/build/include/linux/version.h" /usr/include/linux/version.h:24:2: #error "" /usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following" /usr/include/linux/version.h:26:2: #error " compiler option to use the correct include files:" /usr/include/linux/version.h:27:2: #error "" /usr/include/linux/version.h:28:2: #error " -I/lib/modules/`uname -r`/build/include" /usr/include/linux/version.h:29:2: #error "" /usr/include/linux/version.h:30:2: #error " instead of" /usr/include/linux/version.h:31:2: #error "" /usr/include/linux/version.h:32:2: #error " -I/usr/include/linux" /usr/include/linux/version.h:33:2: #error "" /usr/include/linux/version.h:34:2: #error " Please adjust the Makefile accordingly." /usr/include/linux/version.h:35:2: #error "=======================================================" In file included from zaprtc.c:60: /usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE" In file included from /usr/include/linux/mm.h:12, from /usr/include/linux/vmalloc.h:5, from /usr/include/asm/io.h:47, from /usr/include/linux/mc146818rtc.h:14, from zaprtc.c:66: /usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function) /usr/include/linux/mmzone.h:44: error: requested alignment is not a constant 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: In function `rtc_zt_init': zaprtc.c:172: error: `ZT_LAW_MULAW' undeclared (first use in this function) zaprtc.c:172: error: (Each undeclared identifier is reported only once zaprtc.c:172: error: for each function it appears in.) zaprtc.c:176: warning: implicit declaration of function `zt_register' zaprtc.c: In function `rtc_interrupt': zaprtc.c:219: warning: implicit declaration of function `zt_receive' zaprtc.c:220: warning: implicit declaration of function `zt_transmit' make: *** [zaprtc.o] Fejl 1 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041026/9a53c8db/attachment.htm
Kristian Kielhofner
2004-Oct-26 09:59 UTC
[Asterisk-Users] Problem getting zaprtc installed on a mandrake 9.2
Thomas Hupfeldt wrote:> Hello.. Im quiet new in this, but i have got asterisk running so far > with some extensions and so on.. > > But now I want som Music on Hold and Some Conference calls.. Then do > need the zaprtc installed but there i get this failure message. > > I have checked the version of my kernel, and this is a version. 2.4.. > > Can anyone explan what i am doing wrong ? > > Best Regard > Thomas H. > Denmark. >What distro are you runnning? Do you have your kernel source installed and have /usr/src/linux symlinked to the configured and built (with rtc as a module) kernel source? Check all of this and let us know! -- Kristian Kielhofner
Kristian Kielhofner
2004-Oct-26 10:01 UTC
[Asterisk-Users] Problem getting zaprtc installed on a mandrake 9.2
Thomas Hupfeldt wrote:> Hello.. Im quiet new in this, but i have got asterisk running so far > with some extensions and so on.. > > But now I want som Music on Hold and Some Conference calls.. Then do > need the zaprtc installed but there i get this failure message. > > I have checked the version of my kernel, and this is a version. 2.4.. > > Can anyone explan what i am doing wrong ? > > Best Regard > Thomas H. > Denmark. >Sorry, I just realized that your subject answered my questions on what distro and version you were running. Do a rpm -q kernel and rpm -q kernel-source and make sure that they match. Do modprobe rtc and see if it loads. Check and make sure that /usr/src/linux is valid and points to the correct location. Many times redhat and mandrake distros setup /usr/src/linux-2.4 but not the /usr/src/linux symlink. Sorry! -- Kristian Kielhofner
Thomas Hupfeldt
2004-Oct-26 10:29 UTC
[Asterisk-Users] Problem getting zaprtc installed on a mandrake9.2
Kristian Kielhofner wrote:> > Do a rpm -q kernel and rpm -q kernel-source and make sure that they > match. Do modprobe rtc and see if it loads. Check and make sure that > /usr/src/linux is valid and points to the correct location. Many times > redhat and mandrake distros setup /usr/src/linux-2.4 but not the > /usr/src/linux symlink.Thanks for the fast reply.. Hmm.. in some way, i think there is something wrong.. If I run rpm -q kernel and kernel-source i get the message: Package is not installed.. I the used the graphical interface, and got them installed. Now i get the message: rpm -q kernel: Not installed and rpm -q kernel-source: kernel-source-2.4.22-37mdk When i run modprobe rtc, nothing happens. In the linux (/usr/src/ vi linux), there is this line: "/usr/src/linux-2.4.22-37mdk/ and there are a directory called linux-2.4.22-37mdk/ If i has midunderstood something, please give me a hint.. Best Regards Thomas Hupfeldt.