<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On 21 October 2014 10:07, Tzafrir Cohen <span dir="ltr"><<a href="mailto:tzafrir.cohen@xorcom.com" target="_blank">tzafrir.cohen@xorcom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On Mon, Oct 20, 2014 at 10:58:58PM +0100, Ray Image wrote:<br>
> I am following the guide here:<br>
> <a href="http://updates.xorcom.com/astribank/bristuff/1.4/bristuff-current/INSTALL.html" target="_blank">http://updates.xorcom.com/astribank/bristuff/1.4/bristuff-current/INSTALL.html</a><br>
<br>
</span>Err... what would you do that?<br>
<br>
Bristuff (and anything Zaptel) is left for the record and historical<br>
value. But there's practically nothing useful there. I wouldn't waste my<br>
time on it.<br>
<br>
That said,<br>
<span class=""><br>
> for installing bristuff on a CentOS5.11 box (stock 2.6.18-398.el5.i686).<br>
> Whilst building zaptel I get the error as follows:<br>
><br>
> CC [M]<br>
> /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/card_bri.o<br>
> In file included from<br>
> /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/xpd.h:26,<br>
> from<br>
> /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/card_bri.c:29:<br>
> /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/xdefs.h:157:<br>
> error: conflicting types for ‘bool’<br>
> include/linux/types.h:36: error: previous declaration of ‘bool’ was here<br>
> In file included from<br>
<br>
</span>Yeah, see how this is resolved in later versions of DAHDI. Or just<br>
remove that typedef of bool. If it's provided by the kernel, DAHDI<br>
doesn't need to provide it.<br>
<div class=""><div class="h5"><br>
> /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/xpd.h:31,<br>
> from<br>
> /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/card_bri.c:29:<br>
> include/linux/device.h:407: error: expected identifier or ‘(’ before ‘const’<br>
> make[4]: ***<br>
> [/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/card_bri.o]<br>
> Error 1<br>
> make[3]: ***<br>
> [/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp]<br>
> Error 2<br>
> make[2]: ***<br>
> [_module_/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel]<br>
> Error 2<br>
> make[2]: Leaving directory `/usr/src/kernels/2.6.18-398.el5-i686'<br>
> make[1]: *** [modules] Error 2<br>
> make[1]: Leaving directory<br>
> `/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649'<br>
> make: *** [all] Error 2<br>
><br>
> Can anyone help please? Thanks in advance.<br>
<br>
<br>
</div></div><span class=""><font color="#888888">--<br>
Tzafrir Cohen<br>
icq#16849755 <a href="mailto:jabber%3Atzafrir.cohen@xorcom.com">jabber:tzafrir.cohen@xorcom.com</a><br>
<a href="tel:%2B972-50-7952406" value="+972507952406">+972-50-7952406</a> mailto:<a href="mailto:tzafrir.cohen@xorcom.com">tzafrir.cohen@xorcom.com</a><br>
<a href="http://www.xorcom.com" target="_blank">http://www.xorcom.com</a><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
<a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></font></span></blockquote></div><div class="gmail_extra"><br></div>Thanks for your response. As far as I can see I have no choice but use Zaptel as that is downloaded as part of the bristuff script. If there is a better way of getting a HFC PCI card to play nicely with Asterisk please let me know :-)</div><div class="gmail_extra"><br></div><div class="gmail_extra">There are two entries that refer to "typedef int bool;", see excerpt of /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/xdefs.h below:</div><div class="gmail_extra"> </div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)</div><div class="gmail_extra">/* Also don't define this for later RHEL >= 5.2 . hex_asc is from the</div><div class="gmail_extra"> * same linux-2.6-net-infrastructure-updates-to-mac80211-iwl4965.patch</div><div class="gmail_extra"> * as is the bool typedef. */</div><div class="gmail_extra">#if LINUX_VERSION_CODE != KERNEL_VERSION(2,6,18) || ! defined(hex_asc)</div><div class="gmail_extra">typedef int bool;</div><div class="gmail_extra">#endif</div><div class="gmail_extra">#endif</div><div class="gmail_extra">#else</div><div class="gmail_extra">typedef int bool;</div><div class="gmail_extra">#endif</div><div class="gmail_extra">typedef struct xbus xbus_t;</div><div class="gmail_extra">typedef struct xpd xpd_t;</div><div class="gmail_extra">typedef struct xframe xframe_t;</div><div class="gmail_extra">typedef struct xpacket xpacket_t;</div><div class="gmail_extra">typedef struct xops xops_t;</div><div class="gmail_extra">typedef __u32 xpp_line_t; /* at most 31 lines for E1 */</div><div class="gmail_extra">typedef byte lineno_t;</div><div class="gmail_extra">typedef byte xportno_t;</div><div class="gmail_extra"><br></div><div class="gmail_extra">#define PORT_BROADCAST 255</div><div class="gmail_extra"><br></div><div class="gmail_extra">#endif /* XDEFS_H */</div><div><br></div><div><br></div></div><div class="gmail_extra">Removing those gives me the following error:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">In file included from /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/xpd.h:31,</div><div class="gmail_extra"> from /usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/card_bri.c:29:</div><div class="gmail_extra">include/linux/device.h:407: error: expected identifier or ‘(’ before ‘const’</div><div class="gmail_extra">make[4]: *** [/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp/card_bri.o] Error 1</div><div class="gmail_extra">make[3]: *** [/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel/xpp] Error 2</div><div class="gmail_extra">make[2]: *** [_module_/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649/kernel] Error 2</div><div class="gmail_extra">make[2]: Leaving directory `/usr/src/kernels/2.6.18-398.el5-i686'</div><div class="gmail_extra">make[1]: *** [modules] Error 2</div><div class="gmail_extra">make[1]: Leaving directory `/usr/src/bristuff-0.4.0-RC4-xr7/zaptel-1.4.12.9.svn.r4649'</div><div class="gmail_extra">make: *** [all] Error 2</div><div><br></div><div>Can someone advise what I am missing?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div></div>