[Home]

Summary:DAHLIN-00375: dahdi fails to build on linux >= 5.4.1 due to missing `pci-aspm.h`
Reporter:Andrew Siplas (asiplas)Labels:patch
Date Opened:2020-03-04 15:07:16.000-0600Date Closed:2020-03-04 15:27:16.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:dahdi (the module)
Versions:3.1.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Linux home 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13) x86_64 GNU/LinuxAttachments:( 0) DAHLIN-375.patch
Description:dahdi fails to build on kernel >= 5.4.1 after function prototypes and definitions formerly in *pci-aspm.h* were moved to *pci.h*.

See also [https://lore.kernel.org/linux-acpi/20190827095620.11213-1-kw@linux.com/]

{noformat}
In file included from /home/build/src/dahdi-linux/drivers/dahdi/oct612x/oct612x-user.c:28:
/home/build/src/dahdi-linux/include/dahdi/kernel.h:62:10: fatal error: linux/pci-aspm.h: No such file or directory
  62 | #include <linux/pci-aspm.h>
     |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
{noformat}
Comments:By: Shaun Ruffell (sruffell) 2020-03-04 15:23:28.534-0600

The fix for this is currently on the next branch:

http://git.asterisk.org/gitweb/?p=dahdi/linux.git;a=commit;h=45ac6a30f922f4eef54c0120c2a537794b20cf5c

The next branch current covers through kernel 5.6. It is just awaiting test by Sangoma before release.

By: Andrew Siplas (asiplas) 2020-03-04 15:27:01.192-0600

Nevermind this was a clone of [https://issues.asterisk.org/jira/browse/DAHLIN-372] which I didn't notice.

By: Andrew Siplas (asiplas) 2020-03-04 15:27:16.454-0600

[https://issues.asterisk.org/jira/browse/DAHLIN-372]