[asterisk-users] Can not compile latest zaptel -1.2.13
Tzafrir Cohen
tzafrir.cohen at xorcom.com
Sun Feb 11 07:51:29 MST 2007
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 2
If 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 at jabber.org
+972-50-7952406 mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com iax:guest at local.xorcom.com/tzafrir
More information about the asterisk-users
mailing list