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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"

Reply via email to