GithubHelp home page GithubHelp logo

cjail's Issues

undeclared identifier during make : PR_SET_MM_ARG_START, PR_SET_MM_ARG_END

cmake ..

-- build type not set, default to release
Build Type: Release
-- Checking for module 'libseccomp'
-- Found libseccomp, version 1.0.1
-- Found Criterion library.
-- Test Enabled.
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/cjail-master/build

make

[ 3%] Building C object src/CMakeFiles/libcjail.dir/init.c.o
/usr/cjail-master/src/init.c: In function ‘setprocname’:
/usr/cjail-master/src/init.c:94:32: error: ‘PR_SET_MM_ARG_START’ undeclared (first use in this function)
ret = prctl(PR_SET_MM, PR_SET_MM_ARG_START, argv, 0, 0) ||
^
/usr/cjail-master/src/init.c:94:32: note: each undeclared identifier is reported only once for each function it appears in
/usr/cjail-master/src/init.c:95:30: error: ‘PR_SET_MM_ARG_END’ undeclared (first use in this function)
prctl(PR_SET_MM, PR_SET_MM_ARG_END, argv + strlen(argv) + 1, 0, 0);
^
/usr/cjail-master/src/init.c: In function ‘child_init’:
/usr/cjail-master/src/init.c:385:9: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(ep.resultpipe[1], &result, sizeof(result));
^
make[2]: *** [src/CMakeFiles/libcjail.dir/init.c.o] error 1
make[1]: *** [src/CMakeFiles/libcjail.dir/all] error 2
make: *** [all] error 2

please, your solution...

I don't know why these error ocuur.
my linux kernel version: 3.13.0-117-generic
libseccomp version : 1.0.1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.