Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA

From: Yaco312 <yannick(dot)collette(at)ultra-ft(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #16774: PostgreSQL clean build MINGW64 gcc but initdb fails, cannot find startadress CreateProcessAsUserA
Date: 2021-03-08 15:57:02
Message-ID: 1615219022232-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-03-08 16:18:25 Re: Upgrade issue during Postgres 9.6 to 12.3 on the two and more server
Previous Message Vilem Benjamin Liepelt 2021-03-08 14:53:49 Re: Hex escapes in strings only support ASCII range