Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2E7471337BDB for ; Thu, 3 Mar 2011 13:17:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 95537-10 for ; Thu, 3 Mar 2011 17:16:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 6F3F21337BB9 for ; Thu, 3 Mar 2011 13:16:55 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p23HGsvX010415; Thu, 3 Mar 2011 12:16:54 -0500 (EST) To: Robert Haas cc: Jeff Hamann , pgsql-bugs@postgresql.org Subject: Re: can't build contrib/uuid-ossp In-reply-to: References: <436DD8FD-3F40-4185-8B70-8F8C47F5A012@forestinformatics.com> <314F0EE1-F90E-4B83-A6EE-70484F1B7634@gmail.com> Comments: In-reply-to Robert Haas message dated "Thu, 03 Mar 2011 11:26:44 -0500" Date: Thu, 03 Mar 2011 12:16:53 -0500 Message-ID: <10414.1299172613@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201103/60 X-Sequence-Number: 29570 Robert Haas writes: > On Thu, Mar 3, 2011 at 11:16 AM, Jeff Hamann 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 . 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