Обсуждение: Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

Поиск
Список
Период
Сортировка

Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

От
Kiswono Prayogo
Дата:
Just reporting that Alpha 4 was working just fine..
http://pastebin.com/ri2gXJDN

but Alpha 5 didn't:

make[4]: Entering directory
`/home/kyz/Repository/postgres/pgsql/src/backend/utils/error'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -g -Werror -I../../../../src/include -D_GNU_SOURCE
-I/usr/include/libxml2   -c -o assert.o assert.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -g -Werror -I../../../../src/include -D_GNU_SOURCE
-I/usr/include/libxml2   -c -o elog.o elog.c
cc1: warnings being treated as errors
elog.c: In function ‘write_console’:
elog.c:1698: error: ignoring return value of ‘write’, declared with
attribute warn_unused_result
elog.c: In function ‘write_pipe_chunks’:
elog.c:2390: error: ignoring return value of ‘write’, declared with
attribute warn_unused_result
elog.c:2399: error: ignoring return value of ‘write’, declared with
attribute warn_unused_result
make[4]: *** [elog.o] Error 1
make[4]: Leaving directory
`/home/kyz/Repository/postgres/pgsql/src/backend/utils/error'
make[3]: *** [error-recursive] Error 2
make[3]: Leaving directory
`/home/kyz/Repository/postgres/pgsql/src/backend/utils'
make[2]: *** [utils-recursive] Error 2
make[2]: Leaving directory `/home/kyz/Repository/postgres/pgsql/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/kyz/Repository/postgres/pgsql/src'
make: *** [all] Error 2

--
Regards,
Kiswono P
GB

Re: Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

От
Tom Lane
Дата:
Kiswono Prayogo <kiswono@gmail.com> writes:
> Just reporting that Alpha 4 was working just fine..
> http://pastebin.com/ri2gXJDN

> but Alpha 5 didn't:

If you got a copy that includes src/Makefile.custom, remove that and
try again.

            regards, tom lane

Re: Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

От
Alvaro Herrera
Дата:
Kiswono Prayogo escribió:
> Just reporting that Alpha 4 was working just fine..
> http://pastebin.com/ri2gXJDN
>
> but Alpha 5 didn't:

Yeah, known packaging bug.  Please remove src/Makefile.custom and try
again (notice the -Werror that shouldn't be there)


> elog.c:1698: error: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> elog.c: In function ‘write_pipe_chunks’:
> elog.c:2390: error: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> elog.c:2399: error: ignoring return value of ‘write’, declared with
> attribute warn_unused_result

Though, is there value in silencing these warnings?

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

Re: Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

От
Kiswono Prayogo
Дата:
oic, thanks ^^

--
Regards,
Kiswono P
GB