Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Errno_pm.PL:135 #15822

Closed
p5pRT opened this issue Jan 21, 2017 · 8 comments
Closed

Bug: Errno_pm.PL:135 #15822

p5pRT opened this issue Jan 21, 2017 · 8 comments

Comments

@p5pRT
Copy link

p5pRT commented Jan 21, 2017

Migrated from rt.perl.org#130614 (status was 'rejected')

Searchable as RT130614$

@p5pRT
Copy link
Author

p5pRT commented Jan 21, 2017

From sebastian.bw@freenet.de

I can not figure out how to report a bug to perl ... but you for sure.

In file Errno_pm.PL​: line 135 it should be​:

135​: my ($linux_errno_h) = grep { -e $_ } map { "$_/asm/errno.h" }

Linux has its errno.h in asm/errno.h else you get an error that it could not be
found.

@p5pRT
Copy link
Author

p5pRT commented Jan 22, 2017

From @jkeenan

On Sat, 21 Jan 2017 20​:42​:51 GMT, sebastian.bw@​freenet.de wrote​:

I can not figure out how to report a bug to perl ... but you for sure.

In file Errno_pm.PL​: line 135 it should be​:

135​: my ($linux_errno_h) = grep { -e $_ } map { "$_/asm/errno.h" }

Linux has its errno.h in asm/errno.h else you get an error that it
could not be
found.

I don't know enough about Linux header files to agree or disagree with your main point, but I note that on my Ubuntu Linux machine, there is no /usr/include/asm directory​:

#####
$ !11
find /usr/include -type f -name 'errno.h' | xargs ls -l
-rw-r--r-- 1 root root 5585 Jan 6 19​:27 /usr/include/asm-generic/errno.h
-rw-r--r-- 1 root root 2367 Nov 16 17​:43 /usr/include/errno.h
-rw-r--r-- 1 root root 23 Jan 6 19​:27 /usr/include/linux/errno.h
-rw-r--r-- 1 root root 31 Jan 6 19​:27 /usr/include/x86_64-linux-gnu/asm/errno.h
-rw-r--r-- 1 root root 2145 Nov 16 17​:43 /usr/include/x86_64-linux-gnu/bits/errno.h
-rw-r--r-- 1 root root 19 Nov 16 17​:43 /usr/include/x86_64-linux-gnu/sys/errno.h
#####
--
James E Keenan (jkeenan@​cpan.org)

@p5pRT
Copy link
Author

p5pRT commented Jan 22, 2017

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented Jan 22, 2017

From sebastian.bw@freenet.de

Am Sunday 22 January 2017 14​:58​:12 schrieb James E Keenan via RT​:

On Sat, 21 Jan 2017 20​:42​:51 GMT, sebastian.bw@​freenet.de wrote​:

I can not figure out how to report a bug to perl ... but you for sure.

In file Errno_pm.PL​: line 135 it should be​:

135​: my ($linux_errno_h) = grep { -e $_ } map { "$_/asm/errno.h" }

Linux has its errno.h in asm/errno.h else you get an error that it
could not be
found.

I don't know enough about Linux header files to agree or disagree with your
main point, but I note that on my Ubuntu Linux machine, there is no
/usr/include/asm directory​:

#####
$ !11
find /usr/include -type f -name 'errno.h' | xargs ls -l
-rw-r--r-- 1 root root 5585 Jan 6 19​:27 /usr/include/asm-generic/errno.h
-rw-r--r-- 1 root root 2367 Nov 16 17​:43 /usr/include/errno.h
-rw-r--r-- 1 root root 23 Jan 6 19​:27 /usr/include/linux/errno.h
-rw-r--r-- 1 root root 31 Jan 6 19​:27
/usr/include/x86_64-linux-gnu/asm/errno.h -rw-r--r-- 1 root root 2145 Nov
16 17​:43 /usr/include/x86_64-linux-gnu/bits/errno.h -rw-r--r-- 1 root root
19 Nov 16 17​:43 /usr/include/x86_64-linux-gnu/sys/errno.h #####

Yes, include linux/errno.h, it includes asm/errno.h and nothing else on a 32 bit
linux !

@p5pRT
Copy link
Author

p5pRT commented Jan 23, 2017

From @tonycoz

On Sat, 21 Jan 2017 12​:42​:51 -0800, sebastian.bw@​freenet.de wrote​:

I can not figure out how to report a bug to perl ... but you for sure.

In file Errno_pm.PL​: line 135 it should be​:

135​: my ($linux_errno_h) = grep { -e $_ } map { "$_/asm/errno.h" }

Linux has its errno.h in asm/errno.h else you get an error that it
could not be
found.

Which linux distribution are you running?

Both debian​:

tony@​mars​:.../docs/perl5$ cat /etc/debian_version
8.7
tony@​mars​:.../docs/perl5$ ls -l /usr/include/errno.h
-rw-r--r-- 1 root root 2367 Nov 28 15​:22 /usr/include/errno.h

and Redhat derived​:

$ cat /etc/redhat-release
CentOS release 6.6 (Final)
$ ls -l /usr/include/errno.h
-rw-r--r-- 1 root root 2452 May 10 2016 /usr/include/errno.h

have errno.h in the places we look.

I suspect we should be searching libpth as well as loclibpth.

Tony

@p5pRT
Copy link
Author

p5pRT commented Jan 23, 2017

From @jhi

have errno.h in the places we look.

I suspect we should be searching libpth as well as loclibpth.

Or use the output of

echo "#include <errno.h>"|cc -E -|awk '/^# [1-9]* "\//{print $3}'|sort -u

or its moral equivalent, modulo portability concerns.

@p5pRT p5pRT closed this as completed Mar 28, 2017
@p5pRT
Copy link
Author

p5pRT commented Mar 28, 2017

@iabyn - Status changed from 'open' to 'rejected'

@p5pRT
Copy link
Author

p5pRT commented Mar 28, 2017

From @iabyn

On Mon, Jan 23, 2017 at 04​:16​:05AM -0800, Jarkko Hietaniemi via RT wrote​:

have errno.h in the places we look.

I suspect we should be searching libpth as well as loclibpth.

Or use the output of

echo "#include <errno.h>"|cc -E -|awk '/^# [1-9]* "\//{print $3}'|sort -u

or its moral equivalent, modulo portability concerns.

Given that the OP has failed to respond showing what distribution is in
use, and what location(s) errno.h can be found at one that distribution,
I'm marking this ticket as rejected.

--
In England there is a special word which means the last sunshine
of the summer. That word is "spring".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant