[vserver] vserver util on jessie

From: Ghislain <gadnet_at_aqueos.com>
Date: Tue 04 Aug 2015 - 09:56:36 BST
Message-ID: <55C07E44.70408@aqueos.com>

hi,

  to compile on jessie i have to disable systemd support by modifying
debian/rules to add --disable-systemd to "override_dh_auto_configure"

otherwise i have this error:

systemd/systemd-vserver-generator.c:435:2: warning: ‘dirfd’ is
deprecated (declared at /usr/include/diet/dirent.h:57)
[-Wdeprecated-declarations]
   int vcfg_fd = dirfd(vcfg_dir);
   ^
/bin/bash ./libtool --tag=CC --mode=link diet -Os gcc -g -O2
-fstack-protector-strong -Wformat -Werror=format-security -std=c99 -Wall
-pedantic -W -funit-at-a-time -Wl,-z,relro -o
systemd/systemd-vserver-generator systemd/systemd-vserver-generator.o
libtool: link: diet -Os gcc -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -std=c99 -Wall -pedantic -W -funit-at-a-time
-Wl,-z -Wl,relro -o systemd/systemd-vserver-generator
systemd/systemd-vserver-generator.o
systemd/systemd-vserver-generator.o: In function `read_file':
/root/util-vserver/systemd/systemd-vserver-generator.c:309: undefined
reference to `fstatat'
systemd/systemd-vserver-generator.o: In function `systemd_escape':
/root/util-vserver/systemd/systemd-vserver-generator.c:99: undefined
reference to `stpcpy'
systemd/systemd-vserver-generator.o: In function `generate_units':
/root/util-vserver/systemd/systemd-vserver-generator.c:471: undefined
reference to `fstatat'
systemd/systemd-vserver-generator.o: In function
`generate_units_for_vserver':
/root/util-vserver/systemd/systemd-vserver-generator.c:395: undefined
reference to `fstatat'
/root/util-vserver/systemd/systemd-vserver-generator.c:399: undefined
reference to `fstatat'
collect2: error: ld returned 1 exit status
make[3]: *** [systemd/systemd-vserver-generator] Error 1
Makefile:4977: recipe for target 'systemd/systemd-vserver-generator' failed

  After this the packages build but here is a bunch of errors i got:
http://pastebin.com/raw.php?i=9X870CNr

ex:

/root/util-vserver/./ensc_wrappers/wrappers-vserver.hc:28: warning: warning: vc_new_s_context() is obsoleted; use vc_ctx_create() instead of
/root/util-vserver/lib_internal/switchtowatchxid.c:45: warning: warning: vc_new_s_context() is obsoleted; use vc_ctx_create() instead of
/usr/lib/diet/lib-x86_64/libc.a(vsnprintf.o): In function `vsnprintf':

src/rpm-fake.c:70:40: warning: ISO C forbids conversion of object pointer to function pointer type [-Wpedantic]
  #define INIT(FILE,FUNC) FUNC##_func = ((__typeof__(FUNC) *) (xdlsym(FILE, #FUNC)))

hope it helps !

Ghislain.
Received on Tue Aug 4 09:54:12 2015

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Tue 04 Aug 2015 - 09:54:12 BST by hypermail 2.1.8