#52583 closed defect (invalid)
python27+universal configure fails on getaddrinfo (el capitan)
Reported by: | macportsraf | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.3.4 |
Keywords: | Cc: | jyrkiwahlstedt, ryandesign (Ryan Carsten Schmidt) | |
Port: | python27 |
Description
I'm trying to migrate macports from a 10.6.8 host to a 10.11.5 host after migration assistant copied it across (and that all worked). It's the macports migration that's a problem. I'm stuck trying to get python27 +universal to configure. And I need desperately for it to work.
It fails to find getaddrinfo(). I have Xcode 8.0.
Note that when installing things, I keep getting told:
Warning: The Xcode Command Line Tools don't appear to be installed; most ports will likely fail to build. Warning: Install them by running `xcode-select --install'.
Which is not true and most things configure and compile successfully.
If I try xcode-select --install just to get rid of the warning, it eventually tells me that it "Can't download the software because of a network problem" but I read somewhere that errors like that might just mean that the latest version is already installed. And the command line tools are there so I'm not too worried about that but it might it might be a clue to something.
Attachments (2)
Change History (4)
Changed 8 years ago by macportsraf
Attachment: | python27+universal.main.log added |
---|
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | ryandesign@… added; openmaintainer@… removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
The config.log you attached shows the error is:
conftest.c:220:10: fatal error: 'sys/types.h' file not found
This is because you have not installed the Xcode command line tools, which provide that file and the rest of the files that go in /usr/include.
Xcode 8 was designed for Sierra. It is supposed to be compatible with El Capitan, but right before Xcode 8 was released, Apple realized that the Xcode 8 command line tools did not work on El Capitan, so they were not published. You should install the Xcode 7.3.1 command line tools for 10.11. They will work with Xcode 8 on 10.11. You can get them here: https://developer.apple.com/download/more/
comment:2 Changed 8 years ago by macportsraf
Thanks. That fixed it. I'm surprised so many things were able to compile without the right command line tools there. Perhaps they were copied over from my previous laptop by the migration assistant.
install log