[Home]

Summary:ASTERISK-07075: pciradio.c does not compile with linux 2.6
Reporter:Eduard Llull (ellull)Labels:
Date Opened:2006-06-01 10:29:48Date Closed:2011-06-07 14:08:09
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When executing make linux26 to compile zaptel drivers, it fails when trying to compile pciradio.c with the following error:
 CC [M]  /root/src/asterisk/zaptel-1.2.6/pciradio.o
/root/src/asterisk/zaptel-1.2.6/pciradio.c:1811: error: parse error before "int"
/root/src/asterisk/zaptel-1.2.6/pciradio.c:1811: warning: type defaults to `int' in declaration of `module_param'
/root/src/asterisk/zaptel-1.2.6/pciradio.c:1811: warning: function declaration isn't a prototype
/root/src/asterisk/zaptel-1.2.6/pciradio.c:1811: warning: data definition has no type or storage class

The source lacks the include of moduleparams.h headers. It is solved by adding the following piece of code near the top of the file:
#ifdef LINUX26
#include <linux/moduleparam.h>
#endif
Comments:By: Kevin P. Fleming (kpfleming) 2006-06-01 15:55:59

There is no version 1.2.8 of Zaptel.

This is not a problem on all of our 2.6 kernel based test systems, with many different distributions and kernel revisions. Most likely you have an old 2.6 kernel release with partially broken headers.