* Failed compile due to security_context_t and friends on CentOS 5
@ 2018-01-03 23:20 Jeffrey Walton
2018-01-06 3:19 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Walton @ 2018-01-03 23:20 UTC (permalink / raw)
To: help-gnu-emacs
Hi Everyone,
I'm building Emacs 24.5 from sources on CentOS 5. It looks like the
build is failing as shown below.
The config.log is too large to attach to an email or drop on pastebin.
I can provide it if anyone is interested.
Does anyone know how to avoid the build failures for this platform?
Thanks in advance.
**************************************************
gcc -std=gnu99 -c -I/usr/local/include -DNDEBUG -Demacs -I. -I.
-I../lib -I./../lib -MMD -MF deps/casetab.d -MP -m64 -fPIC
casetab.c
dired.c: In function ‘file_attributes’:
dired.c:989: warning: comparison is always true due to limited range
of data type
dired.c:989: warning: comparison is always true due to limited range
of data type
dired.c:993: warning: comparison is always true due to limited range
of data type
dired.c:993: warning: comparison is always true due to limited range
of data type
fileio.c: In function ‘Fcopy_file’:
fileio.c:1944: error: ‘security_context_t’ undeclared (first use in
this function)
fileio.c:1944: error: (Each undeclared identifier is reported only once
fileio.c:1944: error: for each function it appears in.)
fileio.c:1944: error: expected ‘;’ before ‘con’
fileio.c:2021: warning: implicit declaration of function ‘is_selinux_enabled’
fileio.c:2023: warning: implicit declaration of function ‘fgetfilecon’
fileio.c:2023: error: ‘con’ undeclared (first use in this function)
fileio.c:2125: warning: implicit declaration of function ‘fsetfilecon’
fileio.c:2130: warning: implicit declaration of function ‘freecon’
fileio.c: In function ‘Ffile_selinux_context’:
fileio.c:2869: error: ‘security_context_t’ undeclared (first use in
this function)
fileio.c:2869: error: expected ‘;’ before ‘con’
fileio.c:2871: error: ‘context_t’ undeclared (first use in this function)
fileio.c:2871: error: expected ‘;’ before ‘context’
fileio.c:2891: warning: implicit declaration of function ‘lgetfilecon’
fileio.c:2891: error: ‘con’ undeclared (first use in this function)
fileio.c:2894: error: ‘context’ undeclared (first use in this function)
fileio.c:2894: warning: implicit declaration of function ‘context_new’
fileio.c:2895: warning: implicit declaration of function ‘context_user_get’
fileio.c:2896: warning: passing argument 1 of ‘build_string’ makes
pointer from integer without a cast
fileio.c:2897: warning: implicit declaration of function ‘context_role_get’
fileio.c:2898: warning: passing argument 1 of ‘build_string’ makes
pointer from integer without a cast
fileio.c:2899: warning: implicit declaration of function ‘context_type_get’
fileio.c:2900: warning: passing argument 1 of ‘build_string’ makes
pointer from integer without a cast
fileio.c:2901: warning: implicit declaration of function ‘context_range_get’
fileio.c:2902: warning: passing argument 1 of ‘build_string’ makes
pointer from integer without a cast
fileio.c:2903: warning: implicit declaration of function ‘context_free’
fileio.c: In function ‘Fset_file_selinux_context’:
fileio.c:2932: error: ‘security_context_t’ undeclared (first use in
this function)
fileio.c:2932: error: expected ‘;’ before ‘con’
fileio.c:2935: error: ‘context_t’ undeclared (first use in this function)
fileio.c:2935: error: expected ‘;’ before ‘parsed_con’
fileio.c:2951: error: ‘con’ undeclared (first use in this function)
fileio.c:2954: error: ‘parsed_con’ undeclared (first use in this function)
fileio.c:2958: warning: implicit declaration of function ‘context_user_set’
fileio.c:2963: warning: implicit declaration of function ‘context_role_set’
fileio.c:2968: warning: implicit declaration of function ‘context_type_set’
fileio.c:2973: warning: implicit declaration of function ‘context_range_set’
fileio.c:2978: warning: implicit declaration of function ‘lsetfilecon’
fileio.c:2979: warning: implicit declaration of function ‘context_str’
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Failed compile due to security_context_t and friends on CentOS 5
2018-01-03 23:20 Failed compile due to security_context_t and friends on CentOS 5 Jeffrey Walton
@ 2018-01-06 3:19 ` Glenn Morris
0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2018-01-06 3:19 UTC (permalink / raw)
To: noloader; +Cc: help-gnu-emacs
Jeffrey Walton wrote:
> I'm building Emacs 24.5 from sources on CentOS 5.
(As an aside, your distribution was EOL'd 9 months ago:
https://lists.centos.org/pipermail/centos-announce/2017-April/022350.html )
> Does anyone know how to avoid the build failures for this platform?
Adding "--without-selinux" to the configure options is probably the
easiest fix.
> fileio.c: In function 'Fcopy_file':
> fileio.c:1944: error: 'security_context_t' undeclared (first use in
> this function)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-06 3:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-03 23:20 Failed compile due to security_context_t and friends on CentOS 5 Jeffrey Walton
2018-01-06 3:19 ` Glenn Morris
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).