BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error

From: digoal(at)126(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error
Date: 2016-08-04 07:58:08
Message-ID: 20160804075808.1425.98817@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14277
Logged by: Zhou Digoal
Email address: digoal(at)126(dot)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
```

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message paco 2016-08-04 10:25:24 BUG #14278: Problem searching spanish words with accent mark outside the stem
Previous Message 甄明洋 2016-08-04 04:51:25 Return value error of‘to_timestamp’