Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKORk-0001p7-LB for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Mar 2021 16:46:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lKORj-0001N7-8Y for pgsql-bugs@arkaria.postgresql.org; Thu, 11 Mar 2021 16:45:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lKORj-0001M5-2N for pgsql-bugs@lists.postgresql.org; Thu, 11 Mar 2021 16:45:59 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lKORb-00028A-SG for pgsql-bugs@lists.postgresql.org; Thu, 11 Mar 2021 16:45:58 +0000 Received: by mail-wm1-x336.google.com with SMTP id b2-20020a7bc2420000b029010be1081172so13244040wmj.1 for ; Thu, 11 Mar 2021 08:45:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pcorp-us.20150623.gappssmtp.com; s=20150623; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:thread-index :content-language; bh=XmqvB/Lu3VOHUqmLLj2JOsq8GhCmv8YNRsLcrlVSlyQ=; b=OSQq5kIH8yhgfnhdMpOgQOFoA91xBA+5wcpcippZuPlTdK+ujulMTrV5V9lAjIYl20 WT9IwhgtT6L8sCWcv6rHC9eeZEOFrTMqVLc9co194a/wGxDdK5K5mTpvUG8cK4TAlMFC L83a2sArP1kdU4CkxqDJtImP3Fbfd1K69RCllKyDs9LKiIfEV7PT5dICGYb7g8VJq20Z TRf7kgVzLYgtYBGVeAEHKMuigOCNHz8N9AA0pvTqVCTmgHcjfYEDlYtOfk5JpwReZGAo YolO43EzMFKt3ihRim+0AbvekOoF4N35iOuNh/UKj2MUx0GJDksLxY4/NtvK69KbtKP9 8EMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=XmqvB/Lu3VOHUqmLLj2JOsq8GhCmv8YNRsLcrlVSlyQ=; b=sa7DhTya9zZ9HtRjte6F621ftxRLcLwHEXI8UGvP9Je0lmI1giIH60m/yzhM9aZncU n7Aos/2AIUNbI2oURHJXrVumPC7n79cMWwSt9GswBxfUx1DHVrm4ZolWvRhcH+STWrNy 5X8AbMBUcTKq0n59tZiHrQe+Xcn8DVOXNqznvb6K6UG/81jF2+0rpHnkWz6LWQ1JhXZh ckDjLkXWJ6tjFkCTNt6U8ftKkRPlZUDlHUibsEvbO4jzNugVcoKqGqW5/AZ6+JWcnVfF R6pGW2EAyHR8+X0ntSVm/ck/QM7uKawWXAupZhlqvvoZyPd6OSlbvv9dsK4UF97LuMTG m5eg== X-Gm-Message-State: AOAM532saQylsTwzrzgjdyf/Uo/Kieg3hRyEdEPpLHAtXkgsuR7dDRyz 6u2Ig3upbSKlZ1cTeHnB5+DM4zGej/DliQ== X-Google-Smtp-Source: ABdhPJyhKsLrYdDDsbp8atlBDSndF8iLAf/LsxhLha1I0iJtOtGFH1AGcAQlFTjlTKmBRT2zKioooQ== X-Received: by 2002:a05:600c:4013:: with SMTP id i19mr3602574wmm.33.1615481150623; Thu, 11 Mar 2021 08:45:50 -0800 (PST) Received: from F (50-78-240-110-static.hfc.comcastbusiness.net. [50.78.240.110]) by smtp.gmail.com with ESMTPSA id l15sm4722293wru.38.2021.03.11.08.45.49 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Mar 2021 08:45:50 -0800 (PST) From: "Regina Obe" To: "'Tom Lane'" Cc: References: <16920-2332590daf58407c@postgresql.org> <2291040.1615474929@sss.pgh.pa.us> <000501d71691$c616a200$5243e600$@pcorp.us> <2294904.1615480631@sss.pgh.pa.us> In-Reply-To: <2294904.1615480631@sss.pgh.pa.us> Subject: RE: BUG #16920: Can't compile PostGIS with MingW64 against PostgreSQL 14 head Date: Thu, 11 Mar 2021 11:45:47 -0500 Message-ID: <000201d71695$fdd14ed0$f973ec70$@pcorp.us> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 15.0 Thread-Index: AQHCjUPo5BIH9fF+WOyrxdMuyoS6VgH0iV+7AYDFGVYDOnnBIqpykr/A Content-Language: en-us List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > Our usual recommendation is to include postgres.h before all else; is there a > really good reason to be pulling in libxml headers before that? > > Having seen this, I now guess that your issue is happening because one of > those headers has already included before win32_port.h tries to > do so. That makes our attempt to relabel the system's "struct stat" as "struct > microsoft_native_stat" not work. > In general, the portability hacks that postgres.h does for some platforms > aren't reliable if any system headers have already been pulled in. > > regards, tom lane I don't think there is a reason to include libxml first. Thanks for the help. I'll revise those to see if it fixes the issue without messing with the Postgres include files. Thanks, Regina