John Covici
2006-Jan-05 08:05 UTC
[Asterisk-Users] zaptel does not compile with kernel 2.6.15
Hi. If I use kernel 2.6.15 I cannot compile zaptel modules. I get the following error(s) using gcc4. CC [M] /usr/src/zaptel/zaptel.o /usr/src/zaptel/zaptel.c: In function 'zt_ppp_xmit': /usr/src/zaptel/zaptel.c:1533: warning: comparison of distinct pointer types lacks a cast /usr/src/zaptel/zaptel.c: In function 'zt_register': /usr/src/zaptel/zaptel.c:4448: warning: passing argument 2 of 'class_device_create' makes pointer from integer without a cast /usr/src/zaptel/zaptel.c:4448: warning: passing argument 3 of 'class_device_create' makes integer from pointer without a cast /usr/src/zaptel/zaptel.c:4448: warning: passing argument 4 of 'class_device_create' from incompatible pointer type /usr/src/zaptel/zaptel.c:4448: error: too few arguments to function 'class_device_create' /usr/src/zaptel/zaptel.c: In function 'zt_init': /usr/src/zaptel/zaptel.c:6507: warning: passing argument 2 of 'class_device_create' makes pointer from integer without a cast /usr/src/zaptel/zaptel.c:6507: warning: passing argument 3 of 'class_device_create' makes integer from pointer without a cast /usr/src/zaptel/zaptel.c:6507: warning: passing argument 4 of 'class_device_create' from incompatible pointer type /usr/src/zaptel/zaptel.c:6507: error: too few arguments to function 'class_device_create' /usr/src/zaptel/zaptel.c:6508: warning: passing argument 2 of 'class_device_create' makes pointer from integer without a cast /usr/src/zaptel/zaptel.c:6508: warning: passing argument 3 of 'class_device_create' makes integer from pointer without a cast /usr/src/zaptel/zaptel.c:6508: warning: passing argument 4 of 'class_device_create' from incompatible pointer type /usr/src/zaptel/zaptel.c:6508: error: too few arguments to function 'class_device_create' /usr/src/zaptel/zaptel.c:6509: warning: passing argument 2 of 'class_device_create' makes pointer from integer without a cast /usr/src/zaptel/zaptel.c:6509: warning: passing argument 3 of 'class_device_create' makes integer from pointer without a cast /usr/src/zaptel/zaptel.c:6509: warning: passing argument 4 of 'class_device_create' from incompatible pointer type /usr/src/zaptel/zaptel.c:6509: error: too few arguments to function 'class_device_create' /usr/src/zaptel/zaptel.c:6510: warning: passing argument 2 of 'class_device_create' makes pointer from integer without a cast /usr/src/zaptel/zaptel.c:6510: warning: passing argument 3 of 'class_device_create' makes integer from pointer without a cast /usr/src/zaptel/zaptel.c:6510: warning: passing argument 4 of 'class_device_create' from incompatible pointer type /usr/src/zaptel/zaptel.c:6510: error: too few arguments to function 'class_device_create' make[2]: *** [/usr/src/zaptel/zaptel.o] Error 1 make[1]: *** [_module_/usr/src/zaptel] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.15' make: *** [linux26] Error 2 Any assistance would be appreciated. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici covici@ccs.covici.com
Kevin P. Fleming
2006-Jan-05 08:20 UTC
[Asterisk-Users] zaptel does not compile with kernel 2.6.15
John Covici wrote:> Hi. If I use kernel 2.6.15 I cannot compile zaptel modules. I get > the following error(s) using gcc4.Without telling us exactly what version of Zaptel you are trying to build. your report is nearly useless. Zaptel was updated to take these API changes into account during the 2.6.15-rc2 timeframe, I believe, so the current Zaptel in Subversion should be able to compile.