Opened 8 years ago

Closed 8 years ago

#52335 closed defect (worksforme)

xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0

Reported by: Julian.Byrne@… Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: sierra Cc:
Port: xorg-libX11

Description

Configure script fails with error:

:info:configure checking for cpp... /usr/bin/cpp
:info:configure checking if /usr/bin/cpp requires -undef... configure: error: /usr/bin/cpp defines unix with or without -undef.  I don't know what to do.
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/work/libX11-1.6.3" && ./configure --prefix=/opt/local --without-xmlto --without-fop --disable-specs 
:info:configure Exit code: 1

Attachments (3)

config.log (52.1 KB) - added by Julian.Byrne@… 8 years ago.
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/work/libX11-1.6.3/config.log
main.log (51.1 KB) - added by Julian.Byrne@… 8 years ago.
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/main.log
cpp.txt (32.6 KB) - added by Julian.Byrne@… 8 years ago.
hexdump -C /usr/bin/cpp > cpp.txt

Download all attachments as: .zip

Change History (9)

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

Owner: changed from macports-tickets@… to jeremyhu@…
Port: xorg-libX11 added; org-libX11 removed
Summary: Xorg-libX11 1.6.3 fails to configure on sierra with Xcode 8.0xorg-libX11 @1.6.3: fails to configure on sierra with Xcode 8.0

It built fine on our build server (see https://packages.macports.org/xorg-libX11/) which suggests a problem on your system. Make sure you have the Xcode 8 version of the command line tools installed too.

comment:2 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Please post your config.log

Changed 8 years ago by Julian.Byrne@…

Attachment: config.log added

/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/work/libX11-1.6.3/config.log

Changed 8 years ago by Julian.Byrne@…

Attachment: main.log added

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_xorg-libX11/xorg-libX11/main.log

Changed 8 years ago by Julian.Byrne@…

Attachment: cpp.txt added

hexdump -C /usr/bin/cpp > cpp.txt

comment:3 Changed 8 years ago by Julian.Byrne@…

config.log and main.log attached. How do I verify XCode command line tools are correct version?

Possibly relevant:

  • The xorg-libX11 configure script is hardwired to use /usr/bin/cpp, not cpp from the PATH.
  • md5 /usr/bin/cpp -> 34269fdd32c114870b1114dbd6db4f7d .
  • The failure is on a box that has been upgraded from Yosemite to El Capitan to Sierra.
  • All current XCode and system software updates applied.
  • Attached hexdump appears to show /usr/bin/cpp is a shim, not the actual cpp.
  • xcode-select version 2345.1.
  • xcode-select -p gives /Applications/Xcode.app/Contents/Developer .
  • /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cpp is a shell script which claims in the comments that cpp is deprecated. This script calls xcrun - see ticket #52200.
  • Root can't rename /usr/bin/cpp however I hacked the xorg-libX11 configure script to use /opt/local/bin/cpp-mp-6 instead and it configured & built fine.
Last edited 8 years ago by Julian.Byrne@… (previous) (diff)

comment:4 Changed 8 years ago by Julian.Byrne@…

/usr/bin/cpp -dM -undef - - < /dev/null|grep unix
/usr/bin/cpp -dM - - < /dev/null|grep unix

both give nothing - apparently the reason for the failure of the configure script which depends on the "unix" definition for it's check.

Last edited 8 years ago by Julian.Byrne@… (previous) (diff)

comment:5 Changed 8 years ago by Julian.Byrne@…

I've tested the new Xorg-libX11 version 1.6.4_0+universal under sierra. It supersedes Xorg-libX11 1.6.3 and fixes this problem. As far as I'm concerned this ticket is resolved and can be closed.

Version 0, edited 8 years ago by Julian.Byrne@… (next)

comment:6 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: worksforme
Status: newclosed

There was absolutely nothing in that release that had anything to do with this, and given that nobody else reported this issue, I'm just going to close this.

Note: See TracTickets for help on using tickets.