RPM Community Forums

Mailing List Message of <rpm-devel>

Re: uuid-1.6.0 still a bit grumpy on Mac OS X

From: Anders F Björklund <afb@rpm5.org>
Date: Tue 04 Mar 2008 - 14:06:26 CET
Message-Id: <C74A0E11-6C6C-4AB8-BC8C-C3E1A3171B7B@rpm5.org>
Ralf S. Engelschall wrote:

>> It occurs when system headers have already been included before,
>> such as when running the default "confdefs" from configure:
>>
>> | #ifdef HAVE_UNISTD_H
>> | # include <unistd.h>
>> | #endif
>> | #include <uuid.h>
>>
>> This should probably be taken care of upstream (in OSSP uuid),
>> just thought I'd mention it here since RPM5 is affected by it.
>
> As I'm upstream myself I'll look what I can do
> to resolve this conflict...

In case it helps, this is the system type definition:

#ifndef _POSIX_C_SOURCE
#ifndef _UUID_T
#define _UUID_T
typedef __darwin_uuid_t         uuid_t;
#endif /* _UUID_T */
#endif /* _POSIX_C_SOURCE */

You might want to look for the macro _UUID_T, maybe ?


The actual type is used in "the UUID library" at:

http://www.opensource.apple.com/darwinsource/10.4/xnu-792/bsd/uuid/ 
uuid.h
http://www.opensource.apple.com/darwinsource/10.5/xnu-1228/bsd/uuid/ 
uuid.h

i.e. it comes with the system kernel, on Mac OS X.

--anders
Received on Tue Mar 4 14:06:28 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.