pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
can't build contrib/uuid-ossp
4+ messages / 3 participants
[nested] [flat]

* can't build contrib/uuid-ossp
@ 2011-02-16 18:10 Jeff Hamann <jeff.hamann@forestinformatics.com>
  2011-03-03 14:33 ` Re: can't build contrib/uuid-ossp Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Jeff Hamann @ 2011-02-16 18:10 UTC (permalink / raw)
  To: pgsql-bugs

Dear PostgreSQL bug-squasher-team,

I was trying to build postgresql-9.0.2 with the following ./configure:

$ ./configure --enable-cassert --enable-debug --with-python --with-ossp-uuid

and got the following message:

checking uuid.h presence... yes
configure: WARNING: uuid.h: present but cannot be compiled
configure: WARNING: uuid.h:     check for missing prerequisite headers?
configure: WARNING: uuid.h: see the Autoconf documentation
configure: WARNING: uuid.h:     section "Present But Cannot Be Compiled"
configure: WARNING: uuid.h: proceeding with the preprocessor's result
configure: WARNING: uuid.h: in the future, the compiler will take precedence
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to pgsql-bugs@postgresql.org ##
configure: WARNING:     ## ---------------------------------------- ##
checking for uuid.h... yes

I've downloaded and installed the requisite ossp-uuid library:

ftp ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz

which builds fine (I didn't use the ./configure --with-pgsql option for installing uuid-1.6.2 as it throws an error too). 

Sadly, I got this to install yesterday, but in a ridiculously stupid brain lapse, I didn't document it. 

I'm nor trying to recreate the postgresql-9.0.2 install from scratch and get stuck here.

Help?

Respectfully,
Jeff.


Jeff Hamann, PhD
PO Box 1421
Corvallis, Oregon 97339-1421
541-754-2457
jeff.hamann[at]forestinformatics[dot]com
http://www.forestinformatics.com
http://forufus.blogspot.com/

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

* Re: can't build contrib/uuid-ossp
  2011-02-16 18:10 can't build contrib/uuid-ossp Jeff Hamann <jeff.hamann@forestinformatics.com>
@ 2011-03-03 14:33 ` Robert Haas <robertmhaas@gmail.com>
  2011-03-03 16:26   ` Re: can't build contrib/uuid-ossp Robert Haas <robertmhaas@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Robert Haas @ 2011-03-03 14:33 UTC (permalink / raw)
  To: Jeff Hamann <jeff.hamann@forestinformatics.com>; +Cc: pgsql-bugs

On Wed, Feb 16, 2011 at 1:10 PM, Jeff Hamann
<jeff.hamann@forestinformatics.com> wrote:
> Dear PostgreSQL bug-squasher-team,
> I was trying to build postgresql-9.0.2 with the following ./configure:
> $ ./configure --enable-cassert --enable-debug --with-python --with-ossp-uuid
> and got the following message:
> checking uuid.h presence... yes
> configure: WARNING: uuid.h: present but cannot be compiled
> configure: WARNING: uuid.h:     check for missing prerequisite headers?
> configure: WARNING: uuid.h: see the Autoconf documentation
> configure: WARNING: uuid.h:     section "Present But Cannot Be Compiled"
> configure: WARNING: uuid.h: proceeding with the preprocessor's result
> configure: WARNING: uuid.h: in the future, the compiler will take precedence
> configure: WARNING:     ## ---------------------------------------- ##
> configure: WARNING:     ## Report this to pgsql-bugs@postgresql.org ##
> configure: WARNING:     ## ---------------------------------------- ##
> checking for uuid.h... yes

Hmm.  What platform is this on?  And what's in config.log?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

* Re: can't build contrib/uuid-ossp
  2011-02-16 18:10 can't build contrib/uuid-ossp Jeff Hamann <jeff.hamann@forestinformatics.com>
  2011-03-03 14:33 ` Re: can't build contrib/uuid-ossp Robert Haas <robertmhaas@gmail.com>
@ 2011-03-03 16:26   ` Robert Haas <robertmhaas@gmail.com>
  2011-03-03 17:16     ` Re: can't build contrib/uuid-ossp Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Robert Haas @ 2011-03-03 16:26 UTC (permalink / raw)
  To: Jeff Hamann <jeff.d.hamann@gmail.com>; +Cc: pgsql-bugs

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.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

* Re: can't build contrib/uuid-ossp
  2011-02-16 18:10 can't build contrib/uuid-ossp Jeff Hamann <jeff.hamann@forestinformatics.com>
  2011-03-03 14:33 ` Re: can't build contrib/uuid-ossp Robert Haas <robertmhaas@gmail.com>
  2011-03-03 16:26   ` Re: can't build contrib/uuid-ossp Robert Haas <robertmhaas@gmail.com>
@ 2011-03-03 17:16     ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2011-03-03 17:16 UTC (permalink / raw)
  To: Robert Haas <robertmhaas@gmail.com>; +Cc: Jeff Hamann <jeff.d.hamann@gmail.com>; pgsql-bugs

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



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


end of thread, other threads:[~2011-03-03 17:16 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-02-16 18:10 can't build contrib/uuid-ossp Jeff Hamann <jeff.hamann@forestinformatics.com>
2011-03-03 14:33 ` Robert Haas <robertmhaas@gmail.com>
2011-03-03 16:26   ` Robert Haas <robertmhaas@gmail.com>
2011-03-03 17:16     ` 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