[Home]

Summary:DAHLIN-00286: DAHDI driver wctdm24xxp does not compile with GCC 3.4.4
Reporter:Guenther Kelleter (gkelleter)Labels:
Date Opened:2012-03-26 05:14:17Date Closed:2012-03-29 10:34:22
Priority:MajorRegression?
Status:Closed/CompleteComponents:wctdm24xxp
Versions:2.5.0.2 2.6.0 2.6.1 Frequency of
Occurrence
Constant
Related
Issues:
Environment:GCC 3.4.4Attachments:( 0) wctdm24xxp-inline.patch
( 1) wctdm24xxp-inline.patch
Description:I get this error compiling DAHDI drivers with GCC 3.4.4.
{noformat}
|   CC [M]  /home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi/wctdm24xxp/base.o
| /home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi/wctdm24xxp/base.c: In function `cmd_checkisr':
| /home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi/wctdm24xxp/base.c:915: sorry, unimplemented: inlining failed in call to 'wctdm_setreg_intr': function body not available
| /home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi/wctdm24xxp/base.c:920: sorry, unimplemented: called from here
| make[3]: *** [/home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi/wctdm24xxp/base.o] Error 1
| make[2]: *** [/home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi/wctdm24xxp] Error 2
| make[1]: *** [_module_/home/gke/DOCS-PBX/MT/build/tmp/work/dahdi-linux-be-2.5.0.2-r0/dahdi-linux-be-2.5.0.2/drivers/dahdi] Error 2
| make[1]: Leaving directory `/home/gke/DOCS-PBX/MT/build/tmp/work/viepcn-kernel-2.6.29-2/linux-2.6.29'
| make: *** [modules] Error 2
{noformat}

gcc 3.4.4 does not allow for forward declaration of inline functions. Please apply the patch.
Comments:By: Shaun Ruffell (sruffell) 2012-03-29 10:34:22.826-0500

Committed onto [trunk|http://svnview.digium.com/svn/dahdi?view=revision&revision=10613], [2.6|http://svnview.digium.com/svn/dahdi?view=revision&revision=10614], and [2.5|http://svnview.digium.com/svn/dahdi?view=revision&revision=10615] branches. Thank you.