[asterisk-users] make Zaptel 1.2.16 'struct inode' has no member named 'u'.

Moises Silva moises.silva at gmail.com
Wed Apr 4 11:51:31 MST 2007


Zaptel has no direct code relationship with Asterisk. Your error is
because zaptel is trying to use a member no longer exists in newer
kernels. However you are using fedora, and fedora included that change
in older kernel. I found this in xpp/xbus-core.c

/*
 * 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

So go ahead and change the source as the comment says.

Regards

On 4/4/07, kjcsb <kjcsb at yahoo.com> wrote:
> On attempting to make Zaptel 1.2.16 on FC5, I get the following messages:
>
> /usr/src/zaptel-1.2.16/xpp/xbus-core.c: In function 'debugfs_open':
> /usr/src/zaptel-1.2.16/xpp/xbus-core.c:171: error: 'struct inode' has no member named 'u'
> make[3]: *** [/usr/src/zaptel-1.2.16/xpp/xbus-core.o] Error 1
> make[2]: *** [/usr/src/zaptel-1.2.16/xpp] Error 2
> make[1]: *** [_module_/usr/src/zaptel-1.2.16] Error 2
> make[1]: Leaving directory `/usr/src/kernels/2.6.18-1.2257.fc5-smp-i686'
> make: *** [all] Error 2
>
> An internet search has turned this message up but other than indicating that the inode structure has changed I'm no further ahead. I have found nothing specific for Asterisk.
>
> Any advice appreciated.
>
> Cameron
>
>
>
> ___________________________________________________________
> The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
> _______________________________________________
> --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
>


-- 
"Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"


More information about the asterisk-users mailing list