Re: pgevent warnings on mingw

Поиск
Список
Период
Сортировка
От Hiroshi Saito
Тема Re: pgevent warnings on mingw
Дата
Msg-id B008EEDDAF564E0B9167C1C3810F95B9@HIRO57887DE653
обсуждение исходный текст
Ответ на pgevent warnings on mingw  (Andrew Dunstan <andrew@dunslane.net>)
Ответы Re: pgevent warnings on mingw  (Magnus Hagander <magnus@hagander.net>)
Список 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

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: KaiGai Kohei
Дата:
Сообщение: Re: How to get SE-PostgreSQL acceptable
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: pgevent warnings on mingw