[asterisk-bugs] [DAHDI-linux 0018992]: [patch] Unable to compile dahdi-linux-mod of RHEL 5.6 (and derivates)

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 11 13:45:07 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18992 
====================================================================== 
Reported By:                ndupeux
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   18992
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
JIRA:                        
Reviewboard Link:            
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-03-18 07:32 CDT
Last Modified:              2011-04-11 13:45 CDT
====================================================================== 
Summary:                    [patch] Unable to compile dahdi-linux-mod of RHEL
5.6 (and derivates)
Description: 
When compiling dahdi-linux-kmod under RHEL 5.6, make failed with this
message :

  CC [M] 
/usr/src/rpm/BUILD/dahdi-linux-kmod-2.4.0/_kmod_build_/drivers/dahdi/xpp/card_bri.o
In file included from
/usr/src/rpm/BUILD/dahdi-linux-kmod-2.4.0/_kmod_build_/drivers/dahdi/xpp/xpd.h:31,
                 from
/usr/src/rpm/BUILD/dahdi-linux-kmod-2.4.0/_kmod_build_/drivers/dahdi/xpp/card_bri.c:29:
include/linux/device.h:407: error: expected identifier or '(' before
'const'
make[3]: ***
[/usr/src/rpm/BUILD/dahdi-linux-kmod-2.4.0/_kmod_build_/drivers/dahdi/xpp/card_bri.o]
Error 1
make[2]: ***
[/usr/src/rpm/BUILD/dahdi-linux-kmod-2.4.0/_kmod_build_/drivers/dahdi/xpp]
Error 2
make[1]: ***
[_module_/usr/src/rpm/BUILD/dahdi-linux-kmod-2.4.0/_kmod_build_/drivers/dahdi]
Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.18-238.5.1.el5-i686'

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
has duplicate       0019088 Unable to compile dahdi-linux-complete ...
related to          0019097 Can't install DAHDI with yum on CentOS 5.6
====================================================================== 

---------------------------------------------------------------------- 
 (0133603) svnbot (reporter) - 2011-04-11 13:45
 https://issues.asterisk.org/view.php?id=18992#c133603 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 9895

U   linux/branches/2.4/include/dahdi/kernel.h

------------------------------------------------------------------------
r9895 | sruffell | 2011-04-11 13:45:06 -0500 (Mon, 11 Apr 2011) | 14 lines

dahdi: Do not define dev_name if already backported.

RHEL 5.6 has backported dev_name in include/dahdi/devices.h.  We now need
to
check for a back ported definition before defining our own version on pre
2.6.26 kernels.

(closes issue https://issues.asterisk.org/view.php?id=18992)
Reported by: ndupeux, AlexCeli
Tested by: elguero

Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Acked-by: Shaun Ruffell <sruffell at digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9894
------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=9895 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-11 13:45 svnbot         Checkin                                      
2011-04-11 13:45 svnbot         Note Added: 0133603                          
======================================================================




More information about the asterisk-bugs mailing list