- $ pip install netifaces --verbose
- Using pip 23.0.1 from /var/tmp/v/lib64/python3.10/site-packages/pip (python 3.10)
- Collecting netifaces
- Using cached netifaces-0.11.0.tar.gz (30 kB)
- Running command python setup.py egg_info
- running egg_info
- creating /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info
- writing /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/PKG-INFO
- writing dependency_links to /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/dependency_links.txt
- writing top-level names to /tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/top_level.txt
- writing manifest file '/tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/SOURCES.txt'
- reading manifest file '/tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/SOURCES.txt'
- reading manifest template 'MANIFEST.in'
- adding license file 'LICENSE'
- writing manifest file '/tmp/pip-pip-egg-info-2r2o1k2p/netifaces.egg-info/SOURCES.txt'
- Preparing metadata (setup.py) ... done
- Installing collected packages: netifaces
- 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
-
- Running command Running setup.py install for netifaces
- running install
- /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.
- warnings.warn(
- running build
- running build_ext
- checking for getifaddrs...found.
- checking for getnameinfo...found.
- checking for IPv6 socket IOCTLs...not found.
- 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.
- checking whether struct sockaddr has a length field...no.
- checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc llc.
- checking for routing socket support...no.
- checking for sysctl(CTL_NET...) support...no.
- checking for netlink support...yes.
- will use netlink to read routing table
- building 'netifaces' extension
- 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
- netifaces.c: In function ‘gateways’:
- netifaces.c:1843:33: warning: comparison of integer expressions of different signedness: ‘__u32’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
- 1843 | if (pmsg->hdr.nlmsg_seq != seq || pmsg->hdr.nlmsg_pid != sanl.nl_pid)
- | ^~
- creating build/lib.linux-x86_64-3.10
- 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
- running install_lib
- copying build/lib.linux-x86_64-3.10/netifaces.cpython-310-x86_64-linux-gnu.so -> /var/tmp/v/lib64/python3.10/site-packages
- running install_egg_info
- running egg_info
- writing netifaces.egg-info/PKG-INFO
- writing dependency_links to netifaces.egg-info/dependency_links.txt
- writing top-level names to netifaces.egg-info/top_level.txt
- reading manifest file 'netifaces.egg-info/SOURCES.txt'
- reading manifest template 'MANIFEST.in'
- adding license file 'LICENSE'
- writing manifest file 'netifaces.egg-info/SOURCES.txt'
- Copying netifaces.egg-info to /var/tmp/v/lib64/python3.10/site-packages/netifaces-0.11.0-py3.10.egg-info
- running install_scripts
- writing list of installed files to '/tmp/pip-record-9k0h7r82/install-record.txt'
- Running setup.py install for netifaces ... done
- Successfully installed netifaces-0.11.0
-
-
-
-
-
- $ pip install netifaces --verbose
- Using pip 23.0.1 from /var/tmp/v/lib64/python3.10/site-packages/pip (python 3.10)
- Collecting netifaces
- Using cached netifaces-0.11.0.tar.gz (30 kB)
- Running command python setup.py egg_info
- running egg_info
- creating /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info
- writing /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/PKG-INFO
- writing dependency_links to /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/dependency_links.txt
- writing top-level names to /tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/top_level.txt
- writing manifest file '/tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/SOURCES.txt'
- reading manifest file '/tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/SOURCES.txt'
- reading manifest template 'MANIFEST.in'
- adding license file 'LICENSE'
- writing manifest file '/tmp/pip-pip-egg-info-b7nwy9e7/netifaces.egg-info/SOURCES.txt'
- Preparing metadata (setup.py) ... done
- Installing collected packages: netifaces
- 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
- Running command Running setup.py install for netifaces
- running install
- /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.
- warnings.warn(
- running build
- running build_ext
- checking for getifaddrs...found.
- checking for getnameinfo...found.
- checking for IPv6 socket IOCTLs...not found.
- 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.
- checking whether struct sockaddr has a length field...no.
- checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un rose ash ec ll atmpvc atmsvc llc.
- checking for routing socket support...no.
- checking for sysctl(CTL_NET...) support...no.
- checking for netlink support...yes.
- will use netlink to read routing table
- building 'netifaces' extension
- 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
- netifaces.c:5:1: error: unknown type name ‘PyObject’
- 5 | PyObject *PyUnicode_FromString(const char *s)
- | ^~~~~~~~
- netifaces.c: In function ‘PyUnicode_FromString’:
- netifaces.c:7:3: error: unknown type name ‘Py_ssize_t’
- 7 | Py_ssize_t len = strlen(s);
- | ^~~~~~~~~~