Opened 13 years ago
Closed 12 years ago
#33300 closed defect (duplicate)
postgresql91: error: conflicting types for ‘uuid_t’
Reported by: | c9s (Yo-An Lin) | Owned by: | mww@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.0.3 |
Keywords: | mountainlion | Cc: | jyrkiwahlstedt |
Port: | postgresql91 |
Description
ccache /usr/bin/llvm-gcc-4.2 -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 /opt/local/include/ossp/uuid.h:38, from uuid-ossp.c:24: /usr/include/unistd.h:699: error: expected ‘)’ before ‘const’ /usr/include/unistd.h:702: error: expected declaration specifiers or ‘...’ before ‘__vendor_uuid_t’ /usr/include/unistd.h:704: error: expected declaration specifiers or ‘...’ before ‘__vendor_uuid_t’ In file included from uuid-ossp.c:24: /opt/local/include/ossp/uuid.h:94: error: conflicting types for ‘uuid_t’ /usr/include/uuid/uuid.h:42: error: previous declaration of ‘uuid_t’ was here /opt/local/include/ossp/uuid.h:107: error: conflicting types for ‘uuid_compare’ /usr/include/uuid/uuid.h:59: error: previous declaration of ‘uuid_compare’ was here gnumake: *** [uuid-ossp.o] Error 1 shell command "cd /opt/local/var/macports/build/_Users_c9s_mports_dports_databases_postgresql91/postgresql91/work/postgresql-9.1.2/contrib/uuid-ossp/ && /usr/bin/gnumake" returned error 2 Error: Target org.macports.build returned: shell command failed (see log for details) Warning: the following items did not execute (for postgresql91): org.macports.activate org.macports.build org.macports.destroot org.macports.install Error: Failed to install postgresql91 Log for postgresql91 is at: /opt/local/var/macports/logs/_Users_c9s_mports_dports_databases_postgresql91/postgresql91/main.log Error: The following dependencies were not installed: postgresql91 Error: Status 1 encountered during processing. To report a bug, see <http://guide.macports.org/#project.tickets>
Attachments (3)
Change History (8)
comment:1 Changed 13 years ago by c9s (Yo-An Lin)
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jwa@… added |
---|---|
Keywords: | mountainlion added |
Owner: | changed from macports-tickets@… to mww@… |
Port: | postgresql91 added |
Summary: | error: conflicting types for ‘uuid_t’ → postgresql91: error: conflicting types for ‘uuid_t’ |
Attach the main.log file. However, we probably cannot help you with pre-release versions of OS X or Xcode, and it may contravene your non-disclosure agreements to discuss them here.
Changed 13 years ago by c9s (Yo-An Lin)
comment:3 Changed 13 years ago by Veence (Vincent)
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Fix : add this line
#define POSIX_C_SOURCE
at the beginning of the ${worksrcpath}/contrib/ossd-uuid/ossd-uuid.c file.
comment:4 Changed 12 years ago by Ruslan.Zakirov@…
Resolution: | wontfix |
---|---|
Status: | closed → reopened |
Now mountain lion is out and problem is there. I see "conflicting types" issue with apple's default clang compiler. If I add mentioned line then which commands and from which location should I run to continue compilation or start a new compilation with modified source?
comment:5 Changed 12 years ago by Veence (Vincent)
Resolution: | → duplicate |
---|---|
Status: | reopened → closed |
Dup of #35153.
Note: See
TracTickets for help on using
tickets.
BTW, Mac OS - Mountain Lion, with XCode 4.4