Contrib PROGRAM problem
От | Boszormenyi Zoltan |
---|---|
Тема | Contrib PROGRAM problem |
Дата | |
Msg-id | 50F9C1C5.2060301@cybertec.at обсуждение исходный текст |
Ответы |
Re: Contrib PROGRAM problem
Re: Contrib PROGRAM problem |
Список | pgsql-hackers |
Hi, I want to test my lock_timeout code under Windows and I compiled the whole PG universe with the MinGW cross-compiler for 64-bit under Fedora 18. The problem contrib directories where Makefile contains PROGRAM = ... The executables binaries are created without the .exe suffix. E.g.: [zozo@localhost oid2name]$ make x86_64-w64-mingw32-gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -I../../src/interfaces/libpq -I. -I. -I../../src/include -I./src/include/port/win32 -DEXEC_BACKEND "-I../../src/include/port/win32" -c -o oid2name.o oid2name.c x86_64-w64-mingw32-gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard oid2name.o -L../../src/port -lpgport -L../../src/interfaces/libpq -lpq -L../../src/port -Wl,--allow-multiple-definition -lpgport -lz -lcrypt -lwsock32 -ldl -lm -lws2_32 -lshfolder -o oid2name Note the "-o oid2name". Then "make install" of course fails, it expects the .exe suffix: [zozo@localhost oid2name]$ LANG=C make DESTDIR=/home/zozo/pgc93dev-win install /usr/bin/mkdir -p '/home/zozo/pgc93dev-win/usr/x86_64-w64-mingw32/sys-root/mingw/bin' /usr/bin/install -c oid2name.exe '/home/zozo/pgc93dev-win/usr/x86_64-w64-mingw32/sys-root/mingw/bin' /usr/bin/install: cannot stat 'oid2name.exe': No such file or directory make: *** [install] Error 1 Ditto for "make clean": [zozo@localhost oid2name]$ make clean rm -f oid2name.exe rm -f oid2name.o All other binaries that are under src/bin or src/backend get the proper .exe. DLLs are OK under both contrib or src. Best regards, Zoltán Böszörményi -- ---------------------------------- Zoltán Böszörményi Cybertec Schönig & Schönig GmbH Gröhrmühlgasse 26 A-2700 Wiener Neustadt, Austria Web: http://www.postgresql-support.de http://www.postgresql.at/
В списке pgsql-hackers по дате отправления: