Opened 10 years ago

Closed 10 years ago

#44120 closed defect (fixed)

postgresql80, postgresql81, postgresql82 does not build on 10.9, 10.10

Reported by: robertoschwald (Robert Oschwald) Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.3.0
Keywords: mavericks yosemite Cc: cooljeanius (Eric Gallager), istu@…, mww@…
Port: postgresql80, postgresql81, postgresql82

Description

postgresql81 currently does not compile on 10.9.3. Error in configure occurs.

May be in relation to #41012 for postgresql84

$ sudo port install postgresql81-server
--->  Computing dependencies for postgresql81-server
--->  Dependencies to be installed: postgresql81
--->  Configuring postgresql81
Error: Failed to configure postgresql81, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgresql81/postgresql81/work/postgresql-8.1.23/config.log
Error: org.macports.configure for port postgresql81 returned: configure failure: command execution failed
Error: Failed to install postgresql81
Please see the log file for port postgresql81 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_postgresql81/postgresql81/main.log
Error: The following dependencies were not installed: postgresql81
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port postgresql81-server failed

Configure error:

| #if HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| #include <DNSServiceDiscovery/DNSServiceDiscovery.h>
configure:10880: result: no
configure:10884: checking DNSServiceDiscovery/DNSServiceDiscovery.h presence
configure:10894: /usr/bin/clang -no-cpp-precomp -E -I/opt/local/include  -I/opt/local/include conftest.c
conftest.c:56:10: fatal error: 'DNSServiceDiscovery/DNSServiceDiscovery.h' file not found
#include <DNSServiceDiscovery/DNSServiceDiscovery.h>
         ^
1 error generated.
configure:10900: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 

Compiler / Machine info:

hostname = mavericks.home
uname -m = x86_64
uname -r = 13.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
	 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64


#define PG_VERSION_STR "PostgreSQL 8.1.23 on i686-apple-darwin13.2.0, compiled by GCC Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)"

Xcode:

xcode-select -p
/Applications/Xcode.app/Contents/Developer

gcc -v
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.2.0
Thread model: posix

Attachments (1)

config.log (111.0 KB) - added by robertoschwald (Robert Oschwald) 10 years ago.
config.log

Download all attachments as: .zip

Change History (7)

Changed 10 years ago by robertoschwald (Robert Oschwald)

Attachment: config.log added

config.log

comment:1 Changed 10 years ago by mf2k (Frank Schima)

Cc: mww@… removed
Owner: changed from macports-tickets@… to mww@…

comment:2 Changed 10 years ago by cooljeanius (Eric Gallager)

I had some trouble building it with variants +krb5+perl+python on Snow Leopard as well... not sure if it is exactly the same error though...

comment:3 Changed 10 years ago by cooljeanius (Eric Gallager)

Cc: egall@… added

Cc Me!

comment:4 Changed 10 years ago by istu@…

I had this same error trying to build anything on Mavericks (10.9.4 ) that utilised Bonjour. I added a symlink to the DNSServiceDiscovery headers: ln -s /Applications/Xcode.appContents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/DNSServiceDiscovery /opt/local/include/ and mt-daapd built fine. Might be worth a shot.

Version 0, edited 10 years ago by istu@… (next)

comment:5 in reply to:  4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: istu@… mww@… added
Keywords: yosemite added
Owner: changed from mww@… to ryandesign@…
Port: postgresql80 postgresql82 added
Status: newassigned
Summary: postgresql81 does not build on 10.9postgresql80, postgresql81, postgresql82 does not build on 10.9, 10.10

Replying to istu@…:

I had this same error trying to build anything on Mavericks (10.9.4 ) that utilised Bonjour. I added a symlink to the DNSServiceDiscovery headers:

ln -s /Applications/Xcode.app//Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include/DNSServiceDiscovery /opt/local/include/

and mt-daapd built fine. Might be worth a shot.

Please undo this change. We should instead apply the fix that has already been applied to postgresql84: disable Bonjour support on Mavericks and later.

comment:6 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.