by rolan » Thu Aug 01, 2013 12:22 am
grsecurity-2.9.1-3.10.4-201307311627.patch (equivalent to given manual
directives), still getting:
...
CC grsecurity/gracl.o
grsecurity/gracl.c: In function ‘copy_user_glob’:
grsecurity/gracl.c:1126:3: error: implicit declaration of function ‘copy_acl_object_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c: In function ‘count_user_subjs’:
grsecurity/gracl.c:1196:3: error: implicit declaration of function ‘copy_acl_subject_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c: In function ‘copy_user_allowedips’:
grsecurity/gracl.c:1219:3: error: implicit declaration of function ‘copy_role_allowed_ip_normal’ [-Werror=implicit-function-declaration]
if (copy_role_allowed_ip(rtmp, ruserip))
^
grsecurity/gracl.c: In function ‘copy_user_transitions’:
grsecurity/gracl.c:1254:3: error: implicit declaration of function ‘copy_role_transition_normal’ [-Werror=implicit-function-declaration]
if (copy_role_transition(rtmp, rusertp))
^
grsecurity/gracl.c: In function ‘do_copy_user_subj’:
grsecurity/gracl.c:1341:2: error: implicit declaration of function ‘copy_gr_hash_struct’ [-Werror=implicit-function-declaration]
if (copy_gr_hash_struct(&ghash, s_tmp->hash))
^
grsecurity/gracl.c:1422:3: error: implicit declaration of function ‘copy_pointer_from_array_normal’ [-Werror=implicit-function-declaration]
if (copy_pointer_from_array(&i_utmp2, i_num, s_tmp->ips))
^
grsecurity/gracl.c:1425:3: error: implicit declaration of function ‘copy_acl_ip_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_ip_label(*(i_tmp + i_num), i_utmp2))
^
grsecurity/gracl.c: In function ‘copy_user_acl’:
grsecurity/gracl.c:1500:3: error: implicit declaration of function ‘copy_sprole_pw_normal’ [-Werror=implicit-function-declaration]
if (copy_sprole_pw(sptmp, i, arg->sprole_pws))
^
grsecurity/gracl.c:1525:3: error: implicit declaration of function ‘copy_acl_role_label_normal’ [-Werror=implicit-function-declaration]
if (copy_acl_role_label(r_tmp, r_utmp2))
^
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: static declaration of ‘copy_acl_object_label_normal’ follows non-static declaration
static int copy_acl_object_label_normal(struct acl_object_label *obj, const struct acl_object_label *userp)
^
grsecurity/gracl.c:133:31: note: previous implicit declaration of ‘copy_acl_object_label_normal’ was here
#define copy_acl_object_label copy_acl_object_label_normal
^
grsecurity/gracl.c:1126:7: note: in expansion of macro ‘copy_acl_object_label’
if (copy_acl_object_label(g_tmp, *guser))
^
grsecurity/gracl.c:3158:12: error: static declaration of ‘copy_acl_ip_label_normal’ follows non-static declaration
static int copy_acl_ip_label_normal(struct acl_ip_label *ip, const struct acl_ip_label *userp)
^
grsecurity/gracl.c:136:27: note: previous implicit declaration of ‘copy_acl_ip_label_normal’ was here
#define copy_acl_ip_label copy_acl_ip_label_normal
^
grsecurity/gracl.c:1425:7: note: in expansion of macro ‘copy_acl_ip_label’
if (copy_acl_ip_label(*(i_tmp + i_num), i_utmp2))
^
grsecurity/gracl.c:3166:12: error: static declaration of ‘copy_acl_subject_label_normal’ follows non-static declaration
static int copy_acl_subject_label_normal(struct acl_subject_label *subj, const struct acl_subject_label *userp)
^
grsecurity/gracl.c:134:32: note: previous implicit declaration of ‘copy_acl_subject_label_normal’ was here
#define copy_acl_subject_label copy_acl_subject_label_normal
^
grsecurity/gracl.c:1196:7: note: in expansion of macro ‘copy_acl_subject_label’
if (copy_acl_subject_label(&s_tmp, userp))
^
grsecurity/gracl.c:3174:12: error: static declaration of ‘copy_acl_role_label_normal’ follows non-static declaration
static int copy_acl_role_label_normal(struct acl_role_label *role, const struct acl_role_label *userp)
^
grsecurity/gracl.c:135:29: note: previous implicit declaration of ‘copy_acl_role_label_normal’ was here
#define copy_acl_role_label copy_acl_role_label_normal
^
grsecurity/gracl.c:1525:7: note: in expansion of macro ‘copy_acl_role_label’
if (copy_acl_role_label(r_tmp, r_utmp2))
^
grsecurity/gracl.c:3182:12: error: static declaration of ‘copy_role_allowed_ip_normal’ follows non-static declaration
static int copy_role_allowed_ip_normal(struct role_allowed_ip *roleip, const struct role_allowed_ip *userp)
^
grsecurity/gracl.c:140:30: note: previous implicit declaration of ‘copy_role_allowed_ip_normal’ was here
#define copy_role_allowed_ip copy_role_allowed_ip_normal
^
grsecurity/gracl.c:1219:7: note: in expansion of macro ‘copy_role_allowed_ip’
if (copy_role_allowed_ip(rtmp, ruserip))
^
grsecurity/gracl.c:3190:12: error: static declaration of ‘copy_sprole_pw_normal’ follows non-static declaration
static int copy_sprole_pw_normal(struct sprole_pw *pw, unsigned long idx, const struct sprole_pw *userp)
^
grsecurity/gracl.c:138:24: note: previous implicit declaration of ‘copy_sprole_pw_normal’ was here
#define copy_sprole_pw copy_sprole_pw_normal
^
grsecurity/gracl.c:1500:7: note: in expansion of macro ‘copy_sprole_pw’
if (copy_sprole_pw(sptmp, i, arg->sprole_pws))
^
grsecurity/gracl.c:3206:12: error: static declaration of ‘copy_role_transition_normal’ follows non-static declaration
static int copy_role_transition_normal(struct role_transition *trans, const struct role_transition *userp)
^
grsecurity/gracl.c:139:30: note: previous implicit declaration of ‘copy_role_transition_normal’ was here
#define copy_role_transition copy_role_transition_normal
^
grsecurity/gracl.c:1254:7: note: in expansion of macro ‘copy_role_transition’
if (copy_role_transition(rtmp, rusertp))
^
grsecurity/gracl.c: In function ‘write_grsec_handler’:
grsecurity/gracl.c:3254:6: error: unused variable ‘compat’ [-Werror=unused-variable]
int compat = is_compat_task();
^
grsecurity/gracl.c: At top level:
grsecurity/gracl.c:3150:12: error: ‘copy_acl_object_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_object_label_normal(struct acl_object_label *obj, const struct acl_object_label *userp)
^
grsecurity/gracl.c:3158:12: error: ‘copy_acl_ip_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_ip_label_normal(struct acl_ip_label *ip, const struct acl_ip_label *userp)
^
grsecurity/gracl.c:3166:12: error: ‘copy_acl_subject_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_subject_label_normal(struct acl_subject_label *subj, const struct acl_subject_label *userp)
^
grsecurity/gracl.c:3174:12: error: ‘copy_acl_role_label_normal’ defined but not used [-Werror=unused-function]
static int copy_acl_role_label_normal(struct acl_role_label *role, const struct acl_role_label *userp)
^
grsecurity/gracl.c:3182:12: error: ‘copy_role_allowed_ip_normal’ defined but not used [-Werror=unused-function]
static int copy_role_allowed_ip_normal(struct role_allowed_ip *roleip, const struct role_allowed_ip *userp)
^
grsecurity/gracl.c:3190:12: error: ‘copy_sprole_pw_normal’ defined but not used [-Werror=unused-function]
static int copy_sprole_pw_normal(struct sprole_pw *pw, unsigned long idx, const struct sprole_pw *userp)
^
grsecurity/gracl.c:3198:12: error: ‘copy_gr_hash_struct_normal’ defined but not used [-Werror=unused-function]
static int copy_gr_hash_struct_normal(struct gr_hash_struct *hash, const struct gr_hash_struct *userp)
^
grsecurity/gracl.c:3206:12: error: ‘copy_role_transition_normal’ defined but not used [-Werror=unused-function]
static int copy_role_transition_normal(struct role_transition *trans, const struct role_transition *userp)
^
cc1: all warnings being treated as errors
make[1]: *** [grsecurity/gracl.o] Error 1
make: *** [grsecurity] Error 2