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 1lJJXZ-0006J0-VH for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Mar 2021 17:19:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJJXY-00013o-TY for pgsql-bugs@arkaria.postgresql.org; Mon, 08 Mar 2021 17:19:32 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lJIFn-0006Gv-AD for pgsql-bugs@lists.postgresql.org; Mon, 08 Mar 2021 15:57:07 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lJIFj-0006w3-Su for pgsql-bugs@postgresql.org; Mon, 08 Mar 2021 15:57:06 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 395FC24D4A1A6 for ; Mon, 8 Mar 2021 08:57:02 -0700 (MST) Date: Mon, 8 Mar 2021 08:57:02 -0700 (MST) From: Yaco312 To: pgsql-bugs@postgresql.org Message-ID: <1615219022232-0.post@n3.nabble.com> In-Reply-To: References: <16774-5fc947628f64c057@postgresql.org> Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, I have the exact same problem with REL_11_STABLE using the following configuration. No errors at compilation. Tried your work around and still having same problem. # gcc --version gcc.exe (Rev6, Built by MSYS2 project) 10.2.0 ./configure --host=x86_64-w64-mingw32 --prefix=/c/postgresql/pg11/ --with-openssl --with-libxml make (no errors) make install (no errors) initdb.exe error The procedure entry point CreateProcessAsUserA could not be located in dynamic link library... Applied solution below without any success. CFLAGS="-D WINVER=0x0600 -D _WIN32_WINNT=0x0600" LIBS="-ladvapi32" ./configure --host=x86_64-w64-mingw32 --prefix=/c/postgresql/pg11/ --with-openssl --with-libxml Thanks in advance for your help. Yannick -- Sent from: https://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html