pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Jeff Hamann <jeff.d.hamann@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: can't build contrib/uuid-ossp
Date: Thu, 03 Mar 2011 12:16:53 -0500
Message-ID: <10414.1299172613@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTimbyq74s-XiP0F0_rT2ZKuiJjf+N5WbNDzV5Oou@mail.gmail.com>
References: <436DD8FD-3F40-4185-8B70-8F8C47F5A012@forestinformatics.com>
	<AANLkTikhZOFN=3r9Y9E_HWWQg4c+CZ8Ez4L3mntLAAvO@mail.gmail.com>
	<314F0EE1-F90E-4B83-A6EE-70484F1B7634@gmail.com>
	<AANLkTimbyq74s-XiP0F0_rT2ZKuiJjf+N5WbNDzV5Oou@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Mar 3, 2011 at 11:16 AM, Jeff Hamann <jeff.d.hamann@gmail.com> wrote:
>> I've attached the config.log file.

> It looks like the trouble is here:

> In file included from conftest.c:92:
> /usr/local/include/uuid.h:94: error: conflicting types for 'uuid_t'
> /usr/include/unistd.h:133: error: previous declaration of 'uuid_t' was here

> So the problem is, apparently, that Darwin defines its own version of
> uuid_t that clashes with the one provided by uuid-ossp.  There are
> some #ifdefs around that bit of stuff on my machine, so it might be
> possible to #define your way out of the problem.

> If you figure out how to get it working, I think we'd be happy to
> accept a patch that fixes it, unless it's only failing due to some
> funky detail of your configuration, which I suspect isn't the case
> based on a quick look at my system.

On my Mac with uuid-ossp 1.6.2 installed in /usr/local, configure whines
as shown above but the build goes through just fine, which probably is
because uuid-ossp.c doesn't try to include <unistd.h>.  So the conflict
noted by configure doesn't really affect us AFAICS.  I would say that
if there's anything to be done about it, it's the uuid-ossp folks'
problem to solve not ours.

			regards, tom lane



view thread (4+ messages)

Message-ID: <10414.1299172613@sss.pgh.pa.us>
Permalink:  ../10414.1299172613@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10414.1299172613@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, robertmhaas@gmail.com, jeff.d.hamann@gmail.com
  Subject: Re: can't build contrib/uuid-ossp
  In-Reply-To: <10414.1299172613@sss.pgh.pa.us>
  References: <436DD8FD-3F40-4185-8B70-8F8C47F5A012@forestinformatics.com> <AANLkTikhZOFN=3r9Y9E_HWWQg4c+CZ8Ez4L3mntLAAvO@mail.gmail.com> <314F0EE1-F90E-4B83-A6EE-70484F1B7634@gmail.com> <AANLkTimbyq74s-XiP0F0_rT2ZKuiJjf+N5WbNDzV5Oou@mail.gmail.com> <10414.1299172613@sss.pgh.pa.us>

* 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