Subject: | assert_lib fails if gcc output is not executable |
Date: | Mon, 9 May 2016 17:30:26 -0300 |
To: | bug-Devel-CheckLib [...] rt.cpan.org |
From: | "Fernando O." <fernando.osx [...] gmail.com> |
Package: Devel::CheckLib (1.07)
File: /usr/local/share/perl5/Devel/CheckLib.pm
Notice lines 353-354:
my $rv = $args{debug} ? system(@sys_cmd) : _quiet_system(@sys_cmd);
push @missing, $header if $rv != 0 || ! -x $exefile;
And lines 411-414:
my $rv = $args{debug} ? system(@sys_cmd) : _quiet_system(@sys_cmd);
if ($rv != 0 || ! -x $exefile) {
push @missing, $lib;
}
On some linux systems, the output of gcc (invoked in @sys_cmd) is NOT
executable by default. In this case, the test (-x $exefile) will fail even
if the file exists.
To work around this issue, add
system("chmod 755 $exefile");
Just after lines 353 and 411 above.
Fernando Oscar Schmitt