[Home]

Summary:DAHTOOL-00070: Compilation fails on CentOS 7 (file version 5.11)
Reporter:Xabier de Zuazo (zuazo)Labels:
Date Opened:2016-01-16 13:04:46.000-0600Date Closed:2016-02-22 09:18:30.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:
Versions:Frequency of
Occurrence
Constant
Related
Issues:
Environment:Version 2.11.0, CentOS Linux release 7.2.1511 (Core), Linux 3.10.0-327.4.4.el7.x86_64, file command 5.11-31.el7Attachments:( 0) 0001-xpp-Makefile.am-Fix-make-install-for-newer-versions-.patch
Description:Compiling version **2.11.0** from sources seems to fail at least on CentOS 7.

The error:

{noformat}
$ make
[...]
# make install
[...]
/usr/bin/install: cannot stat ‘./dahdi_registration.8’: No such file or directory
/usr/bin/install: cannot stat ‘./xpp_sync.8’: No such file or directory
/usr/bin/install: cannot stat ‘./lsdahdi.8’: No such file or directory
/usr/bin/install: cannot stat ‘./xpp_blink.8’: No such file or directory
/usr/bin/install: cannot stat ‘./dahdi_genconf.8’: No such file or directory
/usr/bin/install: cannot stat ‘./dahdi_hardware.8’: No such file or directory
/usr/bin/install: cannot stat ‘./twinstar.8’: No such file or directory
{noformat}

The issue is due to the description for Perl scripts reported by the `file` command version 5.11:

{noformat}
[root@centos-6.7 xpp]# file xpp_blink
xpp_blink: a /usr/bin/perl -w script text executable
[root@centos-6.7 xpp]# file --version
file-5.04
{noformat}

{noformat}
[root@centos-7.2 xpp]# file xpp_blink
xpp_blink: Perl script, ASCII text executable
[root@centos-7.2 xpp]# file -version
file-5.11
{noformat}

Because of this man pages for perl scripts are not generated and `make install` fails.

A possible patch:

{code}
diff --git a/xpp/Makefile.am b/xpp/Makefile.am
index d06fffe..1ee76d5 100644
--- a/xpp/Makefile.am
+++ b/xpp/Makefile.am
@@ -24,7 +24,7 @@ if PERL
SUBDIRS                += perl_modules

%.8: %
-       @if file "$^" | cut -d: -f2 | grep -q perl; then \
+       @if file "$^" | cut -d: -f2 | grep -i -q perl; then \
               if pod2man --section 8 $^ > $@; then \
                       echo "  GEN      $@"; \
               else \
{code}
Comments:By: Sean Bright (seanbright) 2016-02-01 13:59:52.705-0600

I'm seeing the same problem on Ubuntu 14.04 and the suggested patch fixes the issue for me as well

By: Sean Bright (seanbright) 2016-02-01 14:21:31.021-0600

Suggested patch by Xabier de Zuazo which I've confirmed fixes the problem.

By: Sean Bright (seanbright) 2016-02-22 09:18:30.965-0600

Fixed by http://git.asterisk.org/gitweb/?p=dahdi/tools.git;a=commit;h=6057ef25e984a2c7f8327b872233ba610b9aabe6

It doesn't look like the DADHI developers are actually using JIRA anymore. Is there a new location to report bugs?