Opened 12 years ago

Closed 12 years ago

#35513 closed defect (duplicate)

Postgresql 8.4.12 port build failure under Mountain Lion / XCode 4.4 — at Version 2

Reported by: philippe.lang@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: Cc:
Port: postgresql84

Description (last modified by mf2k (Frank Schima))

sudo port upgrade postgresql84 postgresql84-server
--->  Computing dependencies for postgresql84
--->  Building postgresql84

Error: org.macports.build for port postgresql84 returned: command execution failed
Please see the log file for port postgresql84 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql84/postgresql84/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

-----------------------------------------------------------------------------

:info:build /usr/bin/clang -no-cpp-precomp -pipe -O2 -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -fexcess-precision=standard  -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
:info:build clang: warning: argument unused during compilation: '-fexcess-precision=standard'
: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_AVAILABLE_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 with 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
:info:build Command failed: cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql84/postgresql84/work/postgresql-8.4.12/contrib/uuid-ossp/ && /usr/bin/gnumake
:info:build Exit code: 2
:error:build org.macports.build for port postgresql84 returned: command execution failed
:debug:build Error code: NONE
:debug:build Backtrace: command execution failed
    while executing
"$post $targetname"
:info:build Warning: targets not executed for postgresql84: org.macports.install org.macports.build org.macports.destroot
:notice:build Please see the log file for port postgresql84 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql84/postgresql84/main.log

Change History (2)

comment:1 in reply to:  description Changed 12 years ago by philippe.lang@…

Replying to philippe.lang@…:

Sorry, this is a known problem, that can be corrected with:

https://trac.macports.org/ticket/35153#comment:10

comment:2 Changed 12 years ago by mf2k (Frank Schima)

Description: modified (diff)
Port: postgresql84 added
Resolution: duplicate
Status: newclosed

In the future, please fill in the Port field, Cc the port maintainer(s) and use WikiFormatting.

Definitely a duplicate of #35153.

Note: See TracTickets for help on using tickets.