มีใคร ลอง Asterisk กับ CentOS 5 บ้างแล้วคับ
ผมลองแล้วติดปัญหาเรื่อง ของkernal อ่ะ
[root@localhost zaptel-1.4.2]# make
grep: /lib/modules/2.6.18-8.el5/build/include/linux/autoconf.h: No such file or directory
grep: /lib/modules/2.6.18-8.el5/build/include/linux/autoconf.h: No such file or directory
make[1]: Entering directory `/usr/local/src/asterisk/zaptel-1.4.2'
You do not appear to have the sources for the 2.6.18-8.el5 kernel installed.
make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/local/src/asterisk/zaptel-1.4.2'
make: *** [all] Error 2
kernal version ของผมคือ
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.18-8.el5 #1 SMP Thu Mar 15 19:57:35 EDT 2007 i686 i686 i386 GNU/Linux
ผมลองแก้ file zaptel-1.4/xpp/xbus-core.c ตามที่ comment มันบอกแล้วนะ
/*
* As part of the "inode diet" the private data member of struct inode
* has changed in 2.6.19. However, Fedore Core 6 adopted this change
* a bit earlier (2.6.18). If you use such a kernel, Change the
* following test from 2,6,19 to 2,6,18.
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) <<<< บรรทัดนี้อะคับ แก้เป็น #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
#define I_PRIVATE(inode) ((inode)->u.generic_ip)
#else
#define I_PRIVATE(inode) ((inode)->i_private)
#endif
แต่ก็ยังไม่ได้เหมือนเดิม
ผมต้องทำไงต่อดี ขอบคุณครับ
