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

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

am 08.04.2010 03:19:09 von 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 â€=98write_consoleâ€=99:
elog.c:1698: error: ignoring return value of â€=98writeâ€=99, decla=
red with
attribute warn_unused_result
elog.c: In function â€=98write_pipe_chunksâ€=99:
elog.c:2390: error: ignoring return value of â€=98writeâ€=99, decla=
red with
attribute warn_unused_result
elog.c:2399: error: ignoring return value of â€=98writeâ€=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

--=20
Regards,
Kiswono P
GB

--=20
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

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

am 08.04.2010 03:23:48 von Tom Lane

Kiswono Prayogo 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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

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

am 08.04.2010 03:24:12 von Alvaro Herrera

Kiswono Prayogo escribió:
> Just reporting that Alpha 4 was working just fine..
> http://pastebin.com/ri2gXJDN
>=20
> 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 â€=98writeâ€=99, d=
eclared with
> attribute warn_unused_result
> elog.c: In function â€=98write_pipe_chunksâ€=99:
> elog.c:2390: error: ignoring return value of â€=98writeâ€=99, d=
eclared with
> attribute warn_unused_result
> elog.c:2399: error: ignoring return value of â€=98writeâ€=99, d=
eclared with
> attribute warn_unused_result

Though, is there value in silencing these warnings?

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

--=20
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

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

am 08.04.2010 03:26:47 von Kiswono Prayogo

oic, thanks ^^

--
Regards,
Kiswono P
GB

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers