[DSE-Dev] Bug#822518: libsemanage: FTBFS: error: too many arguments to function 'cil_userprefixes_to_string'

Martin Michlmayr tbm at hpe.com
Mon Apr 25 03:29:46 UTC 2016


Package: libsemanage
Version: 2.4-3
Severity: serious

This package fails to build in unstable:

> sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> cc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I../include -I/usr/include -D_GNU_SOURCE  -c -o direct_api.o direct_api.c
> direct_api.c: In function 'semanage_direct_update_user_extra':
> direct_api.c:542:45: warning: passing argument 2 of 'cil_userprefixes_to_string' from incompatible pointer type [-Wincompatible-pointer-types]
>   retval = cil_userprefixes_to_string(cildb, policydb, &data, &size);
>                                              ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:45:12: note: expected 'char **' but argument is of type 'sepol_policydb_t * {aka struct sepol_policydb *}'
>  extern int cil_userprefixes_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c:542:55: warning: passing argument 3 of 'cil_userprefixes_to_string' from incompatible pointer type [-Wincompatible-pointer-types]
>   retval = cil_userprefixes_to_string(cildb, policydb, &data, &size);
>                                                        ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:45:12: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'char **'
>  extern int cil_userprefixes_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c:542:11: error: too many arguments to function 'cil_userprefixes_to_string'
>   retval = cil_userprefixes_to_string(cildb, policydb, &data, &size);
>            ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:45:12: note: declared here
>  extern int cil_userprefixes_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c: In function 'semanage_direct_update_seuser':
> direct_api.c:577:45: warning: passing argument 2 of 'cil_selinuxusers_to_string' from incompatible pointer type [-Wincompatible-pointer-types]
>   retval = cil_selinuxusers_to_string(cildb, policydb, &data, &size);
>                                              ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:46:12: note: expected 'char **' but argument is of type 'sepol_policydb_t * {aka struct sepol_policydb *}'
>  extern int cil_selinuxusers_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c:577:55: warning: passing argument 3 of 'cil_selinuxusers_to_string' from incompatible pointer type [-Wincompatible-pointer-types]
>   retval = cil_selinuxusers_to_string(cildb, policydb, &data, &size);
>                                                        ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:46:12: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'char **'
>  extern int cil_selinuxusers_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c:577:11: error: too many arguments to function 'cil_selinuxusers_to_string'
>   retval = cil_selinuxusers_to_string(cildb, policydb, &data, &size);
>            ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:46:12: note: declared here
>  extern int cil_selinuxusers_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c: In function 'semanage_direct_commit':
> direct_api.c:1112:12: error: too many arguments to function 'cil_compile'
>    retval = cil_compile(cildb, out);
>             ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:43:12: note: declared here
>  extern int cil_compile(cil_db_t *db);
>             ^
> direct_api.c:1116:38: warning: passing argument 2 of 'cil_build_policydb' from incompatible pointer type [-Wincompatible-pointer-types]
>    retval = cil_build_policydb(cildb, out);
>                                       ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:44:12: note: expected 'sepol_policydb_t ** {aka struct sepol_policydb **}' but argument is of type 'sepol_policydb_t * {aka struct sepol_policydb *}'
>  extern int cil_build_policydb(cil_db_t *db, sepol_policydb_t **sepol_db);
>             ^
> direct_api.c:1121:42: warning: passing argument 2 of 'cil_filecons_to_string' from incompatible pointer type [-Wincompatible-pointer-types]
>    retval = cil_filecons_to_string(cildb, out, &fc_buffer, &fc_buffer_len);
>                                           ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:47:12: note: expected 'char **' but argument is of type 'sepol_policydb_t * {aka struct sepol_policydb *}'
>  extern int cil_filecons_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c:1121:47: warning: passing argument 3 of 'cil_filecons_to_string' from incompatible pointer type [-Wincompatible-pointer-types]
>    retval = cil_filecons_to_string(cildb, out, &fc_buffer, &fc_buffer_len);
>                                                ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:47:12: note: expected 'size_t * {aka long unsigned int *}' but argument is of type 'char **'
>  extern int cil_filecons_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> direct_api.c:1121:12: error: too many arguments to function 'cil_filecons_to_string'
>    retval = cil_filecons_to_string(cildb, out, &fc_buffer, &fc_buffer_len);
>             ^
> In file included from direct_api.c:24:0:
> /usr/include/sepol/cil/cil.h:47:12: note: declared here
>  extern int cil_filecons_to_string(cil_db_t *db, char **out, size_t *size);
>             ^
> Makefile:113: recipe for target 'direct_api.o' failed
> make[3]: *** [direct_api.o] Error 1

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the SELinux-devel mailing list