pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: digoal@126.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error
Date: Thu, 04 Aug 2016 07:58:08 +0000
Message-ID: <20160804075808.1425.98817@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

The following bug has been logged on the website:

Bug reference:      14277
Logged by:          Zhou Digoal
Email address:      digoal@126.com
PostgreSQL version: 9.5.3
Operating system:   CentOS 7.x x64
Description:        

when i define   
USE_NAMED_POSIX_SEMAPHORES, then make.   

```
CFLAGS=-DUSE_NAMED_POSIX_SEMAPHORES ./configure
--prefix=/home/digoal/pgsql9.5
```
  
make error:  
```
gmake[4]: Entering directory
`/home/digoal/postgresql-9.5.3/src/backend/access/heap'
gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement
-Wendif-labels -Wmissing-format-attribute -Wformat-security
-fno-strict-aliasing -fwrapv -fexcess-precision=standard
-DUSE_NAMED_POSIX_SEMAPHORES -I../../../../src/include -D_GNU_SOURCE   -c -o
heapam.o heapam.c
In file included from ../../../../src/include/storage/proc.h:21:0,
                 from ../../../../src/include/storage/shm_mq.h:18,
                 from ../../../../src/include/access/parallel.h:20,
                 from heapam.c:45:
../../../../src/include/storage/pg_sema.h:54:3: error: conflicting types for
‘PGSemaphoreData’
 } PGSemaphoreData;
   ^
../../../../src/include/storage/pg_sema.h:38:16: note: previous declaration
of ‘PGSemaphoreData’ was here
 typedef sem_t *PGSemaphoreData;
                ^
gmake[4]: *** [heapam.o] Error 1
gmake[4]: Leaving directory
`/home/digoal/postgresql-9.5.3/src/backend/access/heap'
gmake[3]: *** [heap-recursive] Error 2
gmake[3]: Leaving directory
`/home/digoal/postgresql-9.5.3/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/home/digoal/postgresql-9.5.3/src/backend'
gmake[1]: *** [all-backend-recurse] Error 2
gmake[1]: Leaving directory `/home/digoal/postgresql-9.5.3/src'
gmake: *** [all-src-recurse] Error 2
```


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


view thread (2+ messages)  latest in thread

Message-ID: <20160804075808.1425.98817@wrigleys.postgresql.org>
Permalink:  ../20160804075808.1425.98817@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/20160804075808.1425.98817@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: digoal@126.com
  Subject: Re: BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error
  In-Reply-To: <20160804075808.1425.98817@wrigleys.postgresql.org>
  References: <20160804075808.1425.98817@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox