[asterisk-bugs] [DAHDI-linux 0017382]: [patch] Failure to include semaphore.h breaks compilation with >2.6.34 kernels (2.6.35-rc0)

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 24 13:27:51 CDT 2010


The following issue has been set as RELATED TO issue 0017383. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17382 
====================================================================== 
Reported By:                Chainsaw
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   17382
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
JIRA:                        
Reviewboard Link:            
====================================================================== 
Date Submitted:             2010-05-24 10:56 CDT
Last Modified:              2010-05-24 13:27 CDT
====================================================================== 
Summary:                    [patch] Failure to include semaphore.h breaks
compilation with >2.6.34 kernels (2.6.35-rc0)
Description: 
DAHDI relied on other headers to drag in semaphore.h, this is no longer the
case since:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3142788b7967ccfd2f1813ee9e11aeb1e1cf7de2

The result is:
In file included from
/var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/voicebus/GpakApi.c:36:
/var/tmp/portage/net-misc/dahdi-2.3.0/work/dahdi-linux-2.3.0/drivers/dahdi/voicebus/GpakCust.h:114:
error: field ‘sem’ has incomplete type

Patching the header to include semaphore.h as it should always have done
will not hurt older kernels.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017383 [patch] usb_buffer_free/alloc renamed i...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-24 13:27 tzafrir        Relationship added       related to 0017383  
======================================================================




More information about the asterisk-bugs mailing list