pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #7483: uuid-ossp does not compile on OS X 10.8
2+ messages / 2 participants
[nested] [flat]

* BUG #7483: uuid-ossp does not compile on OS X 10.8
@ 2012-08-07 17:24 dcarmich@dcarmichael.net
  2012-08-07 19:02 ` Re: BUG #7483: uuid-ossp does not compile on OS X 10.8 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: dcarmich@dcarmichael.net @ 2012-08-07 17:24 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      7483
Logged by:          Douglas Carmichael
Email address:      dcarmich@dcarmichael.net
PostgreSQL version: 9.1.4
Operating system:   OS X 10.8 (Mountain Lion)
Description:        

I'm compiling PostgreSQL 9.1.4 on OS X 10.8, and the uuid-ossp extension
doesn't compile properly, as follows:


:info:build /usr/bin/clang -pipe -O2 -arch x86_64 -Wall -Wmissing-prototypes
-Wp
ointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-security
-fno
-strict-aliasing -fwrapv  -I. -I. -I../../src/include -I/opt/local/include
-I/op
t/local/include/ossp -I/opt/local/include/libxml2  -I/opt/local/include  -c
-o u
uid-ossp.o uuid-ossp.c
:info:build In file included from uuid-ossp.c:24:
:info:build In file included from /opt/local/include/ossp/uuid.h:38:
:info:build /usr/include/unistd.h:689:26: error: expected identifier
:info:build int      gethostuuid(uuid_t, const struct timespec *)
__OSX_AVAILABL
E_STARTING(__MAC_10_5, __IPHONE_2_0);
:info:build                              ^
:info:build In file included from uuid-ossp.c:24:
:info:build /opt/local/include/ossp/uuid.h:94:24: error: typedef
redefinition wi
th different types ('struct uuid_st' vs '__darwin_uuid_t' (aka 'unsigned
char [16]'))
:info:build typedef struct uuid_st uuid_t;
:info:build                        ^
:info:build /usr/include/uuid/uuid.h:42:25: note: previous definition is
here
:info:build typedef __darwin_uuid_t uuid_t;
:info:build                         ^
:info:build In file included from uuid-ossp.c:24:
:info:build /opt/local/include/ossp/uuid.h:107:22: error: conflicting types
for 'uuid_compare'
:info:build extern uuid_rc_t     uuid_compare  (const uuid_t  *_uuid, const
uuid_t *_uuid2, int *_result);
:info:build                      ^
:info:build /usr/include/uuid/uuid.h:59:5: note: previous declaration is
here
:info:build int uuid_compare(const uuid_t uu1, const uuid_t uu2);
:info:build     ^
:info:build 3 errors generated.
:info:build gnumake: *** [uuid-ossp.o] Error 1

I'm compiling using MacPorts (http://www.macports.org/), and I've also
reported this to them.





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

* Re: BUG #7483: uuid-ossp does not compile on OS X 10.8
  2012-08-07 17:24 BUG #7483: uuid-ossp does not compile on OS X 10.8 dcarmich@dcarmichael.net
@ 2012-08-07 19:02 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2012-08-07 19:02 UTC (permalink / raw)
  To: dcarmich@dcarmichael.net; +Cc: pgsql-bugs

dcarmich@dcarmichael.net writes:
> I'm compiling PostgreSQL 9.1.4 on OS X 10.8, and the uuid-ossp extension
> doesn't compile properly, as follows:

Yeah, we've heard that already.  It appears that OSSP needs to fix their
code for Mountain Lion --- Apple seem to have changed <unistd.h> in a
way OSSP wasn't expecting.

			regards, tom lane



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


end of thread, other threads:[~2012-08-07 19:02 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-08-07 17:24 BUG #7483: uuid-ossp does not compile on OS X 10.8 dcarmich@dcarmichael.net
2012-08-07 19:02 ` 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