Ahmed Munir
2013-Feb-27 21:26 UTC
[asterisk-users] Getting compilation error while installing Dhadi
Hi all, I'm getting compilation error as trying to install latest version of dahdi on CentOS box 5.9 which I now updated from 5.6. I also installed the dependencies but still not getting the clue to get install the driver. Listing down the errors below; CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsi_cnct.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wct4xxp/../oct612x/octdeviceapi/oct6100api/oct6100_api/oct6100_tsst.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wct4xxp/../oct612x/apilib/bt/octapi_bt0.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wct4xxp/../oct612x/apilib/largmath/octapi_largmath.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wct4xxp/../oct612x/apilib/llman/octapi_llman.o LD [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wct4xxp/wct4xxp.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wctc4xxp/base.o LD [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wctc4xxp/wctc4xxp.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wctdm24xxp/base.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wctdm24xxp/xhfc.o LD [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wctdm24xxp/wctdm24xxp.o CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wcte12xp/base.o LD [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/wcte12xp/wcte12xp.o VERSION /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xpp_version.h CC [M] /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o In file included from /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xpd.h:26, from /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.c:29: /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for ?bool? include/linux/types.h:36: error: previous declaration of ?bool? was here make[4]: *** [/usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1 make[3]: *** [/usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2 make[2]: *** [_module_/usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi] Error 2 make[2]: Leaving directory `/usr/src/kernels/2.6.18-348.1.1.el5-x86_64' make[1]: *** [modules] Error 2 make[1]: Leaving directory `/usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux' make: *** [all] Error 2 Please advise how can I resolve this issue. -- Regards, Ahmed Munir Chohan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130227/41029126/attachment.htm>
Steve Edwards
2013-Feb-27 21:40 UTC
[asterisk-users] Getting compilation error while installing Dhadi
On Wed, 27 Feb 2013, Ahmed Munir wrote:> I'm getting compilation error as trying to install latest version of dahdi> /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: error: conflicting types for ?bool? > include/linux/types.h:36: error: previous declaration of ?bool? was hereDon't let a little thing like a compilation error stop you :) Just comment out line 152 in xdefs.h There may be a 'proper' way to do this, but this should work. I had the same issue compiling zaptel-1.2.27 on CentOS 5.9 yesterday. -- Thanks in advance, ------------------------------------------------------------------------- Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
Russ Meyerriecks
2013-Feb-27 21:51 UTC
[asterisk-users] Getting compilation error while installing Dhadi
> error: conflicting types for ?bool? > include/linux/types.h:36: error: previous declaration of ?bool? was hereThis issue is resolved by the latest dahdi-linux release 2.6.2-rc1. You can download a tarball of the release here: http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.6.2-rc1.tar.gz Or you can check out the v2.6.2-rc1 tag from git: git clone git.asterisk.org/dahdi/linux dahdi-linux cd dahdi-linux git checkout v2.6.2-rc1 -- Russ Meyerriecks Digium, Inc. | Linux Kernel Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA direct: +1 256-428-6025 Check us out at: www.digium.com & www.asterisk.org
Ahmed Munir
2013-Feb-28 20:43 UTC
[asterisk-users] Getting compilation error while installing Dhadi
Thanks Steve and Russ. It worked. From: Steve Edwards <asterisk.org at sedwards.com>> Subject: Re: [asterisk-users] Getting compilation error while > installing Dhadi > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> > Message-ID: <alpine.DEB.2.02.1302271337180.3668 at ws> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > > On Wed, 27 Feb 2013, Ahmed Munir wrote: > > > I'm getting compilation error as trying to install latest version of > dahdi > > > > /usr/local/src/Asterisk/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xdefs.h:152: > error: conflicting types for ?bool? > > include/linux/types.h:36: error: previous declaration of ?bool? was here > > Don't let a little thing like a compilation error stop you :) > > Just comment out line 152 in xdefs.h > > There may be a 'proper' way to do this, but this should work. > > I had the same issue compiling zaptel-1.2.27 on CentOS 5.9 yesterday. > > -- > Thanks in advance, > ------------------------------------------------------------------------- > Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST > Newline Fax: +1-760-731-3000 > > ------------------------------ > > > From: Russ Meyerriecks <rmeyerriecks at digium.com> > Subject: Re: [asterisk-users] Getting compilation error while > installing Dhadi > To: Asterisk Users Mailing List - Non-Commercial Discussion > <asterisk-users at lists.digium.com> > Message-ID: <20130227215108.GA17504 at blackmagic> > Content-Type: text/plain; charset=iso-8859-1 > > > error: conflicting types for ?bool? > > include/linux/types.h:36: error: previous declaration of ?bool? was here > > This issue is resolved by the latest dahdi-linux release 2.6.2-rc1. > > You can download a tarball of the release here: > > http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-2.6.2-rc1.tar.gz > > Or you can check out the v2.6.2-rc1 tag from git: > git clone git.asterisk.org/dahdi/linux dahdi-linux > cd dahdi-linux > git checkout v2.6.2-rc1 > > -- > Russ Meyerriecks > Digium, Inc. | Linux Kernel Developer > 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA > direct: +1 256-428-6025 > Check us out at: www.digium.com & www.asterisk.org > >-- Regards, Ahmed Munir Chohan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20130228/3f0d5841/attachment.htm>