Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 1AC7311DF225 for ; Thu, 31 May 2012 12:31:37 -0300 (ADT) Received: from mail-gg0-f174.google.com ([209.85.161.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Sa7LW-0005bH-Dd for pgsql-bugs@postgresql.org; Thu, 31 May 2012 15:31:37 +0000 Received: by gglu4 with SMTP id u4so909380ggl.19 for ; Thu, 31 May 2012 08:31:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=e06aMGbNkRC1GFJhIY7sOb7FLvuw39ubjz2nOmfjlpE=; b=EXWXEZAN5G0wrizlkIYIHcpZHo2oFvyH0y6lBsOHt0fPrd3cyg6qUWEWq17oR5cG6n IQgROmeN4dnXP2ocyA7JA7oT2Ax/P+6Ee5uopM6AUQ09EyYXg76rHlC1kqI9bhImGNAM e69Wllc9Ehsn7Mm9hbXDyMwUK1C390kktrdoA3i7tm+E9TItJYA+0MtTzohOVqdQIJQN nh9ucq1Q8LkvxvkmWXCdJpC0Q6yHM1h2IXmZ7amETgQosehDwR8pBIRvR1H8T6MrbjwX eYwciNdqKNEFeTpGT5wvWlOsHDKRZiqIxmU+O1aFtjss/btdEI8PDNZu/l7F67KXFCqy B8mw== Received: by 10.236.186.74 with SMTP id v50mr2800972yhm.1.1338478276457; Thu, 31 May 2012 08:31:16 -0700 (PDT) Received: from [192.168.0.11] (75-139-130-220.dhcp.gwnt.ga.charter.com. [75.139.130.220]) by mx.google.com with ESMTPS id n43sm9552425yhm.7.2012.05.31.08.31.14 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 31 May 2012 08:31:14 -0700 (PDT) Subject: Re: BUG #6641: uuid.h warning during configure Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=iso-8859-1 From: Chris Ruprecht In-Reply-To: Date: Thu, 31 May 2012 11:31:13 -0400 Cc: Postgres-Bugs Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Robert Haas X-Mailer: Apple Mail (2.1278) X-Gm-Message-State: ALoCoQmdo/atHuNMhBtjiEFIJCvv8wmk63sOuBEk5aJtcnALjRtmoN27A7suQGD28YvHlkc2A7LT X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201205/243 X-Sequence-Number: 33214 Hi Robert, I did some experimenting. I have uuid.h from the OSSP uuid page, version 1.6.2 installed. Removed /usr/local/include/uuid.h rebuilt and re-installed the package. Same error - but also in 9.1. So I copied /usr/include/uuid/uuid.h to /usr/local/include/uuid.h and = the error went away: checking for uuid_export in -lossp-uuid... no checking for uuid_export in -luuid... yes ... checking uuid.h usability... yes checking uuid.h presence... yes checking for uuid.h... yes go figure ... ;). best regards, chris --=20 chris ruprecht database grunt and bit pusher extraordina=EDre On May 31, 2012, at 11:00 , Robert Haas wrote: > On Tue, May 22, 2012 at 4:37 PM, Chris Ruprecht = wrote: >> Hi Robert, >>=20 >> I was compiling 9.2beta1 - but that wasn't an option when submitting = the issue. >> I can compile the 9.1.x versions just fine. >>=20 >> Below is a list of the uuid.h files on the system. >> It appears, that the file being used is "/usr/local/include/uuid.h" - = the same as with the 9.0.x and 9.1.x compiles. >>=20 >> I don't think the platform files matter much. >=20 > I am guessing that the problem is that we're looking for the uuid.h > that comes with the OSSP package, and you're uuid.h is something else. > You might want to see if there's anything helpful in config.log. > Weirdly, there don't seem to be any UUID-related changes to > configure.in between 9.1 and 9.2beta1, so I'm not quite sure why > you're seeing different behavior. >=20 >>=20 >>=20 >> locate uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Versio= ns/A/Headers/uuid/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX10.6.sdk/usr/include/uuid/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Kernel.framework/Versio= ns/A/Headers/uuid/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX10.7.sdk/usr/include/postgresql/server/utils/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Devel= oper/SDKs/MacOSX10.7.sdk/usr/include/uuid/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Dev= eloper/SDKs/iPhoneOS5.0.sdk/usr/include/uuid/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platf= orm/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Kernel= .framework/Versions/A/Headers/uuid/uuid.h >> = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platf= orm/Developer/SDKs/iPhoneSimulator5.0.sdk/usr/include/uuid/uuid.h >> = /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h= >> /usr/include/postgresql/server/utils/uuid.h >> /usr/include/uuid/uuid.h >> /usr/local/include/postgresql/server/utils/uuid.h >> /usr/local/include/uuid.h >> /usr/local/source/postgresql-9.1.2/src/include/utils/uuid.h >> /usr/local/source/postgresql-9.1.3/src/include/utils/uuid.h >> /usr/local/source/postgresql-9.2beta1/src/include/utils/uuid.h >>=20 >>=20 >> best regards, >> chris >> -- >> chris ruprecht >> database grunt and bit pusher extraordina=EDre >>=20 >> On May 22, 2012, at 15:58 , Robert Haas wrote: >>=20 >>> On Tue, May 15, 2012 at 7:28 PM, wrote: >>>> The following bug has been logged on the website: >>>>=20 >>>> Bug reference: 6641 >>>> Logged by: Chris Ruprecht >>>> Email address: chris@cdrbill.com >>>> PostgreSQL version: 9.1.3 >>>> Operating system: Mac OS X 10.7.4 >>>> Description: >>>>=20 >>>> running configure as such: >>>>=20 >>>> export MACOSX_DEPLOYMENT_TARGET=3D10.7 >>>> export CC=3Dgcc >>>> export CPP=3D"gcc -E" >>>> export CXX=3Dg++ >>>> export CXXFLAGS=3D'-O3 -fno-common -arch x86_64' >>>> export CFLAGS=3D'-O3 -fno-common -arch x86_64' >>>> export LDFLAGS=3D'-O3 -fno-common -arch x86_64' >>>>=20 >>>> ./configure \ >>>> --prefix=3D/usr/local \ >>>> --enable-integer-datetimes \ >>>> --enable-thread-safety \ >>>> --with-libxml \ >>>> --with-libxslt \ >>>> --with-ossp-uuid \ >>>> --with-tcl \ >>>> --with-perl \ >>>> --with-python \ >>>> --with-gssapi \ >>>> --with-krb5 \ >>>> --with-pam \ >>>> --with-ldap \ >>>> --with-bonjour \ >>>> --with-openssl \ >>>> --with-zlib >>>>=20 >>>> During the configuration phase, I get this message: >>>>=20 >>>>=20 >>>> 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 >>>=20 >>> How many copies of uuid.h do you have on your machine, and which one >>> is being chosen here? >=20 >=20 >=20 > --=20 > Robert Haas > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company