Quoting S.Çağlar Onur ([email protected]): > [...] > make[3]: Entering directory `/home/caglar/Projects/lxc/src/tests' > depbase=`echo attach.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\ > gcc -DHAVE_CONFIG_H -I. -I../../src -I../../src > -DLXCROOTFSMOUNT=\"/usr/lib/x86_64-linux-gnu/lxc/rootfs\" > -DLXCPATH=\"/var/lib/lxc\" -DLXC_GLOBAL_CONF=\"/etc/lxc/lxc.conf\" > -DLXCINITDIR=\"/usr/libexec\" -DLXC_DEFAULT_CONFIG=\"/etc/lxc/default.conf\" > -g -O2 -Wall -Werror -MT attach.o -MD -MP -MF $depbase.Tpo -c -o attach.o > attach.c &&\ > mv -f $depbase.Tpo $depbase.Po > attach.c: In function ‘main’: > attach.c:380:2: error: implicit declaration of function ‘test_lsm_detect’ > [-Werror=implicit-function-declaration] > cc1: all warnings being treated as errors > make[3]: *** [attach.o] Error 1 > [...] > > Signed-off-by: S.Çağlar Onur <[email protected]>
Acked-by: Serge E. Hallyn <[email protected]> > --- > src/tests/attach.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/tests/attach.c b/src/tests/attach.c > index 54650bd..57a4bdd 100644 > --- a/src/tests/attach.c > +++ b/src/tests/attach.c > @@ -31,7 +31,6 @@ > fprintf(stderr, "%s:%d " fmt "\n", __FILE__, __LINE__, ##__VA_ARGS__); \ > } while (0) > > -#if HAVE_APPARMOR || HAVE_SELINUX > static const char *lsm_config_key = NULL; > static const char *lsm_label = NULL; > > @@ -53,6 +52,7 @@ static void test_lsm_detect(void) > } > } > > +#if HAVE_APPARMOR || HAVE_SELINUX > static void test_attach_lsm_set_config(struct lxc_container *ct) > { > ct->load_config(ct, NULL); > -- > 1.8.1.2 > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk > _______________________________________________ > Lxc-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/lxc-devel ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk _______________________________________________ Lxc-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lxc-devel
