I get the following error when trying to compile zaptel on CentOS 5 kernel 2.6.18-8.1.3.el5 CC [M] /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.o /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.c: In function ? /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.c:171: error: ? has no member named ? make[3]: *** [/root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.o] Error 1 make[2]: *** [/root/asterisk-src/zaptel-1.2.17.1/xpp] Error 2 make[1]: *** [_module_/root/asterisk-src/zaptel-1.2.17.1] Error 2 make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.3.el5-i686' make: *** [all] Error 2 I'm kind of at my wits end with this - been trying for several hours.. Thanks!
The problem is that your kernel is newer than the xbus-core.c file is looking for. See: http://forums.digium.com/viewtopic.php?t=15317&sid=7beaf6bfed1550f4a8676427283800c5 I just did a make menuselect and eliminated the xpp module. It is for USB Astribank, something I will never use. On 5/4/07, mail-lists <mail-lists@peachnet.com> wrote:> I get the following error when trying to compile zaptel on CentOS 5 > kernel 2.6.18-8.1.3.el5 > > CC [M] /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.o > /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.c: In function ? > /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.c:171: error: ? has no > member named ? > make[3]: *** [/root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.o] Error 1 > make[2]: *** [/root/asterisk-src/zaptel-1.2.17.1/xpp] Error 2 > make[1]: *** [_module_/root/asterisk-src/zaptel-1.2.17.1] Error 2 > make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.3.el5-i686' > make: *** [all] Error 2 > > > I'm kind of at my wits end with this - been trying for several hours.. > > > Thanks! > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-- *** Forrest Beck IAXTEL: 17002871718 jonforrest.beck@gmail.com
Forrest Beck wrote:> The problem is that your kernel is newer than the xbus-core.c file is > looking for. See: > http://forums.digium.com/viewtopic.php?t=15317&sid=7beaf6bfed1550f4a8676427283800c5 >thank you for pointing me in the right direction with this - the answer is write there in xbus-core.c: -------------------------CODE-------------------------------- /* * 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) #define I_PRIVATE(inode) ((inode)->u.generic_ip) #else #define I_PRIVATE(inode) ((inode)->i_private) #endif ------------------------END CODE------------------------------- So change KERNEL_VERSION(2,6,19) to KERNEL_VERSION(2,6,18), And away it goes!! Thanks!
Forrest Beck wrote:> The problem is that your kernel is newer than the xbus-core.c file is > looking for. See: > http://forums.digium.com/viewtopic.php?t=15317&sid=7beaf6bfed1550f4a8676427283800c5 >thank you for pointing me in the right direction with this - the answer is write there in xbus-core.c: -------------------------CODE-------------------------------- /* * 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) #define I_PRIVATE(inode) ((inode)->u.generic_ip) #else #define I_PRIVATE(inode) ((inode)->i_private) #endif ------------------------END CODE------------------------------- So change KERNEL_VERSION(2,6,19) to KERNEL_VERSION(2,6,18), And away it goes!! Thanks!
On Fri, May 04, 2007 at 01:55:20PM -0400, mail-lists wrote:> I get the following error when trying to compile zaptel on CentOS 5 > kernel 2.6.18-8.1.3.el5 > > CC [M] /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.o > /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.c: In function ? > /root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.c:171: error: ? has no > member named ? > make[3]: *** [/root/asterisk-src/zaptel-1.2.17.1/xpp/xbus-core.o] Error 1 > make[2]: *** [/root/asterisk-src/zaptel-1.2.17.1/xpp] Error 2 > make[1]: *** [_module_/root/asterisk-src/zaptel-1.2.17.1] Error 2 > make[1]: Leaving directory `/usr/src/kernels/2.6.18-8.1.3.el5-i686' > make: *** [all] Error 2 > > > I'm kind of at my wits end with this - been trying for several hours..Please test the patch in http://bugs.digium.com/view.php?id=9006 -- Tzafrir Cohen icq#16849755 jabber:tzafrir@jabber.org +972-50-7952406 mailto:tzafrir.cohen@xorcom.com http://www.xorcom.com iax:guest@local.xorcom.com/tzafrir