Re: compiler warnings on the buildfarm - Mailing list pgsql-hackers

From Tom Lane
Subject Re: compiler warnings on the buildfarm
Date
Msg-id 19527.1184551249@sss.pgh.pa.us
Whole thread Raw
In response to Re: compiler warnings on the buildfarm  (Chris Browne <cbbrowne@acm.org>)
List pgsql-hackers
Chris Browne <cbbrowne@acm.org> writes:
> Tom Lane wrote:
>>> animal: grebe               warnings: 45
>>> xlog.c:651: warning: implicit declaration of function '_check_lock'
>>> xlog.c:654: warning: implicit declaration of function '_clear_lock'
>>> hba.c:1449: warning: implicit declaration of function 'getpeereid'

>> Someone needs to find out which system headers declare these functions
>> on AIX.

> Hmm.  Logging onto grebe:

> /usr/include/sys/socket.h:int     getpeereid(int, uid_t *__restrict__, gid_t *__restrict__);

That's pretty strange, because hba.c definitely includes <sys/socket.h>.
Perhaps getpeereid is hidden within some #ifdef that we aren't setting?

> /usr/include/sys/atomic_op.h:boolean_t _check_lock();
> /usr/include/sys/atomic_op.h:void _clear_lock();

OK, I'll try putting <sys/atomic_op.h> into the AIX part of s_lock.h.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: stored procedure stats in collector
Next
From: Andrew Dunstan
Date:
Subject: Re: write_pipe_chunks patch messes up early error message output