[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
Sat Apr 9 18:21:28 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18992 
====================================================================== 
Reported By:                ndupeux
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   18992
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2011-03-18 07:32 CDT
Last Modified:              2011-04-09 18:21 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 ...
====================================================================== 

---------------------------------------------------------------------- 
 (0133570) sruffell (administrator) - 2011-04-09 18:21
 https://issues.asterisk.org/view.php?id=18992#c133570 
---------------------------------------------------------------------- 
I've attached a patch (made with git, so use patch -p1 if you want to apply
it with the "wget patch" recipe above) that just looks for an existing
definition before defining a new one.  Let me know if this works for you. 
This patch should work if other distributions back port the definition as
well.

Also, if you would like me to use your real reporter name / email into the
commit log, let me know and I'll do so before committing. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-09 18:21 sruffell       Note Added: 0133570                          
======================================================================




More information about the asterisk-bugs mailing list