[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
Sun Jan 20 18:50:21 CST 2013


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

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

Confirmed. The patch doesn't apply directly against v2.6.1.  Also, note that you don't need to perform step 2 above.  You can pass -p1 to patch in order to get it to apply if you do not have git installed.

For example, when I attempt to apply it against v2.6.1:

{noformat}
$ wget -q "https://issues.asterisk.org/jira/secure/attachment/46067/0001-xpp-Do-not-typedef-bool-on-RHEL-5.2-or-later.patch" -O - | patch -p1
patching file drivers/dahdi/xpp/xdefs.h
Hunk #1 FAILED at 145.
1 out of 1 hunk FAILED -- saving rejects to file drivers/dahdi/xpp/xdefs.h.rej
{noformat}

So, feel free to make Humberto's change by hand until this makes it into a 2.6.2 (most likely) release.  The patch is essentially doing the same thing he mentioned, but works with CentOS 5.9 in addition to vanilla 2.6.18 or CentOS 5.x versions before 5.2.
                
> 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