Dominik Zalewski
2007-Feb-11 07:15 UTC
[asterisk-users] Can not compile latest zaptel -1.2.13
I'm trying to compile latest zaptel-1.2.13 and I'm getting following errors: /usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp/xbus-core.c: In function ?debugfs_open?: /usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp/xbus-core.c:171: error: ?struct inode? has no member named ?i_private? make[5]: *** [/usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp/xbus-core.o] Error 1 make[4]: *** [/usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp] Error 2 make[3]: *** [_module_/usr/src/Asterisk-1.2.14/zaptel-1.2.13] Error 2 make[2]: *** [modules] Error 2 make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.18.2-34-obj/i386/default' make: *** [all] Error 2 Any ideas? Thank you in advance, Dominik
Dominik Zalewski wrote:> I'm trying to compile latest zaptel-1.2.13 and I'm getting following errors: > > > > Any ideas? > >I was getting the same errors, I updated to kernel 2.6.19.2 and it compiled. Doug -- Ben Franklin quote: "Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
Tzafrir Cohen
2007-Feb-11 07:51 UTC
[asterisk-users] Can not compile latest zaptel -1.2.13
On Sun, Feb 11, 2007 at 04:16:49PM +0200, Dominik Zalewski wrote:> I'm trying to compile latest zaptel-1.2.13 and I'm getting following errors: > > /usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp/xbus-core.c: In > function ?debugfs_open?: > /usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp/xbus-core.c:171: error: ?struct > inode? has no member named ?i_private? > make[5]: *** [/usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp/xbus-core.o] Error 1 > make[4]: *** [/usr/src/Asterisk-1.2.14/zaptel-1.2.13/xpp] Error 2 > make[3]: *** [_module_/usr/src/Asterisk-1.2.14/zaptel-1.2.13] Error 2 > make[2]: *** [modules] Error 2 > make[1]: *** [modules] Error 2 > make[1]: Leaving directory `/usr/src/linux-2.6.18.2-34-obj/i386/default' > make: *** [all] Error 2If you look a number of lines above the function debugfs_open, you'll see: /* * 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 vanila kernel (or Debian Etch) * Change the following test from 2,6,18 to 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 Looks like we're gonna break the Fedoras here (Debian Etch is less of an issue, as it doesn't have DEBUGFS enabled by default). Change that line to: #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19) Does this help? -- 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