[MacPorts] #35153: Postgresql90, Postgresql91 - /usr/include/unistd.h:689:26: error: expected identifier

MacPorts noreply at macports.org
Wed Jul 11 03:08:10 PDT 2012


#35153: Postgresql90, Postgresql91 - /usr/include/unistd.h:689:26: error: expected
identifier
----------------------------+-----------------------------------------------
 Reporter:  ilya@…          |       Owner:  mww@…                     
     Type:  defect          |      Status:  new                       
 Priority:  Normal          |   Milestone:                            
Component:  ports           |     Version:  2.1.99                    
 Keywords:  mountainlion    |        Port:  Postgresql90, Postgresql91
----------------------------+-----------------------------------------------
Changes (by ryandesign@…):

 * cc: jwa@… (added)
  * owner:  macports-tickets@… => mww@…


Old description:

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

New description:

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

--

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


More information about the macports-tickets mailing list