MinGW compilation - Mailing list pgsql-bugs

From Tomasz Szypowski
Subject MinGW compilation
Date
Msg-id CACmJi2LMGCNs7gWPhzJprCTHk4NikryPSHTqA2xW57oUCAP+sQ@mail.gmail.com
Whole thread Raw
List pgsql-bugs
Hello,

I want to build PostgreSQL by MinGW.
Here is the instruction:

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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #15858: could not stat file - over 4GB
Next
From: PG Bug reporting form
Date:
Subject: BUG #16622: pg_dump produces erroneus ALTER TABLE statement for a table with an inherited generated column