pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: mats.stenfeldt@gmail.com
Subject: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
Date: Mon, 14 Dec 2020 20:47:26 +0000
Message-ID: <16774-5fc947628f64c057@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      16774
Logged by:          Mats Stenfeldt
Email address:      mats.stenfeldt@gmail.com
PostgreSQL version: 13.0
Operating system:   Windows 7 64-bit
Description:        

Build environment: MINGW64, GCC (Rev6, Built by MSYS2 project) 10.2.0
REL=REL_13_STABLE
Build Steps:
1. git clone git://git.postgresql.org/git/postgresql.git source
2. rel=REL_13_STABLE
3. git checkout $rel
4. source=/y/builds/postgres/source/
5. dist=/y/builds/postgres/dist/REL_13_STABLE/
6. $source/configure --host=x86_64-w64-mingw32 --prefix=$dist && make &&
make install

Clean build without errors. But when i try to run the following command:
initdb --pgdata=Y:\data\pgsqlgw --username=postgres --auth=trust
A messagebox pops up (translated from Swedish), Cannot find
procedurestartadress CreateProcessAsUserA in DLL-file KERNEL32.DLL.
and the program exits.
I have checked INITDB.EXE with Dependency Walker there is a call for:
CreateProcessAsUserA in KERNEL32.DLL [hint 235 (0x00EB)].
Maybe the call should be for CreateProcessWithLogonW instead of
CreateProcessAsUserA?



view thread (6+ messages)  latest in thread

Message-ID: <16774-5fc947628f64c057@postgresql.org>
Permalink:  ../16774-5fc947628f64c057@postgresql.org/
Also on:    postgresql.org/message-id/16774-5fc947628f64c057@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, mats.stenfeldt@gmail.com
  Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
  In-Reply-To: <16774-5fc947628f64c057@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox