[asterisk-bugs] [JIRA] (DAHLIN-312) Error: conflicting types for 'bool' when compiled after CentOS upgraded to 5.9, kernel 2.6.18-348.el5

Shaun Ruffell (JIRA) noreply at issues.asterisk.org
Sat Jan 19 23:35:21 CST 2013


    [ https://issues.asterisk.org/jira/browse/DAHLIN-312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=201901#comment-201901 ] 

Shaun Ruffell commented on DAHLIN-312:
--------------------------------------

I just made a minor update to the patch in order to still work with vanilla 2.6.18 (which shouldn't have been affecting you).  Perhaps you weren't applying it to the master branch?

Here is how I tested it:
{noformat}
$ git clone git://git.asterisk.org/dahdi/linux dahdi-linux
Cloning into 'dahdi-linux'...
remote: Counting objects: 6158, done.
remote: Compressing objects: 100% (1165/1165), done.
remote: Total 6158 (delta 4068), reused 6158 (delta 4068)
Receiving objects: 100% (6158/6158), 3.88 MiB | 565 KiB/s, done.
Resolving deltas: 100% (4068/4068), done.
$ cd dahdi-linux/
$ wget "https://issues.asterisk.org/jira/secure/attachment/46067/0001-xpp-Do-not-typedef-bool-on-RHEL-5.2-or-later.patch" -O - | git am
--2013-01-19 23:31:33--  https://issues.asterisk.org/jira/secure/attachment/46067/0001-xpp-Do-not-typedef-bool-on-RHEL-5.2-or-later.patch
Resolving issues.asterisk.org... 76.164.171.238, 2001:470:e0d4::ee
Connecting to issues.asterisk.org|76.164.171.238|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1473 (1.4K) [text/plain]
Saving to: ‘STDOUT’

100%[===================================================================================================>] 1,473       --.-K/s   in 0s      

2013-01-19 23:31:33 (4.58 MB/s) - written to stdout [1473/1473]

Applying: xpp: Do not typedef bool on RHEL 5.2 or later.
{noformat}
                
> Error: conflicting types for 'bool' when compiled after CentOS upgraded to 5.9, kernel 2.6.18-348.el5
> -----------------------------------------------------------------------------------------------------
>
>                 Key: DAHLIN-312
>                 URL: https://issues.asterisk.org/jira/browse/DAHLIN-312
>             Project: DAHDI-Linux
>          Issue Type: Bug
>      Security Level: None
>          Components: Astribank (xpp)
>    Affects Versions: 2.6.1
>         Environment: Centos 5.9 has been just applied, kernel 2.6.18-348.el5, before reboot
>            Reporter: Vladimir Mikhelson
>            Assignee: Russ Meyerriecks
>         Attachments: 0001-xpp-Do-not-typedef-bool-on-RHEL-5.2-or-later.patch, 0001-xpp-Do-not-typedef-_Bool-on-RHEL-5.2-or-later.patch, make_output.txt
>
>
> Applied CentOS 5.9 yum updates, DAHDI was removed for dependencies, new RPMs were not available, ran MAKE, received the following:
> \\
> \\
> {code}In file included from /usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/xpd.h:26,
>                  from /usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.c:29:
> /usr/src/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/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp/card_bri.o] Error 1
> make[3]: *** [/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux/drivers/dahdi/xpp] Error 2
> make[2]: *** [_module_/usr/src/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.el5-i686'
> make[1]: *** [modules] Error 2
> make[1]: Leaving directory `/usr/src/dahdi-linux-complete-2.6.1+2.6.1/linux'
> make: *** [all] Error 2{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list