pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error
2+ messages / 2 participants
[nested] [flat]

* BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error
@ 2016-08-04 07:58  digoal@126.com
  0 siblings, 1 reply; 2+ messages in thread

From: digoal@126.com @ 2016-08-04 07:58 UTC (permalink / raw)
  To: pgsql-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


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error
@ 2016-08-04 14:25  Tom Lane <tgl@sss.pgh.pa.us>
  parent: digoal@126.com
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2016-08-04 14:25 UTC (permalink / raw)
  To: digoal@126.com; +Cc: pgsql-bugs

digoal@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


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



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2016-08-04 14:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-08-04 07:58 BUG #14277: when define USE_NAMED_POSIX_SEMAPHORES , make error digoal@126.com
2016-08-04 14:25 ` Tom Lane <tgl@sss.pgh.pa.us>

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