Can't compile Zaptel driver under feisty with a 2.6.20.16 kernel

Bug #120017 reported by scramatte
10
Affects Status Importance Assigned to Milestone
zaptel (Ubuntu)
Fix Released
Low
Marco Rodrigues

Bug Description

Due to change on kernel tree it's imposible to compile properly zaptel driver
against a 2.6.20.16 kernel under Ubuntu Feisty 7.0.4

Module assistant start to compile but hang because search for linux/config.h instead of linux/autoconf.h
Seems that on a Unbuntu 6.0.6 with 2.6.18 kernel Zaptel Driver compile well ...

‘request_irq’ desde un tipo de puntero incompatible
  CC [M] /usr/src/modules/zaptel/vzaphfc/vzaphfc_main.o
/usr/src/modules/zaptel/vzaphfc/vzaphfc_main.c:24:26: error: linux/config.h: No existe el fichero ó directorio
/usr/src/modules/zaptel/vzaphfc/vzaphfc_main.c: En la función ‘hfc_probe’:
/usr/src/modules/zaptel/vzaphfc/vzaphfc_main.c:1684: aviso: se pasa el argumento 2 de ‘request_irq’ desde un tipo de puntero incompatible
make[5]: *** [/usr/src/modules/zaptel/vzaphfc/vzaphfc_main.o] Error 1
make[4]: *** [/usr/src/modules/zaptel/vzaphfc] Error 2
make[3]: *** [_module_/usr/src/modules/zaptel] Error 2
make[3]: se sale del directorio `/usr/src/linux-headers-2.6.20-16-generic'
make[2]: *** [linux26] Error 2
make[2]: se sale del directorio `/usr/src/modules/zaptel'
make[1]: *** [binary-modules] Error 2
make[1]: se sale del directorio `/usr/src/modules/zaptel'
make: *** [kdist_build] Error 2

I hope that you will fix this bug asap.
Regards

Revision history for this message
Chuck Short (zulcss) wrote :

I dont see this getting fixed for feisty. If the upstream drivers work then you will have to compile them yourself.

Sorry

Revision history for this message
Alessandro Tanasi (jekil) wrote :

This package can't work in feisty due to this issue.
Upstream released a new svn revision, please upgrade because this bug is critical for the people that do VoIP with Ubuntu. http://lists.digium.com/pipermail/asterisk-dev/2006-November/024678.html

Changed in zaptel:
assignee: nobody → motu
status: New → Confirmed
Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

Why won't this get fixed for feisty? It's a shame for something like this to not work right out of the gate. Did this ever build on feisty?

Revision history for this message
Brian J. Murrell (brian-interlinx) wrote :

It's a one line patch for heaven's sake:

--- /usr/src/modules/zaptel/vzaphfc/vzaphfc_main.c 2007-09-26 14:28:42.000000000 -0400
+++ /usr/src/modules/zaptel/vzaphfc/vzaphfc_main.c.dist 2007-09-26 14:33:39.000000000 -0400
@@ -21,7 +21,7 @@

 #include <linux/spinlock.h>
 #include <linux/init.h>
-#include <linux/autoconf.h>
+#include <linux/config.h>
 #include <linux/pci.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>

Now just to figure out how to make m-a use the patched copy of sources. I'm an m-a idiot still.

Revision history for this message
blackjack21 (jjack) wrote :

To successfully build and install the zaptel drivers under feisty, I added a link in the /usr/src/linux/include/linux/ directory config.h -> autoconf.h and I followed lefcase's instructions to install chkconfig at this link: http://ubuntuforums.org/showthread.php?t=20583

The only change I had to make from his instructions was the version of libnewt, from libnewt0.51 to libnewt0.52.

After that I was able to build, install, and configure the zaptel drivers.

Revision history for this message
Robby (robbyd) wrote :

Hi guys,

I also had problems compiling this module under edgy tribe 5, using the command: module-assistant -t a-i zaptel
The error I got was "/usr/src/modules/zaptel/ztd-eth.c:176: error: "struct sk_buff" has no member named "nh""

I fixed it by applying the following patch to the ztd-eth.c code: http://svn.digium.com/view/zaptel/branches/1.4/ztd-eth.c?sortby=rev&r1=2044&r2=2676&pathrev=2676

So from this it looks like this package needs to be updated to at least rev 2676 to work with the newest kernels.

Revision history for this message
Marco Rodrigues (gothicx) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in the latest development version of Ubuntu - the Hardy Heron.

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at [WWW] https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Changed in zaptel:
assignee: motu → gothicx
importance: Undecided → Low
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.