help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Failed compile due to security_context_t and friends on CentOS 5


From: Jeffrey Walton
Subject: Failed compile due to security_context_t and friends on CentOS 5
Date: Wed, 3 Jan 2018 18:20:58 -0500

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’



reply via email to

[Prev in Thread] Current Thread [Next in Thread]