Ticket #33300 (closed defect: duplicate)
postgresql91: error: conflicting types for ‘uuid_t’
| Reported by: | cornelius.howl@… | Owned by: | mww@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 2.0.3 |
| Keywords: | mountainlion | Cc: | jwa@… |
| 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
Change History
comment:2 Changed 15 months ago by ryandesign@…
- Keywords mountainlion added
- Cc jwa@… added
- Port set to postgresql91
- Owner changed from macports-tickets@… to mww@…
- Summary changed from error: conflicting types for ‘uuid_t’ to 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.
comment:3 Changed 13 months ago by vince@…
- Status changed from new to closed
- Resolution set to wontfix
Fix : add this line
#define POSIX_C_SOURCE
at the beginning of the ${worksrcpath}/contrib/ossd-uuid/ossd-uuid.c file.
comment:4 Changed 10 months ago by Ruslan.Zakirov@…
- Status changed from closed to reopened
- Resolution wontfix deleted
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?
Note: See
TracTickets for help on using
tickets.


BTW, Mac OS - Mountain Lion, with XCode 4.4