[MacPorts] #35574: postgresql91 fails to build at contrib/uuid-ossp under OS X 10.8 (was: databases/postgresql91 fails to build at contrib/uuid-ossp under OS X 10.8)

MacPorts noreply at macports.org
Tue Aug 7 17:54:23 PDT 2012


#35574: postgresql91 fails to build at contrib/uuid-ossp under OS X 10.8
--------------------------------------+-------------------------------------
 Reporter:  dcarmich@…                |       Owner:  mww@…           
     Type:  defect                    |      Status:  new             
 Priority:  Normal                    |   Milestone:                  
Component:  ports                     |     Version:  2.1.2           
 Keywords:  mountainlion              |        Port:  postgresql91    
--------------------------------------+-------------------------------------
Changes (by ryandesign@…):

 * cc: jwa@… (added)
  * priority:  High => Normal
  * keywords:  => mountainlion
  * owner:  macports-tickets@… => mww@…
  * port:  databases/postgresql91 => postgresql91


Old description:

> I'm trying to build PostgreSQL 9.1.4 on OS X 10.8 (Mountain Lion), and it
> fails to build when the build gets to contrib/uuid-ossp:
>

> :info:build /usr/bin/clang -pipe -O2 -arch x86_64 -Wall -Wmissing-
> prototypes -Wp
> ointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-
> security -fno
> -strict-aliasing -fwrapv  -I. -I. -I../../src/include
> -I/opt/local/include -I/op
> t/local/include/ossp -I/opt/local/include/libxml2  -I/opt/local/include
> -c -o u
> uid-ossp.o uuid-ossp.c
> :info:build In file included from uuid-ossp.c:24:
> :info:build In file included from /opt/local/include/ossp/uuid.h:38:
> :info:build /usr/include/unistd.h:689:26: error: expected identifier
> :info:build int      gethostuuid(uuid_t, const struct timespec *)
> __OSX_AVAILABL
> E_STARTING(__MAC_10_5, __IPHONE_2_0);
> :info:build                              ^
> :info:build In file included from uuid-ossp.c:24:
> :info:build /opt/local/include/ossp/uuid.h:94:24: error: typedef
> redefinition wi
> th different types ('struct uuid_st' vs '__darwin_uuid_t' (aka 'unsigned
> char [16]'))
> :info:build typedef struct uuid_st uuid_t;
> :info:build                        ^
> :info:build /usr/include/uuid/uuid.h:42:25: note: previous definition is
> here
> :info:build typedef __darwin_uuid_t uuid_t;
> :info:build                         ^
> :info:build In file included from uuid-ossp.c:24:
> :info:build /opt/local/include/ossp/uuid.h:107:22: error: conflicting
> types for 'uuid_compare'
> :info:build extern uuid_rc_t     uuid_compare  (const uuid_t  *_uuid,
> const uuid_t *_uuid2, int *_result);
> :info:build                      ^
> :info:build /usr/include/uuid/uuid.h:59:5: note: previous declaration is
> here
> :info:build int uuid_compare(const uuid_t uu1, const uuid_t uu2);
> :info:build     ^
> :info:build 3 errors generated.
> :info:build gnumake: *** [uuid-ossp.o] Error 1
>
> I've reported this upstream to the PostgreSQL developers, and I'm hoping
> I hear from them.

New description:

 I'm trying to build PostgreSQL 9.1.4 on OS X 10.8 (Mountain Lion), and it
 fails to build when the build gets to contrib/uuid-ossp:

 {{{
 :info:build /usr/bin/clang -pipe -O2 -arch x86_64 -Wall -Wmissing-
 prototypes -Wp
 ointer-arith -Wdeclaration-after-statement -Wendif-labels -Wformat-
 security -fno
 -strict-aliasing -fwrapv  -I. -I. -I../../src/include -I/opt/local/include
 -I/op
 t/local/include/ossp -I/opt/local/include/libxml2  -I/opt/local/include
 -c -o u
 uid-ossp.o uuid-ossp.c
 :info:build In file included from uuid-ossp.c:24:
 :info:build In file included from /opt/local/include/ossp/uuid.h:38:
 :info:build /usr/include/unistd.h:689:26: error: expected identifier
 :info:build int      gethostuuid(uuid_t, const struct timespec *)
 __OSX_AVAILABL
 E_STARTING(__MAC_10_5, __IPHONE_2_0);
 :info:build                              ^
 :info:build In file included from uuid-ossp.c:24:
 :info:build /opt/local/include/ossp/uuid.h:94:24: error: typedef
 redefinition wi
 th different types ('struct uuid_st' vs '__darwin_uuid_t' (aka 'unsigned
 char [16]'))
 :info:build typedef struct uuid_st uuid_t;
 :info:build                        ^
 :info:build /usr/include/uuid/uuid.h:42:25: note: previous definition is
 here
 :info:build typedef __darwin_uuid_t uuid_t;
 :info:build                         ^
 :info:build In file included from uuid-ossp.c:24:
 :info:build /opt/local/include/ossp/uuid.h:107:22: error: conflicting
 types for 'uuid_compare'
 :info:build extern uuid_rc_t     uuid_compare  (const uuid_t  *_uuid,
 const uuid_t *_uuid2, int *_result);
 :info:build                      ^
 :info:build /usr/include/uuid/uuid.h:59:5: note: previous declaration is
 here
 :info:build int uuid_compare(const uuid_t uu1, const uuid_t uu2);
 :info:build     ^
 :info:build 3 errors generated.
 :info:build gnumake: *** [uuid-ossp.o] Error 1
 }}}

 I've reported this upstream to the PostgreSQL developers, and I'm hoping I
 hear from them.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/35574#comment:1>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list