Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[BUGS] BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error

3 views
Skip to first unread message

dig...@126.com

unread,
Aug 4, 2016, 3:59:33 AM8/4/16
to
The following bug has been logged on the website:

Bug reference: 14277
Logged by: Zhou Digoal
Email address: dig...@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...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Tom Lane

unread,
Aug 4, 2016, 10:26:38 AM8/4/16
to
dig...@126.com writes:
> CFLAGS=-DUSE_NAMED_POSIX_SEMAPHORES ./configure

That's not the correct way to do it; it will result in configure doing the
wrong things (in particular, selecting the wrong semaphore implementation
file). Instead use

configure ... USE_NAMED_POSIX_SEMAPHORES=1

regards, tom lane
0 new messages