Re: Importing pg_bsd_indent into our source tree

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Importing pg_bsd_indent into our source tree
Дата
Msg-id 20230209221450.bkuozhhzlgpupx4d@awork3.anarazel.de
обсуждение исходный текст
Ответ на Re: Importing pg_bsd_indent into our source tree  (Andres Freund <andres@anarazel.de>)
Ответы Re: Importing pg_bsd_indent into our source tree  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

On 2023-02-09 13:55:32 -0800, Andres Freund wrote:
> ../src/tools/pg_bsd_indent/args.c(179): error C2065: 'PATH_MAX': undeclared identifier
> ../src/tools/pg_bsd_indent/args.c(179): error C2057: expected constant expression
> ../src/tools/pg_bsd_indent/args.c(179): error C2466: cannot allocate an array of constant size 0
> ../src/tools/pg_bsd_indent/args.c(179): error C2133: 'fname': unknown size
> ../src/tools/pg_bsd_indent/args.c(183): warning C4034: sizeof returns 0
> ../src/tools/pg_bsd_indent/args.c(185): warning C4034: sizeof returns 0
> [1557/2161] Compiling C object src/tools/pg_bsd_indent/pg_bsd_indent.exe.p/err.c.obj
> [1558/2161] Precompiling header src/interfaces/ecpg/ecpglib/libecpg.dll.p/meson_pch-c.c
> [1559/2161] Compiling C object src/tools/pg_bsd_indent/pg_bsd_indent.exe.p/indent.c.obj
> FAILED: src/tools/pg_bsd_indent/pg_bsd_indent.exe.p/indent.c.obj
> "cl" "-Isrc\tools/pg_bsd_indent\pg_bsd_indent.exe.p" "-Isrc\tools/pg_bsd_indent" "-I..\src\tools\pg_bsd_indent"
"-Isrc\include""-I..\src\include" "-Ic:\openssl\1.1\include" "-I..\src\include\port\win32"
"-I..\src\include\port\win32_msvc""/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/Od" "/Zi" "/DWIN32" "/DWINDOWS"
"/D__WINDOWS__""/D__WIN32__" "/D_CRT_SECURE_NO_DEPRECATE" "/D_CRT_NONSTDC_NO_DEPRECATE" "/wd4018" "/wd4244" "/wd4273"
"/wd4101""/wd4102" "/wd4090" "/wd4267" "/Fdsrc\tools/pg_bsd_indent\pg_bsd_indent.exe.p\indent.c.pdb"
/Fosrc/tools/pg_bsd_indent/pg_bsd_indent.exe.p/indent.c.obj"/c" ../src/tools/pg_bsd_indent/indent.c
 
> ../src/tools/pg_bsd_indent/indent.c(63): error C2065: 'MAXPATHLEN': undeclared identifier
> ../src/tools/pg_bsd_indent/indent.c(63): error C2057: expected constant expression
> ../src/tools/pg_bsd_indent/indent.c(63): error C2466: cannot allocate an array of constant size 0
> 
> This specific issue at least should be easily fixable.

The trivial fix of using MAXPGPATH made it build, without warnings. That
doesn't say anything about actually working. So I guess porting the test would
make sense.

Opinions on whether it would make sense as a shell script?

Greetings,

Andres Freund



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Importing pg_bsd_indent into our source tree
Следующее
От: Peter Smith
Дата:
Сообщение: Re: Time delayed LR (WAS Re: logical replication restrictions)