From owner-freebsd-ports@freebsd.org Fri Jun 22 18:45:09 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7D5A2102435A for ; Fri, 22 Jun 2018 18:45:09 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor.nl2k.ab.ca (doctor.nl2k.ab.ca [204.209.81.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 23AB37C2C9 for ; Fri, 22 Jun 2018 18:45:09 +0000 (UTC) (envelope-from doctor@doctor.nl2k.ab.ca) Received: from doctor by doctor.nl2k.ab.ca with local (Exim 4.91 (FreeBSD)) (envelope-from ) id 1fWR2F-0008pP-69 for freebsd-ports@freebsd.org; Fri, 22 Jun 2018 12:43:51 -0600 Date: Fri, 22 Jun 2018 12:43:51 -0600 From: The Doctor To: freebsd-ports@freebsd.org Subject: Python Socket module Issues Message-ID: <20180622184351.GC33073@doctor.nl2k.ab.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.0 (2018-05-17) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jun 2018 18:45:09 -0000 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