Summary: | DAHTOOL-00077: 'DAHDI linux complete' does not compile | ||
Reporter: | Christian Hesse (chesse) | Labels: | |
Date Opened: | 2017-04-22 15:53:08 | Date Closed: | 2019-06-06 09:47:55 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | General |
Versions: | 2.10.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | ARCH linux, Kernel 4.10.11-1-ARCH | Attachments: | |
Description: | "DAHDI linux complete" package as available on the ASTERISK homepage (version 2.11.1) stops compiling with errors when building the tools:
--- SNIP --- CHECK xpp_sync CHECK lsdahdi CHECK xpp_blink CHECK dahdi_genconf CHECK dahdi_hardware CHECK twinstar make[4]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/xpp' make[3]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/xpp' Making all in doc make[3]: Entering directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/doc' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/doc' Making all in hotplug make[3]: Entering directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/hotplug' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/hotplug' Making all in ppp make[3]: Entering directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/ppp' CC dahdi_la-dahdi.lo dahdi.c:46:24: fatal error: dahdi/user.h: No such file or directory #include <dahdi/user.h> ^ compilation terminated. make[3]: *** [Makefile:481: dahdi_la-dahdi.lo] Error 1 make[3]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools/ppp' make[2]: *** [Makefile:1113: all-recursive] Error 1 make[2]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools' make[1]: *** [Makefile:662: all] Error 2 make[1]: Leaving directory '/home/user/asterisk/dahdi-linux-complete-2.11.1+2.11.1/tools' make: *** [Makefile:11: all] Error 2 --- SNAP --- Reason is, that the autoconf framework does not handle well relative paths given in the "--with-dahdi" option, which is specified in the top-level Makefile. To work around, change in the top level Makefile the line (cd tools && [ -f config.status ] || ./configure --with-dahdi=../linux) to (cd tools && [ -f config.status ] || ./configure --with-dahdi=/put/absolute/path/here/linux) for not having relative paths but absolute paths. Of course this does not solve this issue. P.S.: JIRE does not know of version 2.11.1, so I had to falsely state "2.10.0" as affected version. | ||
Comments: | By: Keith Morgan (kmorgan) 2019-06-06 09:47:55.159-0500 Support in dahdi for 4.x kernels added in 3.0.0 and 5.x kernels in 3.1.0-rc1 |