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

kjcsb kjcsb at yahoo.com
Sat Apr 7 11:19:35 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
> 
The following resolved this issue:
vi xpp/xbus-core.c
Change code as follows:
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)

make clean && make
Thanks
Cameron


		
___________________________________________________________ 
What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 


More information about the asterisk-users mailing list