From: | Alexander Lakhin <exclusion(at)gmail(dot)com> |
---|---|
To: | mats(dot)stenfeldt(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org, PG Bug reporting form <noreply(at)postgresql(dot)org> |
Subject: | Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA |
Date: | 2021-01-04 18:00:00 |
Message-ID: | f12f0cba-f174-34e7-633b-793da6376a33@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-01-04 18:15:53 | Re: BUG #16803: create a table only one text/varchar column, storage options toast_tuple_target doesn't work |
Previous Message | PG Bug reporting form | 2021-01-04 17:48:20 | BUG #16804: substring() function returns "negative substring length" error when using a large length argument |