Compile fail, alpha5 & gcc 4.3.3 in elog.c - Mailing list pgsql-hackers

From Josh Berkus
Subject Compile fail, alpha5 & gcc 4.3.3 in elog.c
Date
Msg-id 4BB57849.6060107@agliodbs.com
Whole thread Raw
In response to Re: Alpha release this week?  (Josh Berkus <josh@agliodbs.com>)
Responses Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c  (GenieJapo <genie.japo@gmail.com>)
List pgsql-hackers
Guys,

Hmmm.   I appear to have had a compile error with that alpha5 tarball,
in elog.c.  No special options on compile, except an alternate directory
and port.

Ubunutu 9.10 server
GCC 4.3.3
Tries both:
./configure --with-pgport=5490 --prefix=/usr/local/pgsql/9.0/
and:
./configure --with-pgport=5490 --prefix=/usr/local/pgsql/9.0/
--enable-debug -enable-cassert

make[4]: Entering directory
`/usr/local/src/postgresql-9.0alpha5/src/backend/utils/error'
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -Werror -I../../../../src/include -D_GNU_SOURCE   -c -o assert.o
assert.c
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing
-fwrapv -Werror -I../../../../src/include -D_GNU_SOURCE   -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

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: Proposal: Add JSON support
Next
From: Tom Lane
Date:
Subject: Re: Compile fail, alpha5 & gcc 4.3.3 in elog.c