spacepaste

  1.  
  2. sudo pip install sysctl
  3. Collecting sysctl
  4. Using cached sysctl-0.2.tar.gz
  5. Installing collected packages: sysctl
  6. Running setup.py install for sysctl ... error
  7. 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:
  8. running install
  9. running build
  10. running build_py
  11. creating build
  12. creating build/lib.linux-x86_64-3.4
  13. creating build/lib.linux-x86_64-3.4/sysctl
  14. copying sysctl/__init__.py -> build/lib.linux-x86_64-3.4/sysctl
  15. creating build/lib.linux-x86_64-3.4/sysctl/tests
  16. copying sysctl/tests/test_sysctl_a_num.py -> build/lib.linux-x86_64-3.4/sysctl/tests
  17. copying sysctl/tests/test_sysctl_setvalue.py -> build/lib.linux-x86_64-3.4/sysctl/tests
  18. copying sysctl/tests/__init__.py -> build/lib.linux-x86_64-3.4/sysctl/tests
  19. copying sysctl/tests/test_sysctl_w.py -> build/lib.linux-x86_64-3.4/sysctl/tests
  20. running build_ext
  21. building 'sysctl/_sysctl' extension
  22. creating build/temp.linux-x86_64-3.4
  23. creating build/temp.linux-x86_64-3.4/sysctl
  24. 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
  25. sysctl/_sysctl.c:37:21: error: 'CTLTYPE' undeclared here (not in a function)
  26. static int ctl_size[CTLTYPE+1] = {
  27. ^
  28. sysctl/_sysctl.c:38:3: error: 'CTLTYPE_INT' undeclared here (not in a function)
  29. [CTLTYPE_INT] = sizeof(int),
  30. ^
  31. sysctl/_sysctl.c:38:3: error: array index in initializer not of integer type
  32. sysctl/_sysctl.c:38:3: note: (near initialization for 'ctl_size')
  33. sysctl/_sysctl.c:39:3: error: 'CTLTYPE_UINT' undeclared here (not in a function)
  34. [CTLTYPE_UINT] = sizeof(u_int),
  35. ^
  36. sysctl/_sysctl.c:39:3: error: array index in initializer not of integer type
  37. sysctl/_sysctl.c:39:3: note: (near initialization for 'ctl_size')
  38. sysctl/_sysctl.c:40:3: error: 'CTLTYPE_LONG' undeclared here (not in a function)
  39. [CTLTYPE_LONG] = sizeof(long),
  40. ^
  41. sysctl/_sysctl.c:40:3: error: array index in initializer not of integer type
  42. sysctl/_sysctl.c:40:3: note: (near initialization for 'ctl_size')
  43. sysctl/_sysctl.c:41:3: error: 'CTLTYPE_ULONG' undeclared here (not in a function)
  44. [CTLTYPE_ULONG] = sizeof(u_long),
  45. ^
  46. sysctl/_sysctl.c:41:3: error: array index in initializer not of integer type
  47. sysctl/_sysctl.c:41:3: note: (near initialization for 'ctl_size')
  48. sysctl/_sysctl.c:46:3: error: 'CTLTYPE_QUAD' undeclared here (not in a function)
  49. [CTLTYPE_QUAD] = sizeof(int64_t),
  50. ^
  51. sysctl/_sysctl.c:46:3: error: array index in initializer not of integer type
  52. sysctl/_sysctl.c:46:3: note: (near initialization for 'ctl_size')
  53. sysctl/_sysctl.c: In function 'Sysctl_setvalue':
  54. sysctl/_sysctl.c:138:26: error: 'PyInt_Type' undeclared (first use in this function)
  55. if(value->ob_type != &PyInt_Type) {
  56. ^
  57. sysctl/_sysctl.c:138:26: note: each undeclared identifier is reported only once for each function it appears in
  58. sysctl/_sysctl.c: In function 'new_sysctlobj':
  59. sysctl/_sysctl.c:343:8: error: 'CTLTYPE_STRING' undeclared (first use in this function)
  60. case CTLTYPE_STRING:
  61. ^
  62. sysctl/_sysctl.c:438:8: error: 'CTLTYPE_OPAQUE' undeclared (first use in this function)
  63. case CTLTYPE_OPAQUE:
  64. ^
  65. sysctl/_sysctl.c:445:12: warning: implicit declaration of function 'PyInt_FromLong' [-Wimplicit-function-declaration]
  66. item = PyInt_FromLong(ci->hz);
  67. ^
  68. sysctl/_sysctl.c:445:29: error: dereferencing pointer to incomplete type 'struct clockinfo'
  69. item = PyInt_FromLong(ci->hz);
  70. ^
  71. sysctl/_sysctl.c:473:36: error: 'CTLFLAG_WR' undeclared (first use in this function)
  72. writable = PyBool_FromLong(kind & CTLFLAG_WR);
  73. ^
  74. sysctl/_sysctl.c:474:36: error: 'CTLFLAG_TUN' undeclared (first use in this function)
  75. tuneable = PyBool_FromLong(kind & CTLFLAG_TUN);
  76. ^
  77. sysctl/_sysctl.c: In function 'sysctl_filter':
  78. sysctl/_sysctl.c:521:18: error: 'CTLTYPE_NODE' undeclared (first use in this function)
  79. if(ctltype == CTLTYPE_NODE) {
  80. ^
  81. sysctl/_sysctl.c:556:50: error: 'CTLFLAG_WR' undeclared (first use in this function)
  82. if( (PyObject *)writable == Py_True && (kind & CTLFLAG_WR) == 0 ) {
  83. ^
  84. sysctl/_sysctl.c: In function 'PyInit__sysctl':
  85. sysctl/_sysctl.c:648:45: error: 'CTLTYPE_NODE' undeclared (first use in this function)
  86. PyModule_AddIntConstant(m, "CTLTYPE_NODE", CTLTYPE_NODE);
  87. ^
  88. sysctl/_sysctl.c:650:47: error: 'CTLTYPE_STRING' undeclared (first use in this function)
  89. PyModule_AddIntConstant(m, "CTLTYPE_STRING", CTLTYPE_STRING);
  90. ^
  91. sysctl/_sysctl.c:651:47: error: 'CTLTYPE_OPAQUE' undeclared (first use in this function)
  92. PyModule_AddIntConstant(m, "CTLTYPE_OPAQUE", CTLTYPE_OPAQUE);
  93. ^
  94. sysctl/_sysctl.c:652:47: error: 'CTLTYPE_STRUCT' undeclared (first use in this function)
  95. PyModule_AddIntConstant(m, "CTLTYPE_STRUCT", CTLTYPE_STRUCT);
  96. ^
  97. sysctl/_sysctl.c: At top level:
  98. sysctl/_sysctl.c:37:12: warning: 'ctl_size' defined but not used [-Wunused-variable]
  99. static int ctl_size[CTLTYPE+1] = {
  100. ^
  101. error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1
  102. ----------------------------------------
  103. 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/
  104.