Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#40690 closed defect (invalid)

python27: Configure error: Fatal: You must get working getaddrinfo() function.

Reported by: sofcik@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: mavericks Cc: qqshfox@…, michelle.lynn.gill@…
Port: python27

Description

I am using 10.9 GM and Xcode version 5.0.1 GM. When trying to install python27 (wine-devel depends on it) I get configure error related to getaddrinfo() function:

:info:configure checking for getaddrinfo... no
:info:configure 
:info:configure Fatal: You must get working getaddrinfo() function.
:info:configure        or you can specify "--disable-ipv6".
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.5" && ./configure --prefix=/opt/local --disable-dependency-tracking --enable-framework=/opt/local/Library/Frameworks --enable-ipv6 --enable-universalsdk=/ 
:info:configure Exit code: 1

Logs attached.

Attachments (1)

main.log (25.4 KB) - added by sofcik@… 10 years ago.

Download all attachments as: .zip

Change History (11)

Changed 10 years ago by sofcik@…

Attachment: main.log added

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

Cc: jwa@… removed
Keywords: mavericks added
Owner: changed from macports-tickets@… to jwa@…
Summary: python27 Configure error - build error on 10.9python27: Configure error: Fatal: You must get working getaddrinfo() function.

We probably can't help with Mavericks issues until it's been released.

comment:2 Changed 10 years ago by mattbrocklehurst@…

Note sure if this helps but I managed to get wine to compile (not tried it yet) on OSX 10.9 with latest SVN ports...

Seems like this patch seems to screw things up some what patch-configure-universal.diff

I *hacked* out the below (using the comment char #)

#variant universal {
    # This patch will need updating when 2.7.6 is released, as ARCH_RUN_32BIT
    # will once again be used for something. See ticket #39270.
#    patchfiles-append patch-configure-universal.diff
#    post-patch {
#        reinplace \
#            "s|__UNIVERSAL_ARCHFLAGS__|${configure.universal_cflags}|" \
#            ${worksrcpath}/configure
#    }
#    if {${configure.sdkroot} != ""} {
#        configure.args-append   --enable-universalsdk=${configure.sdkroot}
#    } else {
#        configure.args-append   --enable-universalsdk=/
#    }
#}

in

/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/lang/python27/Portfile

Seems to have sorted it building.

Probably (well definitely) not the right solution but should hopefully get you a bit further.

Version 1, edited 10 years ago by mattbrocklehurst@… (previous) (next) (diff)

comment:3 Changed 10 years ago by qqshfox@…

Cc: qqshfox@… added

Cc Me!

comment:4 Changed 10 years ago by michelle.lynn.gill@…

Cc: michelle.lynn.gill@… added

Cc Me!

comment:5 Changed 10 years ago by gonhidi@…

Are your Xcode command line tools properly installed?

I also came across the python27 +universal issue you describe; many ./configure checks such as the getaddrinfo were negatve because gcc -o conftest -arch x86_64 -arch i386 -g -O2 -arch x86_64 -arch i386 -isysroot / conftest.c was failing. I set the issue aside for a time until I found out that /usr/include was missing (when clang-3.3 failed to build because it could not find AvailabilityMacros.h). In case it wasn't an intended novelty, I visited <https://developer.apple.com/downloads/index.action> (free registration required), downloaded and installed the late October 2013 command line package, and presto, /usr/include was back and installing python27 +universal (and clang-3.3) now worked.

I wonder if I was supposed to have manually downloaded and upgraded the command line tools. During the Xcode 5.0.1 update I accepted a prompt to download and install two or three related packages, which I think included the command line tools; I could be wrong, or they might have been a different version. Also, since it was at the time of the OS X 10.9 Mavericks upgrade, the developer package installations might have happened under 10.8 Snow Leopard or even intermingled, perhaps causing trouble.

comment:6 Changed 10 years ago by scantor (Scott Cantor)

I also found that the port installed once the latest command line tools were installed.

comment:7 Changed 10 years ago by jyrkiwahlstedt

Resolution: invalid
Status: newclosed

As I have not seen this (with up-to-date command line tools), I’ll close this

comment:8 in reply to:  6 Changed 10 years ago by krischik@…

Replying to scantor@…:

I also found that the port installed once the latest command line tools were installed.

How do you install the newest command line tools? There seems to be not option in XCode any more to do so.

comment:9 Changed 10 years ago by jyrkiwahlstedt

Command: sudo xcode-select --install

Last edited 10 years ago by jyrkiwahlstedt (previous) (diff)

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

Has duplicate #41021.

Note: See TracTickets for help on using tickets.