develooper Front page | perl.perl5.porters | Postings from July 2008

t/op/exec.t fails on Fedora

Thread Next
From:
Amir E. Aharoni
Date:
July 3, 2008 12:48
Subject:
t/op/exec.t fails on Fedora
Message ID:
97f280ea0807030532n19043993t72993894925f198f@mail.gmail.com
I am trying to build Perl (
rsync://public.activestate.com/perl-current/ ) on Fedora 8,
2.6.24.7-92.fc8.

The test t/op/exec.t is failing on line 97. Apparently, running the
following code:

system { "lskdfj" } "lskdfj"';
[download]

... on Fedora sets $! to "Not a directory". Perl 5.8 on Ubuntu and
Perl 5.10 on Cygwin both set $! to "No such file or directory", which
would make the test pass.

Is it the expected behavior on Fedora?

I tried asking about it on perlmonks (
http://www.perlmonks.com/?node_id=695308 ). Moritz Lentz kindly
suggested running a C program that uses execl() and see what kind of
an error it produces. It produced "No such file or directory". Here's
the C code:

#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>

int main(int argc, char** argv) {
    execl("sadlfjsdf", "foo");
    printf("%s\n", strerror(errno)); # prints in the same environment
}

Also, it looks like something like this has been discussed once -
http://www.nntp.perl.org/group/perl.perl5.porters/2006/04/msg111460.html

But i don't see a solution there.

Thanks in advance.

-- 
Amir Elisha Aharoni

English - http://aharoni.wordpress.com
עברית - http://haharoni.wordpress.com

"We're living in pieces,
 I want to live in peace." - T. Moore

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About