[vserver] compilation one fatal error and several warning util-vserver

From: Ghislain Adnet <gadnet_at_aqueos.com>
Date: Sat 06 Jan 2018 - 11:54:34 GMT
Message-ID: <410ba9b4-2f5b-28fb-5d71-c0e7b5f54a8b@aqueos.com>

Hi Daniel,

here is the errors i got trying to recompile the util vserver recently, the fatal error is at the end :

In file included from lib/syscall-compat.hc:24:0,
                 from lib/syscall.c:36:
lib/safechroot-internal.hc:44:33: warning: always_inline function might not be inlinable [-Wattributes]
 static ALWAYSINLINE UNUSED void vc_tell_unsafe_chroot() {}
                                 ^~~~~~~~~~~~~~~~~~~~~

lib/syscall_getnxinfo.c: In function ‘vc_get_nx_info’:
lib/syscall_getnxinfo.c:35:6: warning: nonnull argument ‘info’ compared to NULL [-Wnonnull-compare]
   if (info==0) {
      ^

lib/syscall_getvxinfo.c: In function ‘vc_get_vx_info’:
lib/syscall_getvxinfo.c:42:6: warning: nonnull argument ‘info’ compared to NULL [-Wnonnull-compare]
   if (info==0) {
      ^

lib/syscall_setcflags.c: In function ‘vc_set_cflags’:
lib/syscall_setcflags.c:35:6: warning: nonnull argument ‘flags’ compared to NULL [-Wnonnull-compare]
   if (flags==0) {
      ^

lib_internal/matchlist-initmanually.c: In function ‘MatchList_initManually’:
lib_internal/matchlist-initmanually.c:188:6: warning: nonnull argument ‘exclude_file’ compared to NULL [-Wnonnull-compare]
   if (exclude_file && *exclude_file) {
      ^

lib_internal/matchlist-initmanually.c: In function ‘MatchList_initManually’:
lib_internal/matchlist-initmanually.c:188:6: warning: nonnull argument ‘exclude_file’ compared to NULL [-Wnonnull-compare]
   if (exclude_file && *exclude_file) {
      ^

and the fatal error:

In file included from lib_internal/util-cleanupmount.c:25:0:
/usr/include/linux/fs.h:366:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘__kernel_rwf_t’
 typedef int __bitwise __kernel_rwf_t;
                       ^~~~~~~~~~~~~~

debian/rules:23: recipe for target 'build' failed
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

best regards,
Ghislain.
Received on Sat Jan 6 11:52:29 2018

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 06 Jan 2018 - 11:52:29 GMT by hypermail 2.1.8