[Home]

Summary:ASTERISK-01900: wcfxs.c fails to build on 2.6, missing interrupt.h?
Reporter:Dorian Gray (dorian)Labels:
Date Opened:2004-06-25 18:49:58Date Closed:2004-09-25 02:40:22
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:58545 Jun 25 19:29 wcfxs.c

 CC [M]  /var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.o
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:715: error: syntax error before "wcfxs_interrupt"
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:719: warning: return type defaults to `int'
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c: In function `wcfxs_interrupt':
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:729: error: `IRQ_NONE' undeclared (first use in this function)
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:729: error: (Each undeclared identifier is reported only once
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:729: error: for each function it appears in.)
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:739: warning: implicit declaration of function `IRQ_RETVAL'
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c: In function `wcfxs_init_one':
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:1935: warning: implicit declaration of function `free_irq'
/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.c:1949: warning: implicit declaration of function `request_irq'
make[2]: *** [/var/tmp/portage/zaptel-cvs-0.5/work/zaptel/wcfxs.o] Error 1
make[1]: *** [_module_/var/tmp/portage/zaptel-cvs-0.5/work/zaptel] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.7-mm2'
make: *** [linux26] Error 2


****** ADDITIONAL INFORMATION ******

adding
#include <linux/interrupt.h>
to wcfxs.c makes things shiny again.
Comments:By: Mark Spencer (markster) 2004-06-25 19:08:34

Builds fine on my box on 2.4 and 2.6, but I went ahead and committed it.  I have no idea what version of code portage is working off of.