I'm trying to make my Asterisk run on a Debian Wheezy. In order to make my B100 work I have to compile dahdi-hfcs as I have always done with Linux 2.x but Linux 3.0 gives problems after launching the make command:
/usr/src/dahdi-hfcs-2011-10-30/drivers/dahdi/dahdi.h: In function ‘get_span’:
/usr/src/dahdi-hfcs-2011-10-30/drivers/dahdi/dahdi.h:48:2: error: implicit declaration of function ‘try_module_get’ [-Werror=implicit-function-declaration]
/usr/src/dahdi-hfcs-2011-10-30/drivers/dahdi/dahdi.h: In function ‘put_span’:
/usr/src/dahdi-hfcs-2011-10-30/drivers/dahdi/dahdi.h:53:2: error: implicit declaration of function ‘module_put’ [-Werror=implicit-function-declaration]
/usr/src/dahdi-hfcs-2011-10-30/drivers/dahdi/dahdi-sysfs.c: At top level:
...
Any hint?
Hi, adding #include <linux/module.h> in /usr/src/dahdi-hfcs-2011-10-30/drivers/dahdi/dahdi.h makes the code to be compiled but it does not work... when I try to insert the module I get:
Unknown symbol in module