[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 11:07:32 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-11 11:07 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
======================================================================
----------------------------------------------------------------------
(0133597) quadra (reporter) - 2011-04-11 11:07
https://issues.asterisk.org/view.php?id=18992#c133597
----------------------------------------------------------------------
Thanks in advance.
But when I use the svn/cd/wget command according sruffell, it ask me
always which file I want to patch.
Which file I have to say?
Tkx a lot.
[root at zulu1505 dahdi-linux-2.4.1.1]# wget
'https://issues.asterisk.org/file_download.php?file_id=29097&type=bug' -O -
| patch -p0
--2011-04-11 17:07:35--
https://issues.asterisk.org/file_download.php?file_id=29097&type=bug
Resolving issues.asterisk.org... 76.164.171.231, 2001:470:e0d4::e7
Connecting to issues.asterisk.org|76.164.171.231|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1749 (1.7K) [text/plain]
Saving to: `STDOUT'
100%[================================================================================================================>]
1,749 --.-K/s in 0s
2011-04-11 17:07:36 (7.79 MB/s) - `-' saved [1749/1749]
can't find file to patch at input line 23
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From f86080371ffff20f44adf21d1df24d3e00918c44 Mon Sep 17 00:00:00 2001
|From: Shaun Ruffell <sruffell at digium.com>
|Date: Sat, 9 Apr 2011 18:10:51 -0500
|Subject: [PATCH] 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
|
|Signed-off-by: Shaun Ruffell <sruffell at digium.com>
|---
| drivers/dahdi/Kbuild | 5 +++++
| include/dahdi/kernel.h | 2 ++
| 2 files changed, 7 insertions(+), 0 deletions(-)
|
|diff --git a/drivers/dahdi/Kbuild b/drivers/dahdi/Kbuild
|index ec881dc..ec029a6 100644
|--- a/drivers/dahdi/Kbuild
|+++ b/drivers/dahdi/Kbuild
--------------------------
File to patch:
Issue History
Date Modified Username Field Change
======================================================================
2011-04-11 11:07 quadra Note Added: 0133597
======================================================================
More information about the asterisk-bugs
mailing list