[asterisk-bugs] [DAHDI-linux 0014166]: Fails to Compile on Fedora FC9 with Kernel 2.6.27 - related to new hrtimer

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jan 21 09:17:05 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14166 
====================================================================== 
Reported By:                nterry
Assigned To:                sruffell
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   14166
Category:                   General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-01-02 16:23 CST
Last Modified:              2009-01-21 09:17 CST
====================================================================== 
Summary:                    Fails to Compile on Fedora FC9 with Kernel 2.6.27 -
related to new hrtimer
Description: 
I'm trying to upgrade from dahdi-linux-2.0.0 to dahdi-linux-2.1.0.3. I get
compile errors which seem to relater to the new hrtimer interface. I'm
running FC9 with kernel 2.6.27.9. See the output below:

[root at homepc dahdi-linux-2.1.0.3]# uname -r
2.6.27.9-73.fc9.x86_64
[root at homepc dahdi-linux-2.1.0.3]# make
make -C /lib/modules/2.6.27.9-73.fc9.x86_64/build ARCH=x86_64
SUBDIRS=/usr/src/Asterisk/dahdi-linux-2.1.0.3/drivers/dahdi
DAHDI_INCLUDE=/usr/src/Asterisk/dahdi-linux-2.1.0.3/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/kernels/2.6.27.9-73.fc9.x86_64'
CC [M] /usr/src/Asterisk/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dummy.o
/usr/src/Asterisk/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dummy.c:94:
error: redefinition of ‘hrtimer_get_expires’
include/linux/hrtimer.h:250: error: previous definition of
‘hrtimer_get_expires’ was here
/usr/src/Asterisk/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dummy.c:99:
error: redefinition of ‘hrtimer_set_expires’
include/linux/hrtimer.h:231: error: previous definition of
‘hrtimer_set_expires’ was here
make[2]: ***
[/usr/src/Asterisk/dahdi-linux-2.1.0.3/drivers/dahdi/dahdi_dummy.o] Error
1
make[1]: *** [_module_/usr/src/Asterisk/dahdi-linux-2.1.0.3/drivers/dahdi]
Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.27.9-73.fc9.x86_64'
make: *** [modules] Error 2
[root at homepc dahdi-linux-2.1.0.3]#

I don't know enough about this to fix it, but I can test it if required

Thanks
====================================================================== 

---------------------------------------------------------------------- 
 (0098315) svnbot (reporter) - 2009-01-21 09:17
 http://bugs.digium.com/view.php?id=14166#c98315 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 5778

U   linux/trunk/drivers/dahdi/Kbuild
U   linux/trunk/drivers/dahdi/dahdi_dummy.c

------------------------------------------------------------------------
r5778 | tzafrir | 2009-01-21 09:17:05 -0600 (Wed, 21 Jan 2009) | 8 lines

Fix version in dahdi_dummy workaround. 

Followup to http://bugs.digium.com/view.php?id=14166 .

Also note that this is specific to some Fedora versions.
See e.g.
http://cvs.fedoraproject.org/viewvc/rpms/kernel/F-10/kernel.spec?r1=1.1206.2.2&r2=1.1206.2.3

------------------------------------------------------------------------

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-01-21 09:17 svnbot         Checkin                                      
2009-01-21 09:17 svnbot         Note Added: 0098315                          
======================================================================




More information about the asterisk-bugs mailing list