Snippet content copied to clipboard.
Are you sure to delete this snippet? No, don't delete
  1. $ pip install netifaces --verbose
  2. Using pip 23.0.1 from /var/tmp/v/lib64/python3.10/site-packages/pip (python 3.10)
  3. Collecting netifaces
  4. Using cached netifaces-0.11.0.tar.gz (30 kB)
  5. Running command python setup.py egg_info
  6. running egg_info
  7. creating /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info
  8. writing /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/PKG-INFO
  9. writing dependency_links to /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/dependency_links.txt
  10. writing top-level names to /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/top_level.txt
  11. writing manifest file '/tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/SOURCES.txt'
  12. reading manifest file '/tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/SOURCES.txt'
  13. reading manifest template 'MANIFEST.in'
  14. adding license file 'LICENSE'
  15. writing manifest file '/tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/SOURCES.txt'
  16. Preparing metadata (setup.py) ... done
  17. Installing collected packages: netifaces
  18. DEPRECATION: netifaces is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  19. Running command Running setup.py install for netifaces
  20. running install
  21. /var/tmp/v/lib64/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  22. warnings.warn(
  23. running build
  24. running build_ext
  25. checking for getifaddrs...found.
  26. checking for getnameinfo...found.
  27. checking for IPv6 socket IOCTLs...not found.
  28. checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/atm.h linux/llc.h linux/tipc.h.
  29. checking whether struct sockaddr has a length field...no.
  30. checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc llc.
  31. checking for routing socket support...no.
  32. checking for sysctl(CTL_NET...) support...no.
  33. checking for netlink support...yes.
  34. will use netlink to read routing table
  35. building 'netifaces' extension
  36. gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DNETIFACES_VERSION=0.11.0 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/var/tmp/v/include -I/usr/include/python3.10 -c netifaces.c -o build/temp.linux-x86_64-3.10/netifaces.o
  37. netifaces.c: In function ‘gateways’:
  38. netifaces.c:1843:33: warning: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
  39. 1843 | if (pmsg->hdr.nlmsg_seq != seq || pmsg->hdr.nlmsg_pid != sanl.nl_pid)
  40. | ^~
  41. creating build/lib.linux-x86_64-3.10
  42. gcc -shared -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -Wl,--build-id=sha1 -g build/temp.linux-x86_64-3.10/netifaces.o -L/usr/lib64 -o build/lib.linux-x86_64-3.10/netifaces.cpython-310-x86_64-linux-gnu.so
  43. running install_lib
  44. copying build/lib.linux-x86_64-3.10/netifaces.cpython-310-x86_64-linux-gnu.so -> /var/tmp/v/lib64/python3.10/site-packages
  45. running install_egg_info
  46. running egg_info
  47. writing netifaces.egg-info/PKG-INFO
  48. writing dependency_links to netifaces.egg-info/dependency_links.txt
  49. writing top-level names to netifaces.egg-info/top_level.txt
  50. reading manifest file 'netifaces.egg-info/SOURCES.txt'
  51. reading manifest template 'MANIFEST.in'
  52. adding license file 'LICENSE'
  53. writing manifest file 'netifaces.egg-info/SOURCES.txt'
  54. Copying netifaces.egg-info to /var/tmp/v/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info
  55. running install_scripts
  56. writing list of installed files to '/tmp/pip-record-9k0h7r82/install-record.txt'
  57. Running setup.py install for netifaces ... done
  58. Successfully installed netifaces-0.11.0
  59. $ pip install netifaces --verbose
  60. Using pip 23.0.1 from /var/tmp/v/lib64/python3.10/site-packages/pip (python 3.10)
  61. Collecting netifaces
  62. Using cached netifaces-0.11.0.tar.gz (30 kB)
  63. Running command python setup.py egg_info
  64. running egg_info
  65. creating /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info
  66. writing /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/PKG-INFO
  67. writing dependency_links to /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/dependency_links.txt
  68. writing top-level names to /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/top_level.txt
  69. writing manifest file '/tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/SOURCES.txt'
  70. reading manifest file '/tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/SOURCES.txt'
  71. reading manifest template 'MANIFEST.in'
  72. adding license file 'LICENSE'
  73. writing manifest file '/tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/SOURCES.txt'
  74. Preparing metadata (setup.py) ... done
  75. Installing collected packages: netifaces
  76. DEPRECATION: netifaces is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  77. Running command Running setup.py install for netifaces
  78. running install
  79. /var/tmp/v/lib64/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  80. warnings.warn(
  81. running build
  82. running build_ext
  83. checking for getifaddrs...found.
  84. checking for getnameinfo...found.
  85. checking for IPv6 socket IOCTLs...not found.
  86. checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h netrose/rose.h linux/atm.h linux/llc.h linux/tipc.h.
  87. checking whether struct sockaddr has a length field...no.
  88. checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc llc.
  89. checking for routing socket support...no.
  90. checking for sysctl(CTL_NET...) support...no.
  91. checking for netlink support...yes.
  92. will use netlink to read routing table
  93. building 'netifaces' extension
  94. gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DNETIFACES_VERSION=0.11.0 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_NETROSE_ROSE_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ROSE=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/var/tmp/v/include -I/usr/include/python3.10 -c netifaces.c -o build/temp.linux-x86_64-3.10/netifaces.o
  95. netifaces.c:5:1: error: unknown type name ‘PyObject’
  96. 5 | PyObject *PyUnicode_FromString(const char *s)
  97. | ^~~~~~~~
  98. netifaces.c: In function ‘PyUnicode_FromString’:
  99. netifaces.c:7:3: error: unknown type name ‘Py_ssize_t’
  100. 7 | Py_ssize_t len = strlen(s);
  101. | ^~~~~~~~~~

Edit this Snippet