* acl_perm_t not declared error while compiling cygwin
@ 2016-01-07 2:52 David Lee
2016-01-07 12:44 ` Corinna Vinschen
0 siblings, 1 reply; 2+ messages in thread
From: David Lee @ 2016-01-07 2:52 UTC (permalink / raw)
To: cygwin
Hi all,
while trying to compile cygwin from git master I got this error. Any
suggestions are appreciated.
------------------------------------------
c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall
-Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin
-fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o
sec_acl.o /home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc
/home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc: In function ‘void
__aclcalcmask(aclent_t*, int)’:
/home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc:1301:3: error:
‘acl_perm_t’ was not declared in this scope
acl_perm_t mask = 0;
^
/home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc:1310:2: error:
‘mask’ was not declared in this scope
mask |= aclbufp[idx].a_perm;
^
/home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc:1313:32: error:
‘mask’ was not declared in this scope
aclbufp[mask_idx].a_perm = mask;
^
/home/dave/newlib-cygwin/winsup/cygwin/../Makefile.common:43: recipe
for target 'sec_acl.o' failed
make[3]: *** [sec_acl.o] Error 1
make[3]: Leaving directory '/home/dave/build/i686-pc-cygwin/winsup/cygwin'
Makefile:82: recipe for target 'cygwin' failed
make[2]: *** [cygwin] Error 1
make[2]: Leaving directory '/home/dave/build/i686-pc-cygwin/winsup'
Makefile:8381: recipe for target 'all-target-winsup' failed
make[1]: *** [all-target-winsup] Error 2
make[1]: Leaving directory '/home/dave/build'
Makefile:833: recipe for target 'all' failed
make: *** [all] Error 2
---------------------------------------
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: acl_perm_t not declared error while compiling cygwin
2016-01-07 2:52 acl_perm_t not declared error while compiling cygwin David Lee
@ 2016-01-07 12:44 ` Corinna Vinschen
0 siblings, 0 replies; 2+ messages in thread
From: Corinna Vinschen @ 2016-01-07 12:44 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
On Jan 7 10:52, David Lee wrote:
> Hi all,
>
> while trying to compile cygwin from git master I got this error. Any
> suggestions are appreciated.
>
> ------------------------------------------
>
> c++wrap -O2 -g -fno-rtti -fno-exceptions -fno-use-cxa-atexit -Wall
> -Wstrict-aliasing -Wwrite-strings -fno-common -pipe -fbuiltin
> -fmessage-length=0 -MMD -Werror -fmerge-constants -ftracer -c -o
> sec_acl.o /home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc
>
> /home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc: In function ‘void
> __aclcalcmask(aclent_t*, int)’:
> /home/dave/newlib-cygwin/winsup/cygwin/sec_acl.cc:1301:3: error:
> ‘acl_perm_t’ was not declared in this scope
> acl_perm_t mask = 0;
> ^
I screwed this up. This change was part of a pet project to add POSIX
ACL functions to Cygwin and I forgot to change acl_perm_t to mode_t
before applying the change. In fact, mode_t is the right type anyway
and using acl_perm_t here was wrong to begin with. Fix in the repo.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-01-07 12:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-07 2:52 acl_perm_t not declared error while compiling cygwin David Lee
2016-01-07 12:44 ` Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).