pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Lakhin <exclusion@gmail.com>
To: mats.stenfeldt@gmail.com, pgsql-bugs@lists.postgresql.org, PG Bug reporting form <noreply@postgresql.org>
Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
Date: Mon, 4 Jan 2021 21:00:00 +0300
Message-ID: <f12f0cba-f174-34e7-633b-793da6376a33@gmail.com> (raw)
In-Reply-To: <16774-5fc947628f64c057@postgresql.org>
References: <16774-5fc947628f64c057@postgresql.org>

Hello Mats,

14.12.2020 23:47, PG Bug reporting form wrote:
> The following bug has been logged on the website:
>
> Bug reference:      16774
> ...
>
> Build environment: MINGW64, GCC (Rev6, Built by MSYS2 project) 10.2.0
> REL=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?
The CreateProcessAsUserA function is located in advapi32 now, so you
should link with that library. For example:
CFLAGS="-D WINVER=0x0600 -D _WIN32_WINNT=0x0600" LIBS="-ladvapi32"
./configure --host=x86_64-w64-mingw32 ...

Best regards,
Alexander





view thread (6+ messages)  latest in thread

Message-ID: <f12f0cba-f174-34e7-633b-793da6376a33@gmail.com>
Permalink:  ../f12f0cba-f174-34e7-633b-793da6376a33@gmail.com/
Also on:    postgresql.org/message-id/f12f0cba-f174-34e7-633b-793da6376a33@gmail.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: exclusion@gmail.com, noreply@postgresql.org
  Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
  In-Reply-To: <f12f0cba-f174-34e7-633b-793da6376a33@gmail.com>
  References: <16774-5fc947628f64c057@postgresql.org> <f12f0cba-f174-34e7-633b-793da6376a33@gmail.com>

* 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