From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 565817803E1 for ; Thu, 31 Aug 2023 16:16:39 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=wsgUhPyCBcFc8T1Px+8SNHosZQCwbnv6gB9INHZclVg=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1693498597; v=1; b=qSmkn/s1l9Cs7a0RYXMZ6SChnNgPAO1DM7/HwS5qf9eadzWhfqDCRKVJrnU9IODgia/ShRas w24aMA4EN0KLIkmrY+NOrHQfU0DyhW2Y72P0JPR05ibAbBS+jb10IgeUh3LOMr6m87jPBG+O4wv 0fSPDJ8lovcn9pv9Nuo2pbtI= X-Received: by 127.0.0.2 with SMTP id o0v3YY7687511xMikWz7be9f; Thu, 31 Aug 2023 09:16:37 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web11.2017.1693498594973281664 for ; Thu, 31 Aug 2023 09:16:37 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="375933448" X-IronPort-AV: E=Sophos;i="6.02,217,1688454000"; d="scan'208";a="375933448" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 09:13:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10819"; a="829746073" X-IronPort-AV: E=Sophos;i="6.02,217,1688454000"; d="scan'208";a="829746073" X-Received: from njayapra-mobl.gar.corp.intel.com ([10.213.123.104]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Aug 2023 09:13:13 -0700 From: "Jayaprakash, N" To: devel@edk2.groups.io Cc: Jayaprakash N , Rebecca Cran , Michael D Kinney Subject: [edk2-devel] [edk2-libc Patch 1/1] ek2-libc: socket module of python UEFI fails to compile with GCC Date: Thu, 31 Aug 2023 21:43:00 +0530 Message-Id: <20230831161300.1241-2-n.jayaprakash@intel.com> In-Reply-To: <20230831161300.1241-1-n.jayaprakash@intel.com> References: <20230831161300.1241-1-n.jayaprakash@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,n.jayaprakash@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: DvK7pKRlRuIToO6NnIPnHc1wx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b="qSmkn/s1"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4545 The compilation issues reported in the BZ are fixed by defining below 2 macros in pyconfig.h HAVE_ADDRINFO HAVE_SOCKADDR_STORAGE Cc: Rebecca Cran Cc: Michael D Kinney Cc: Jayaprakash N Signed-off-by: Jayaprakash N --- .../Python/Python-3.6.8/PyMod-3.6.8/Include/pyconfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Include/pyconfig.h b/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Include/pyconfig.h index 3b9eceb..983cfda 100644 --- a/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Include/pyconfig.h +++ b/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Include/pyconfig.h @@ -66,7 +66,7 @@ #undef HAVE_ACOSH /* struct addrinfo (netdb.h) */ -#undef HAVE_ADDRINFO +#define HAVE_ADDRINFO 1 /* Define to 1 if you have the 'alarm' function. */ #undef HAVE_ALARM @@ -683,7 +683,7 @@ #undef HAVE_SOCKADDR_SA_LEN /* struct sockaddr_storage (sys/socket.h) */ -#undef HAVE_SOCKADDR_STORAGE +#define HAVE_SOCKADDR_STORAGE 1 /* Define if you have the 'socketpair' function. */ #undef HAVE_SOCKETPAIR -- 2.40.0.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#108200): https://edk2.groups.io/g/devel/message/108200 Mute This Topic: https://groups.io/mt/101077159/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-