[asterisk-bugs] [JIRA] (DAHLIN-390) DAHDI does not compile on kernels >= 5.6

Juan Carlos Castro y Castro (JIRA) noreply at issues.asterisk.org
Tue Jun 22 19:30:33 CDT 2021


Juan Carlos Castro y Castro created DAHLIN-390:
--------------------------------------------------

             Summary: DAHDI does not compile on kernels >= 5.6
                 Key: DAHLIN-390
                 URL: https://issues.asterisk.org/jira/browse/DAHLIN-390
             Project: DAHDI-Linux
          Issue Type: Bug
      Security Level: None
          Components: General
    Affects Versions: 3.1.0
         Environment: Ubuntu 20.04, do apt-get update && apt-get dist-upgrade so you end up with the latest kernel which is 5.8 at the time of this writing
            Reporter: Juan Carlos Castro y Castro
            Assignee: Keith Morgan
            Severity: Critical


Many functions that deal with the /proc filesystem had their prototypes changed; now they use a differently named structure, with differently named fields, which apperently does the same thing but does nor require a "owner" field.

This Stack Overflow answer may help: https://stackoverflow.com/a/64932529/110800

The output of make. This is the git version.

make -C /lib/modules/5.8.0-59-generic/build KBUILD_EXTMOD=/home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi DAHDI_INCLUDE=/home/jcastro/src/pbx/download/dahdi-linux/include DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-59-generic'
scripts/Makefile.lib:12: 'hostprogs-y' is deprecated. Please use 'hostprogs' instead
scripts/Makefile.lib:8: 'always' is deprecated. Please use 'always-y' instead
scripts/Makefile.lib:12: 'hostprogs-y' is deprecated. Please use 'hostprogs' instead
  CC [M]  /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.o
/home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c: In function ‘xbus_new’:
/home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c:1636:6: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1636 |      &xbus_read_proc_ops,
      |      ^~~~~~~~~~~~~~~~~~~
      |      |
      |      const struct file_operations *
In file included from /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c:28:
./include/linux/proc_fs.h:103:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
  103 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
/home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c:1647:6: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 1647 |      &proc_xbus_command_ops, xbus);
      |      ^~~~~~~~~~~~~~~~~~~~~~
      |      |
      |      const struct file_operations *
In file included from /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c:28:
./include/linux/proc_fs.h:103:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
  103 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
/home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c: In function ‘xbus_core_init’:
/home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c:2067:12: error: passing argument 4 of ‘proc_create_data’ from incompatible pointer type [-Werror=incompatible-pointer-types]
 2067 |            &xpp_proc_read_ops, NULL);
      |            ^~~~~~~~~~~~~~~~~~
      |            |
      |            const struct file_operations *
In file included from /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.c:28:
./include/linux/proc_fs.h:103:31: note: expected ‘const struct proc_ops *’ but argument is of type ‘const struct file_operations *’
  103 | extern struct proc_dir_entry *proc_create_data(const char *, umode_t,
      |                               ^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:286: /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp/xbus-core.o] Error 1
make[2]: *** [scripts/Makefile.build:515: /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi/xpp] Error 2
make[1]: *** [Makefile:1785: /home/jcastro/src/pbx/download/dahdi-linux/drivers/dahdi] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-59-generic'
make: *** [Makefile:74: modules] Error 2



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list