pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6641: uuid.h warning during configure
3+ messages / 3 participants
[nested] [flat]
* BUG #6641: uuid.h warning during configure
@ 2012-05-15 23:28 chris@cdrbill.com
0 siblings, 1 reply; 3+ messages in thread
From: chris@cdrbill.com @ 2012-05-15 23:28 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
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:
running configure as such:
export MACOSX_DEPLOYMENT_TARGET=10.7
export CC=gcc
export CPP="gcc -E"
export CXX=g++
export CXXFLAGS='-O3 -fno-common -arch x86_64'
export CFLAGS='-O3 -fno-common -arch x86_64'
export LDFLAGS='-O3 -fno-common -arch x86_64'
./configure \
--prefix=/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
During the configuration phase, I get this 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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6641: uuid.h warning during configure
@ 2012-05-31 15:00 Robert Haas <robertmhaas@gmail.com>
parent: chris@cdrbill.com
0 siblings, 1 reply; 3+ messages in thread
From: Robert Haas @ 2012-05-31 15:00 UTC (permalink / raw)
To: Chris Ruprecht <chris@cdrbill.com>; +Cc: pgsql-bugs
On Tue, May 22, 2012 at 4:37 PM, Chris Ruprecht <chris@cdrbill.com> wrote:
> Hi Robert,
>
> 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.
>
> 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.
>
> I don't think the platform files matter much.
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.
>
>
> locate uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/uuid/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/postgresql/server/utils/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/uuid/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/uuid/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/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
>
>
> best regards,
> chris
> --
> chris ruprecht
> database grunt and bit pusher extraordinaíre
>
> On May 22, 2012, at 15:58 , Robert Haas wrote:
>
>> On Tue, May 15, 2012 at 7:28 PM, <chris@cdrbill.com> wrote:
>>> The following bug has been logged on the website:
>>>
>>> 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:
>>>
>>> running configure as such:
>>>
>>> export MACOSX_DEPLOYMENT_TARGET=10.7
>>> export CC=gcc
>>> export CPP="gcc -E"
>>> export CXX=g++
>>> export CXXFLAGS='-O3 -fno-common -arch x86_64'
>>> export CFLAGS='-O3 -fno-common -arch x86_64'
>>> export LDFLAGS='-O3 -fno-common -arch x86_64'
>>>
>>> ./configure \
>>> --prefix=/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
>>>
>>> During the configuration phase, I get this 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
>>
>> How many copies of uuid.h do you have on your machine, and which one
>> is being chosen here?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6641: uuid.h warning during configure
@ 2012-05-31 15:31 Chris Ruprecht <chris@cdrbill.com>
parent: Robert Haas <robertmhaas@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Chris Ruprecht @ 2012-05-31 15:31 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: pgsql-bugs
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
--
chris ruprecht
database grunt and bit pusher extraordinaíre
On May 31, 2012, at 11:00 , Robert Haas wrote:
> On Tue, May 22, 2012 at 4:37 PM, Chris Ruprecht <chris@cdrbill.com> wrote:
>> Hi Robert,
>>
>> 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.
>>
>> 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.
>>
>> I don't think the platform files matter much.
>
> 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.
>
>>
>>
>> locate uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/usr/include/uuid/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/postgresql/server/utils/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/uuid/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/usr/include/uuid/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/uuid/uuid.h
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/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
>>
>>
>> best regards,
>> chris
>> --
>> chris ruprecht
>> database grunt and bit pusher extraordinaíre
>>
>> On May 22, 2012, at 15:58 , Robert Haas wrote:
>>
>>> On Tue, May 15, 2012 at 7:28 PM, <chris@cdrbill.com> wrote:
>>>> The following bug has been logged on the website:
>>>>
>>>> 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:
>>>>
>>>> running configure as such:
>>>>
>>>> export MACOSX_DEPLOYMENT_TARGET=10.7
>>>> export CC=gcc
>>>> export CPP="gcc -E"
>>>> export CXX=g++
>>>> export CXXFLAGS='-O3 -fno-common -arch x86_64'
>>>> export CFLAGS='-O3 -fno-common -arch x86_64'
>>>> export LDFLAGS='-O3 -fno-common -arch x86_64'
>>>>
>>>> ./configure \
>>>> --prefix=/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
>>>>
>>>> During the configuration phase, I get this 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
>>>
>>> How many copies of uuid.h do you have on your machine, and which one
>>> is being chosen here?
>
>
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2012-05-31 15:31 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-05-15 23:28 BUG #6641: uuid.h warning during configure chris@cdrbill.com
2012-05-31 15:00 ` Robert Haas <robertmhaas@gmail.com>
2012-05-31 15:31 ` Chris Ruprecht <chris@cdrbill.com>
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