Skip Menu |
 

This queue is for tickets about the Devel-CheckLib CPAN distribution.

Report information
The Basics
Id: 114294
Status: open
Priority: 0/
Queue: Devel-CheckLib

People
Owner: Nobody in particular
Requestors: fernando.osx [...] gmail.com
Cc: pali [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.12



MIME-Version: 1.0
X-Spam-Status: No, score=-2.698 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
X-Spam-Flag: NO
Content-Type: multipart/alternative; boundary="001a1144c44cbe35e005326ead01"
Message-ID: <CALDOL_6ZA=F0nKh-soaB_ELypVfV=rvaBb4J+ev8WwVKOeYh_A [...] mail.gmail.com>
X-Received: by 10.55.20.37 with SMTP id e37mr19994813qkh.132.1462825826267; Mon, 09 May 2016 13:30:26 -0700 (PDT)
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -2.698
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id A689B2403D3 for <cpan-bug+Devel-CheckLib [...] hipster.bestpractical.com>; Mon, 9 May 2016 16:30:49 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5RQc1rLz2VpB for <cpan-bug+Devel-CheckLib [...] hipster.bestpractical.com>; Mon, 9 May 2016 16:30:44 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id C7CDC2403E5 for <bug-Devel-CheckLib [...] rt.cpan.org>; Mon, 9 May 2016 16:30:38 -0400 (EDT)
Received: (qmail 13569 invoked by alias); 9 May 2016 20:30:36 -0000
Received: from mail-qk0-f180.google.com (HELO mail-qk0-f180.google.com) (209.85.220.180) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Mon, 09 May 2016 13:30:30 -0700
Received: by mail-qk0-f180.google.com with SMTP id n62so27499129qkc.2 for <bug-Devel-CheckLib [...] rt.cpan.org>; Mon, 09 May 2016 13:30:29 -0700 (PDT)
Received: by 10.55.139.68 with HTTP; Mon, 9 May 2016 13:30:26 -0700 (PDT)
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Delivered-To: cpan-bug+Devel-CheckLib [...] hipster.bestpractical.com
Subject: assert_lib fails if gcc output is not executable
Return-Path: <fernando.osx [...] gmail.com>
X-RT-Mail-Extension: devel-checklib
X-Original-To: cpan-bug+Devel-CheckLib [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=NsluOf0+CCDlSS2fYUXBsD47d6+Y0y4FTciTAn6EEKg=; b=z//QcB7zi6fTk6TbZAIhvbZgySZml5WPCnvmXbjVU6i4oj5tHAQzD059kjIfwqdbXt FCIYxDlmNT8cjVxSytp5vHeLXtBOlM1KFcs+IweG2bAwwyAL/Ow6Qnmjua3vdkSlDvaR FKv7vbMfx2dnrsIyDUNCx8yg1XMaO4dazxve2+bAnZJNi9zvtMZP2bSvBsaHtbpp9Hvi thI7XEngr63Y4VkQypz7Rnaj1o09RHaxrOeFRW0CKi9JIk2gSXcM8MA0ER9DQ7m23TFi SkIxnisxZFllo7+V6S+xHtyjzOfefy0OzTzuh72peMePFBfZSIonYX7efRE39CUGCf7j FEsQ==
X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=NsluOf0+CCDlSS2fYUXBsD47d6+Y0y4FTciTAn6EEKg=; b=eAwHwu7bcLOphbsVXULrOm8u7Jb9kJ1lNFoawlu+LA+fcOE7PwwtfS/V7wmIZ5gv5s abtDBMlK0OGsHOt0cnlAA9AT5U6quf25OegxFo1yoCP/dBEle2Z8ElDP723jTZRRbyLw hG1F/zYeUsNJzuHqaCrWDLzG5PXlN9QPocBQWbTmS+tEw5fQyEpuGeiuZkh+KHMLbDu+ YTeX/NRfTjyShvZMeAWX9i5qjaLPokh5f+/g8UTOxDIsXsnpr51PPTNEKs0RD9pU+J4T vmAkScBZXEvkNJCLqpuhI1+irlgT0SR1wclNZX7S5M+qD/PHcUOsn3opdtCpCiWbB2jL MaOQ==
Date: Mon, 9 May 2016 17:30:26 -0300
X-Spam-Level:
To: bug-Devel-CheckLib [...] rt.cpan.org
From: "Fernando O." <fernando.osx [...] gmail.com>
X-GM-Message-State: AOPr4FX1KFADjPr/EN1EEKB/YlZntQ6WMf0MzBfu6wP9LNQd5ISWeoyY4+dSnYsvmW8eW3YiY+2Hml4me7M9xA==
X-RT-Interface: Email
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 720
Download (untitled) / with headers
text/plain 720b
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
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 1084
MIME-Version: 1.0
In-Reply-To: <CALDOL_6ZA=F0nKh-soaB_ELypVfV=rvaBb4J+ev8WwVKOeYh_A [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CALDOL_6ZA=F0nKh-soaB_ELypVfV=rvaBb4J+ev8WwVKOeYh_A [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-8993-1463338400-1101.114294-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 866
Download (untitled) / with headers
text/plain 866b
On 2016-05-09 16:30:51, fernando.osx@gmail.com wrote: Show quoted text
> 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");
Or better: use perl's builtin chmod. Show quoted text
> Just after lines 353 and 411 above. > > Fernando Oscar Schmitt
MIME-Version: 1.0
In-Reply-To: <CALDOL_6ZA=F0nKh-soaB_ELypVfV=rvaBb4J+ev8WwVKOeYh_A [...] mail.gmail.com>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CALDOL_6ZA=F0nKh-soaB_ELypVfV=rvaBb4J+ev8WwVKOeYh_A [...] mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-28281-1527758389-1796.114294-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 933
Download (untitled) / with headers
text/plain 933b
On Mon May 09 16:30:51 2016, fernando.osx@gmail.com wrote: Show quoted text
> 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
I created pull request which fixes this problem: https://github.com/mattn/p5-Devel-CheckLib/pull/26
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-28281-1527758389-1796.114294-0-0 [...] rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <CALDOL_6ZA=F0nKh-soaB_ELypVfV=rvaBb4J+ev8WwVKOeYh_A [...] mail.gmail.com> <rt-4.0.18-28281-1527758389-1796.114294-0-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-25020-1527790303-1254.114294-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 1016
Download (untitled) / with headers
text/plain 1016b
On Štv Máj 31 05:19:49 2018, PALI wrote: Show quoted text
> On Mon May 09 16:30:51 2016, fernando.osx@gmail.com wrote:
> > 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
> > I created pull request which fixes this problem: > https://github.com/mattn/p5-Devel-CheckLib/pull/26
It is included in Devel::CheckLib 1.12


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.