From owner-freebsd-ports@freebsd.org Fri Jun 22 22:40:29 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 760961001DD8 for ; Fri, 22 Jun 2018 22:40:29 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 26FF085FED; Fri, 22 Jun 2018 22:40:29 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1354) id 1EA5576E0; Fri, 22 Jun 2018 22:40:29 +0000 (UTC) From: Jan Beich To: The Doctor Cc: freebsd-ports@freebsd.org Subject: Re: Python Socket module Issues References: <20180622184351.GC33073@doctor.nl2k.ab.ca> Date: Sat, 23 Jun 2018 00:40:24 +0200 In-Reply-To: <20180622184351.GC33073@doctor.nl2k.ab.ca> (The Doctor's message of "Fri, 22 Jun 2018 12:43:51 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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 22:40:29 -0000 The Doctor writes: > 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: > ^ AF_PACKET code is guarded by HAVE_NETPACKET_PACKET_H which is defined by AC_CHECK_HEADERS(netpacket/packet.h) in configure.ac. If you have the file under /usr/include, /usr/local/include or somewhere else that CPPFLAGS or CFLAGS points to then you may want to override the check via CONFIGURE_ENV+=ac_cv_header_netpacket_packet_h=no in Makefile.local for just lang/python* or in /etc/make.conf for all. netpacket/packet.h appears to be provided by libc package only on Linux. If you don't want to a assume pilot error then try bisecting the host environment against a pristine jail until you get can narrow down the steps to reproduce worth for a bug report. > Here is a solution: > > Alias AF_PAKCET to AF_LINK and > alias ifr.ifr_ifindex to ifr.ifr_ifru.ifru_index Why not contact the maintainer instead of suggesting possibly incorrect fix?