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

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 =E2=80=98write_console=E2=80=99:
elog.c:1698: error: ignoring return value of =E2=80=98write=E2=80=99, decla=
red with
attribute warn_unused_result
elog.c: In function =E2=80=98write_pipe_chunks=E2=80=99:
elog.c:2390: error: ignoring return value of =E2=80=98write=E2=80=99, decla=
red with
attribute warn_unused_result
elog.c:2399: error: ignoring return value of =E2=80=98write=E2=80=99, decla=
red 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

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Kiswono Prayogo [ Do, 08 April 2010 03:19 ] [ ID #2038128 ]

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

Kiswono Prayogo <kiswono [at] 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

--
Sent via pgsql-admin mailing list (pgsql-admin [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
Tom Lane [ Do, 08 April 2010 03:23 ] [ ID #2038129 ]

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

Kiswono Prayogo escribi=C3=B3:
> 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 =E2=80=98write=E2=80=99, d=
eclared with
> attribute warn_unused_result
> elog.c: In function =E2=80=98write_pipe_chunks=E2=80=99:
> elog.c:2390: error: ignoring return value of =E2=80=98write=E2=80=99, d=
eclared with
> attribute warn_unused_result
> elog.c:2399: error: ignoring return value of =E2=80=98write=E2=80=99, d=
eclared with
> attribute warn_unused_result

Though, is there value in silencing these warnings?

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

--
Sent via pgsql-hackers mailing list (pgsql-hackers [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Alvaro Herrera [ Do, 08 April 2010 03:24 ] [ ID #2038130 ]

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

oic, thanks ^^

--
Regards,
Kiswono P
GB

--
Sent via pgsql-hackers mailing list (pgsql-hackers [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
Kiswono Prayogo [ Do, 08 April 2010 03:26 ] [ ID #2038131 ]
Datenbanken » gmane.comp.db.postgresql.admin » Compile Problem for Alpha 5 in /src/backend/utils/error/elog.c

Vorheriges Thema: Database level encryption
Nächstes Thema: turn pitr 'on' on PostgreSQL 8.2 - pg_standby