Conflicting uuid_t types error building apr

John O'Shea john_oshea at wordbank.com
Tue Feb 5 14:05:40 PST 2008


Hi all,

I'm getting the following error when attempting to build devel/apr:

> In file included from misc/unix/rand.c:39:
> /opt/local/include/uuid.h:94: error: conflicting types for 'uuid_t'
> /usr/include/unistd.h:133: error: previous declaration of 'uuid_t' was here
> make[1]: *** [misc/unix/rand.lo] Error 1

which doesn't make any sense to me, given the following snippets of the 
appropriate files:

/opt/local/include/uuid.h

> /* workaround conflicts with system headers */
> #define uuid_t       __vendor_uuid_t
> #define uuid_create  __vendor_uuid_create
> #define uuid_compare __vendor_uuid_compare
> #include <sys/types.h>
> #include <unistd.h>
> #undef  uuid_t
> #undef  uuid_create
> #undef  uuid_compare


/usr/include/unistd.h

> #if !defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE)
> #ifndef _UUID_T
> #define  _UUID_T
> typedef __darwin_uuid_t    uuid_t;
> #endif /* _UUID_T */
> #endif /* (_POSIX_C_SOURCE && !_DARWIN_C_SOURCE) */


Having done some rooting around I've found pointers to making sure that 
apr's portfile has been updated for Macports 1.6 (it has been), and 
mentions of the name of gcc changing, so I've also tried this:

> sudo port install configure.cc=gcc configure.cxx=g++ apr

I've also forcibly 'port uninstall'ed everything, but haven't gone so 
far as to zap /opt - this is an up-to-date 10.5.1 system with the dev 
tools installed.

Any pointers as to what I should be doing here would be great.


Thanks in advance,

John

-- 
John O'Shea
Wordbank Limited
33 Charlotte Street, London W1T 1RR
Direct line: +44 (0) 20 7903 8829
Fax: +44 (0) 20 7903 8888
<http://www.wordbank.com/>


More information about the macports-users mailing list