Re: pgevent warnings on mingw - Mailing list pgsql-hackers
From | Hiroshi Saito |
---|---|
Subject | Re: pgevent warnings on mingw |
Date | |
Msg-id | B008EEDDAF564E0B9167C1C3810F95B9@HIRO57887DE653 Whole thread Raw |
In response to | pgevent warnings on mingw (Andrew Dunstan <andrew@dunslane.net>) |
Responses |
Re: pgevent warnings on mingw
|
List | pgsql-hackers |
Hi. >> dllwrap --def pgevent.def -o pgevent.dll pgevent.o pgmsgevent.o >> Warning: resolving _DllUnregisterServer by linking to >> _DllUnregisterServer@0 >> Use --enable-stdcall-fixup to disable these warnings >> Use --disable-stdcall-fixup to disable these fixups >> Warning: resolving _DllRegisterServer by linking to _DllRegisterServer@0 >> Warning: resolving _DllUnregisterServer by linking to >> _DllUnregisterServer@0 >> Use --enable-stdcall-fixup to disable these warnings >> Use --disable-stdcall-fixup to disable these fixups >> Warning: resolving _DllRegisterServer by linking to _DllRegisterServer@0 >> >> What do we have to do to clean this stuff up? I was solved for Marko-san at the time of the work of pgbouncer, and obtained the solution. The patch is this. == Before == $ make gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -I../../../src/include -I/C/work/MinGW_WORK/include -I./src/include/port/win32 -DEXEC_BACKEND "-I../../../src/include/port/win32" -c -o pgevent.o pgevent.c sed -e 's;FILEDESC;"Eventlog message formatter";' -e 's;VFT_APP;VFT_DLL;' -e 's;_ICO_;;' -e 's;\(VERSION.*\),0 *$;\1,'`date '+%y%j' | sed 's/^0*//'`';' ../../../src/port/win32ver.rc >win32ver.rc windres pgmsgevent.rc -o pgmsgevent.o --include-dir=../../../src/include --include-dir=../../../src/include --include-dir=. dllwrap --def pgevent.def -o pgevent.dll pgevent.o pgmsgevent.o Warning: resolving _DllUnregisterServer by linking to _DllUnregisterServer@0 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _DllRegisterServer by linking to _DllRegisterServer@0 Warning: resolving _DllUnregisterServer by linking to _DllUnregisterServer@0 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _DllRegisterServer by linking to _DllRegisterServer@0 == After patch. == $ make gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -g -I../../../src/include -I/C/work/MinGW_WORK/include -I./src/include/port/win32 -DEXEC_BACKEND "-I../../../src/include/port/win32" -c -o pgevent.o pgevent.c sed -e 's;FILEDESC;"Eventlog message formatter";' -e 's;VFT_APP;VFT_DLL;' -e 's;_ICO_;;' -e 's;\(VERSION.*\),0 *$;\1,'`date '+%y%j' | sed 's/^0*//'`';' ../../../src/port/win32ver.rc >win32ver.rc windres pgmsgevent.rc -o pgmsgevent.o --include-dir=../../../src/include --include-dir=../../../src/include --include-dir=. dlltool --export-all-symbols -A --output-def pgevent.def pgevent.o pgmsgevent.o dllwrap --def pgevent.def -o pgevent.dll pgevent.o pgmsgevent.o == It will be great if this is taken into consideration. Regards, Hiroshi Saito
Attachment
pgsql-hackers by date: