GNU bug report logs -
#20979
../lib/set-permissions.c:288:27: error: 'mode' undeclared
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20979 in the body.
You can then email your comments to 20979 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Sat, 04 Jul 2015 15:57:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
John David Anglin <dave.anglin <at> bell.net>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Sat, 04 Jul 2015 15:57:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The following error occurs building coreutils-8.24 on hppa2.0w-hp-hpux11.11 with gcc-5:
CC lib/set-permissions.o../lib/set-permissions.c: In function 'context_acl_from_mode':
../lib/set-permissions.c:288:27: error: 'mode' undeclared (first use in this function)
ctx->entries[0].mode = (mode >> 6) & 7;
^
../lib/set-permissions.c:288:27: note: each undeclared identifier is reported on
ly once for each function it appears in
../lib/set-permissions.c: In function 'context_aclv_from_mode':
../lib/set-permissions.c:307:34: error: 'mode' undeclared (first use in this fun
ction)
ctx->aclv_entries[0].a_perm = (mode >> 6) & 7;
^
../lib/set-permissions.c:319:26: error: 'entries' undeclared (first use in this
function)
ret = aclsort (sizeof (entries) / sizeof (struct acl), 1, entries);
^
../lib/set-permissions.c: In function 'set_acls':
../lib/set-permissions.c:660:69: error: 'source_statbuf' undeclared (first use in this function)
&& (from_mode || !acl_nontrivial (ctx->count, ctx->entries, &source_statbuf)))
^
../lib/set-permissions.c:660:26: error: too many arguments to function 'acl_nontrivial'
&& (from_mode || !acl_nontrivial (ctx->count, ctx->entries, &source_statbuf)))
^
In file included from ../lib/set-permissions.c:24:0:
../lib/acl-internal.h:215:12: note: declared here
extern int acl_nontrivial (int count, struct acl_entry *entries);
^
make[2]: *** [lib/set-permissions.o] Error 1
make[2]: Leaving directory `/xxx/gnu/coreutils-8.24/objdir'
make[1]: *** [all-recursive] Error 1
Dave
--
John David Anglin dave.anglin <at> bell.net
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Sat, 04 Jul 2015 18:11:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 20979 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
John David Anglin wrote:
> The following error occurs building coreutils-8.24 on hppa2.0w-hp-hpux11.11 with gcc-5:
>
> CC lib/set-permissions.o../lib/set-permissions.c: In function 'context_acl_from_mode':
> ../lib/set-permissions.c:288:27: error: 'mode' undeclared (first use in this function)
> ctx->entries[0].mode = (mode >> 6) & 7;
...
Thanks for reporting that. There are some obvious typos in the recent
ACL-related patches when compiled on HP-UX. I installed the attached patch into
gnulib; can you please give it a try on coreutils 8.24? I don't have access to
an HP-UX box to test it myself.
I'll CC: this to Andreas Gruenbacher, the author of the recent patches, to give
him a heads-up.
[0001-file-has-acl-acl-permissions-fix-HP-UX-typos.patch (text/x-diff, attachment)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Sat, 04 Jul 2015 18:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 20979 <at> debbugs.gnu.org (full text, mbox):
Paul,
2015-07-04 20:10 GMT+02:00 Paul Eggert <eggert <at> cs.ucla.edu>:
> John David Anglin wrote:
>>
>> The following error occurs building coreutils-8.24 on
>> hppa2.0w-hp-hpux11.11 with gcc-5:
>>
>> CC lib/set-permissions.o../lib/set-permissions.c: In function
>> 'context_acl_from_mode':
>> ../lib/set-permissions.c:288:27: error: 'mode' undeclared (first use in
>> this function)
>> ctx->entries[0].mode = (mode >> 6) & 7;
>
> ...
>
> Thanks for reporting that. There are some obvious typos in the recent
> ACL-related patches when compiled on HP-UX. I installed the attached patch
> into gnulib; can you please give it a try on coreutils 8.24? I don't have
> access to an HP-UX box to test it myself.
>
> I'll CC: this to Andreas Gruenbacher, the author of the recent patches, to
> give him a heads-up.
thanks for fixing this.
Andreas
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Sat, 04 Jul 2015 22:30:05 GMT)
Full text and
rfc822 format available.
Message #14 received at 20979 <at> debbugs.gnu.org (full text, mbox):
We know have:
CC lib/set-permissions.o
../lib/set-permissions.c: In function 'context_aclv_from_mode':
../lib/set-permissions.c:307:34: error: 'mode' undeclared (first use in this function)
ctx->aclv_entries[0].a_perm = (mode >> 6) & 7;
^
../lib/set-permissions.c:307:34: note: each undeclared identifier is reported only once for each function it appears in
../lib/set-permissions.c:319:38: error: 'entries' undeclared (first use in this function)
ret = aclsort (ctx->aclv_count, 1, entries);
^
On 2015-07-04, at 2:10 PM, Paul Eggert wrote:
> John David Anglin wrote:
>> The following error occurs building coreutils-8.24 on hppa2.0w-hp-hpux11.11 with gcc-5:
>>
>> CC lib/set-permissions.o../lib/set-permissions.c: In function 'context_acl_from_mode':
>> ../lib/set-permissions.c:288:27: error: 'mode' undeclared (first use in this function)
>> ctx->entries[0].mode = (mode >> 6) & 7;
> ...
>
> Thanks for reporting that. There are some obvious typos in the recent ACL-related patches when compiled on HP-UX. I installed the attached patch into gnulib; can you please give it a try on coreutils 8.24? I don't have access to an HP-UX box to test it myself.
>
> I'll CC: this to Andreas Gruenbacher, the author of the recent patches, to give him a heads-up.
>
> <0001-file-has-acl-acl-permissions-fix-HP-UX-typos.patch>
CC lib/set-permissions.o
../lib/set-permissions.c: In function 'context_aclv_from_mode':
../lib/set-permissions.c:307:34: error: 'mode' undeclared (first use in this function)
ctx->aclv_entries[0].a_perm = (mode >> 6) & 7;
^
../lib/set-permissions.c:307:34: note: each undeclared identifier is reported only once for each function it appears in
../lib/set-permissions.c:319:38: error: 'entries' undeclared (first use in this function)
ret = aclsort (ctx->aclv_count, 1, entries);
^
--
John David Anglin dave.anglin <at> bell.net
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Sat, 04 Jul 2015 22:41:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 20979 <at> debbugs.gnu.org (full text, mbox):
In this function, "mode" needs to be "ctx->mode" and "entries" needs to be "ctx->aclv_entries".
It then compiles okay.
Dave
On 2015-07-04, at 6:29 PM, John David Anglin wrote:
> We know have:
>
> CC lib/set-permissions.o
> ../lib/set-permissions.c: In function 'context_aclv_from_mode':
> ../lib/set-permissions.c:307:34: error: 'mode' undeclared (first use in this function)
> ctx->aclv_entries[0].a_perm = (mode >> 6) & 7;
> ^
> ../lib/set-permissions.c:307:34: note: each undeclared identifier is reported only once for each function it appears in
> ../lib/set-permissions.c:319:38: error: 'entries' undeclared (first use in this function)
> ret = aclsort (ctx->aclv_count, 1, entries);
> ^
>
> On 2015-07-04, at 2:10 PM, Paul Eggert wrote:
>
>> John David Anglin wrote:
>>> The following error occurs building coreutils-8.24 on hppa2.0w-hp-hpux11.11 with gcc-5:
>>>
>>> CC lib/set-permissions.o../lib/set-permissions.c: In function 'context_acl_from_mode':
>>> ../lib/set-permissions.c:288:27: error: 'mode' undeclared (first use in this function)
>>> ctx->entries[0].mode = (mode >> 6) & 7;
>> ...
>>
>> Thanks for reporting that. There are some obvious typos in the recent ACL-related patches when compiled on HP-UX. I installed the attached patch into gnulib; can you please give it a try on coreutils 8.24? I don't have access to an HP-UX box to test it myself.
>>
>> I'll CC: this to Andreas Gruenbacher, the author of the recent patches, to give him a heads-up.
>>
>> <0001-file-has-acl-acl-permissions-fix-HP-UX-typos.patch>
>
>
> CC lib/set-permissions.o
> ../lib/set-permissions.c: In function 'context_aclv_from_mode':
> ../lib/set-permissions.c:307:34: error: 'mode' undeclared (first use in this function)
> ctx->aclv_entries[0].a_perm = (mode >> 6) & 7;
> ^
> ../lib/set-permissions.c:307:34: note: each undeclared identifier is reported only once for each function it appears in
> ../lib/set-permissions.c:319:38: error: 'entries' undeclared (first use in this function)
> ret = aclsort (ctx->aclv_count, 1, entries);
> ^
>
> --
> John David Anglin dave.anglin <at> bell.net
>
>
>
>
--
John David Anglin dave.anglin <at> bell.net
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Sun, 05 Jul 2015 10:48:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 20979 <at> debbugs.gnu.org (full text, mbox):
David,
2015-07-05 0:40 GMT+02:00 John David Anglin <dave.anglin <at> bell.net>:
> In this function, "mode" needs to be "ctx->mode" and "entries" needs to be "ctx->aclv_entries".
> It then compiles okay.
thanks, I've fixed this in gnulib. Still needs to be pulled into coreutils.
Andreas
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#20979
; Package
coreutils
.
(Tue, 23 Oct 2018 02:38:01 GMT)
Full text and
rfc822 format available.
Message #23 received at 20979 <at> debbugs.gnu.org (full text, mbox):
tags 20979 fixed
close 20979
stop
(triaging old bugs)
On 04/07/15 12:53 PM, Andreas Grünbacher wrote:
> 2015-07-04 20:10 GMT+02:00 Paul Eggert <eggert <at> cs.ucla.edu>:
>> John David Anglin wrote:
>>> The following error occurs building coreutils-8.24 on
>>> hppa2.0w-hp-hpux11.11 with gcc-5: >>>
>>
>> Thanks for reporting that. There are some obvious typos in the
>> recent ACL-related patches when compiled on HP-UX. I installed the
>> attached patch
>> into gnulib; can you please give it a try on coreutils 8.24? I
>> don't have access to an HP-UX box to test it myself.
>>
> thanks for fixing this.
On 05/07/15 04:47 AM, Andreas Grünbacher wrote:
> David,
>
> 2015-07-05 0:40 GMT+02:00 John David Anglin <dave.anglin <at> bell.net>:
>> In this function, "mode" needs to be "ctx->mode" and "entries" needs to be "ctx->aclv_entries".
>> It then compiles okay.
>
> thanks, I've fixed this in gnulib. Still needs to be pulled into coreutils.
>
marking as "fixed" and closing.
-assaf
Added tag(s) fixed.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 23 Oct 2018 02:38:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
20979 <at> debbugs.gnu.org and John David Anglin <dave.anglin <at> bell.net>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 23 Oct 2018 02:38:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 20 Nov 2018 12:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 218 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.