MinGW compilation

Started by Tomasz Szypowskiover 5 years ago1 messagesbugs
Jump to latest
#1Tomasz Szypowski
tomasz.szypowski@gmail.com

Hello,

I want to build PostgreSQL by MinGW.
Here is the instruction:
https://wiki.postgresql.org/wiki/Building_With_MinGW

after make i receive following error (on windows 10 and 7)

--allow-multiple-definition -Wl,--disable-auto-import -Wl,--as-needed
-Wl,--stack=4194304 -Wl,--export-all-symbols
-Wl,--out-implib=libpostgres.a -lm -lws2_32 -lsecur32 -o postgres.exe
*port/pg_shmem.o:pg_shmem.c:(.text+0x456): undefined reference to
`GetLargePageMinimum'*
*regex/regcomp.o:regcomp.c:(.text+0x1a2a): undefined reference to
`_ispunct_l'*
*utils/adt/pg_locale.o:pg_locale.c:(.text+0x14b4): undefined reference to
`_create_locale'*
*utils/adt/pg_locale.o:pg_locale.c:(.text+0x16da): undefined reference to
`uselocale'*
*utils/adt/pg_locale.o:pg_locale.c:(.text+0x16f6): undefined reference to
`uselocale'*
*utils/adt/pg_locale.o:pg_locale.c:(.text+0x17c7): undefined reference to
`uselocale'*
*utils/adt/pg_locale.o:pg_locale.c:(.text+0x17e7): undefined reference to
`uselocale'*
collect2.exe: error: ld returned 1 exit status
make: *** [postgres] Error 1

I had to downgrade mingwrt to 5.0.1 due to other errors.

Best regards
Thomas Szypowski