[asterisk-dev] Problem building Zaptel 1.4 from SVN

Tzafrir Cohen tzafrir.cohen at xorcom.com
Fri Feb 9 00:40:27 MST 2007


On Fri, Feb 09, 2007 at 03:44:58PM +1300, Matt Riddell (NZ) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi,
> 
> I'm getting the following error building Zaptel 1.4 from SVN:
> 
> make[2]: Entering directory `/lib/modules/2.6.9-1.667/build'
> 
>   CC [M]  /usr/src/zaptel/xpp/card_fxo.o
> In file included from /usr/src/zaptel/xpp/card_fxo.c:27:
> /usr/src/zaptel/xpp/xpd.h:111: error: syntax error before "gfp_t"
> /usr/src/zaptel/xpp/xpd.h:111: warning: function declaration isn't a
> prototype
> In file included from /usr/src/zaptel/xpp/card_fxo.c:32:
> /usr/src/zaptel/xpp/xbus-core.h:46: error: syntax error before "gfp_t"
> /usr/src/zaptel/xpp/xbus-core.h:46: warning: function declaration isn't
> a prototype
> make[4]: *** [/usr/src/zaptel/xpp/card_fxo.o] Error 1
> make[3]: *** [/usr/src/zaptel/xpp] Error 2
> make[2]: *** [_module_/usr/src/zaptel] Error 2
> make[2]: Leaving directory `/lib/modules/2.6.9-1.667/build'
> make[1]: *** [linux26] Error 2
> make[1]: Leaving directory `/usr/src/zaptel'
> make: *** [all] Error 2

/me points to the changelog entry "consider every 2.6.9 a RHEL".

How can I tell the difference between a real 2.6.9 and the one of RHEL4
(Centos4, whatever) with tons of backports?

Workaround: 


Index: xpp/xpd.h
===================================================================
--- xpp/xpd.h   (revision 2128)
+++ xpp/xpd.h   (working copy)
@@ -46,11 +46,8 @@
 
 #ifdef __KERNEL__
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
-/* pretend every 2.6.9 is later RHEL */
-#if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,9) 
 typedef        unsigned gfp_t;         /* Added in 2.6.14 */
 #endif
-#endif
 
 /*
  * FIXME: Kludge for 2.6.19


-- 
               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-dev mailing list