Date: Fri, 22 Jun 2018 12:43:51 -0600 From: The Doctor <doctor@doctor.nl2k.ab.ca> To: freebsd-ports@freebsd.org Subject: Python Socket module Issues Message-ID: <20180622184351.GC33073@doctor.nl2k.ab.ca>
next in thread | raw e-mail | index | archive | help
Sometimes when copiling Python I run into /usr/ports/lang/python36/work/Python-3.6.5/Modules/socketmodule.c:1832:10: error: use of undeclared identifier 'AF_PACKET' case AF_PACKET: ^ /usr/ports/lang/python36/work/Python-3.6.5/Modules/socketmodule.c:1875:28: error: use of undeclared identifier 'AF_PACKET' addr->sll_family = AF_PACKET; ^ /usr/ports/lang/python36/work/Python-3.6.5/Modules/socketmodule.c:1877:33: error: no member named 'ifr_ifindex' in 'struct ifreq' addr->sll_ifindex = ifr.ifr_ifindex; ~~~ ^ /usr/ports/lang/python36/work/Python-3.6.5/Modules/socketmodule.c:2165:10: error: use of undeclared identifier 'AF_PACKET' case AF_PACKET: ^ 1 warning and 4 errors generated. Here is a solution: Alias AF_PAKCET to AF_LINK and alias ifr.ifr_ifindex to ifr.ifr_ifru.ifru_index -- Member - Liberal International This is doctor@@nl2k.ab.ca Ici doctor@@nl2k.ab.ca Yahweh, Queen & country!Never Satan President Republic!Beware AntiChrist rising! https://www.empire.kred/ROOTNK?t=94a1f39b Look at Psalms 14 and 53 on Atheism The unspoken word never does harm. -Kossuth
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180622184351.GC33073>