sudo pip install sysctl Collecting sysctl Using cached sysctl-0.2.tar.gz Installing collected packages: sysctl Running setup.py install for sysctl ... error Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e1x8tmn4/sysctl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-fj7p4box-record/install-record.txt --single-version-externally-managed --compile: running install running build running build_py creating build creating build/lib.linux-x86_64-3.4 creating build/lib.linux-x86_64-3.4/sysctl copying sysctl/__init__.py -> build/lib.linux-x86_64-3.4/sysctl creating build/lib.linux-x86_64-3.4/sysctl/tests copying sysctl/tests/test_sysctl_a_num.py -> build/lib.linux-x86_64-3.4/sysctl/tests copying sysctl/tests/test_sysctl_setvalue.py -> build/lib.linux-x86_64-3.4/sysctl/tests copying sysctl/tests/__init__.py -> build/lib.linux-x86_64-3.4/sysctl/tests copying sysctl/tests/test_sysctl_w.py -> build/lib.linux-x86_64-3.4/sysctl/tests running build_ext building 'sysctl/_sysctl' extension creating build/temp.linux-x86_64-3.4 creating build/temp.linux-x86_64-3.4/sysctl x86_64-pc-linux-gnu-gcc -pthread -fPIC -I/usr/include/python3.4m -c sysctl/_sysctl.c -o build/temp.linux-x86_64-3.4/sysctl/_sysctl.o -Wall sysctl/_sysctl.c:37:21: error: 'CTLTYPE' undeclared here (not in a function) static int ctl_size[CTLTYPE+1] = { ^ sysctl/_sysctl.c:38:3: error: 'CTLTYPE_INT' undeclared here (not in a function) [CTLTYPE_INT] = sizeof(int), ^ sysctl/_sysctl.c:38:3: error: array index in initializer not of integer type sysctl/_sysctl.c:38:3: note: (near initialization for 'ctl_size') sysctl/_sysctl.c:39:3: error: 'CTLTYPE_UINT' undeclared here (not in a function) [CTLTYPE_UINT] = sizeof(u_int), ^ sysctl/_sysctl.c:39:3: error: array index in initializer not of integer type sysctl/_sysctl.c:39:3: note: (near initialization for 'ctl_size') sysctl/_sysctl.c:40:3: error: 'CTLTYPE_LONG' undeclared here (not in a function) [CTLTYPE_LONG] = sizeof(long), ^ sysctl/_sysctl.c:40:3: error: array index in initializer not of integer type sysctl/_sysctl.c:40:3: note: (near initialization for 'ctl_size') sysctl/_sysctl.c:41:3: error: 'CTLTYPE_ULONG' undeclared here (not in a function) [CTLTYPE_ULONG] = sizeof(u_long), ^ sysctl/_sysctl.c:41:3: error: array index in initializer not of integer type sysctl/_sysctl.c:41:3: note: (near initialization for 'ctl_size') sysctl/_sysctl.c:46:3: error: 'CTLTYPE_QUAD' undeclared here (not in a function) [CTLTYPE_QUAD] = sizeof(int64_t), ^ sysctl/_sysctl.c:46:3: error: array index in initializer not of integer type sysctl/_sysctl.c:46:3: note: (near initialization for 'ctl_size') sysctl/_sysctl.c: In function 'Sysctl_setvalue': sysctl/_sysctl.c:138:26: error: 'PyInt_Type' undeclared (first use in this function) if(value->ob_type != &PyInt_Type) { ^ sysctl/_sysctl.c:138:26: note: each undeclared identifier is reported only once for each function it appears in sysctl/_sysctl.c: In function 'new_sysctlobj': sysctl/_sysctl.c:343:8: error: 'CTLTYPE_STRING' undeclared (first use in this function) case CTLTYPE_STRING: ^ sysctl/_sysctl.c:438:8: error: 'CTLTYPE_OPAQUE' undeclared (first use in this function) case CTLTYPE_OPAQUE: ^ sysctl/_sysctl.c:445:12: warning: implicit declaration of function 'PyInt_FromLong' [-Wimplicit-function-declaration] item = PyInt_FromLong(ci->hz); ^ sysctl/_sysctl.c:445:29: error: dereferencing pointer to incomplete type 'struct clockinfo' item = PyInt_FromLong(ci->hz); ^ sysctl/_sysctl.c:473:36: error: 'CTLFLAG_WR' undeclared (first use in this function) writable = PyBool_FromLong(kind & CTLFLAG_WR); ^ sysctl/_sysctl.c:474:36: error: 'CTLFLAG_TUN' undeclared (first use in this function) tuneable = PyBool_FromLong(kind & CTLFLAG_TUN); ^ sysctl/_sysctl.c: In function 'sysctl_filter': sysctl/_sysctl.c:521:18: error: 'CTLTYPE_NODE' undeclared (first use in this function) if(ctltype == CTLTYPE_NODE) { ^ sysctl/_sysctl.c:556:50: error: 'CTLFLAG_WR' undeclared (first use in this function) if( (PyObject *)writable == Py_True && (kind & CTLFLAG_WR) == 0 ) { ^ sysctl/_sysctl.c: In function 'PyInit__sysctl': sysctl/_sysctl.c:648:45: error: 'CTLTYPE_NODE' undeclared (first use in this function) PyModule_AddIntConstant(m, "CTLTYPE_NODE", CTLTYPE_NODE); ^ sysctl/_sysctl.c:650:47: error: 'CTLTYPE_STRING' undeclared (first use in this function) PyModule_AddIntConstant(m, "CTLTYPE_STRING", CTLTYPE_STRING); ^ sysctl/_sysctl.c:651:47: error: 'CTLTYPE_OPAQUE' undeclared (first use in this function) PyModule_AddIntConstant(m, "CTLTYPE_OPAQUE", CTLTYPE_OPAQUE); ^ sysctl/_sysctl.c:652:47: error: 'CTLTYPE_STRUCT' undeclared (first use in this function) PyModule_AddIntConstant(m, "CTLTYPE_STRUCT", CTLTYPE_STRUCT); ^ sysctl/_sysctl.c: At top level: sysctl/_sysctl.c:37:12: warning: 'ctl_size' defined but not used [-Wunused-variable] static int ctl_size[CTLTYPE+1] = { ^ error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-e1x8tmn4/sysctl/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-fj7p4box-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-e1x8tmn4/sysctl/