Opened 11 years ago

Closed 11 years ago

#39819 closed defect (fixed)

openssh @6.2p2 fails to configure

Reported by: nonstop.server@… Owned by: neverpanic (Clemens Lang)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: leopard Cc:
Port: openssh

Description

Upgrading openssh fails during configure phase with error message:

checking for gcc... /usr/bin/gcc-4.0
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openssh/openssh/work/openssh-6.2p2':
configure: error: C compiler cannot create executables
See `config.log' for more details
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_openssh/openssh/work/openssh-6.2p2" && ./configure --prefix=/opt/local --with-ssl-dir=/opt/local --sysconfdir=/opt/local/etc/ssh --with-privsep-path=/opt/local/var/empty --with-md5-passwords --with-pid-dir=/opt/local/var/run --with-tcp-wrappers --with-pam --mandir=/opt/local/share/man --with-zlib=/opt/local --with-kerberos5=/opt/local --with-xauth=/opt/local/bin/xauth --with-libedit --with-4in6 --with-audit=bsm --with-keychain=apple --disable-utmp --disable-wtmp --with-privsep-user=_sshd CFLAGS="-fPIE -O2" CPPFLAGS="-F/System/Library/Frameworks/OpenDirectory.framework -F/System/Library/Frameworks/CoreFoundation.framework -D_UTMPX_COMPAT -D__APPLE_LAUNCHD__ -D__APPLE_MEMBERSHIP__ -D__APPLE_XSAN__" LDFLAGS="-Wl,-pie -framework CoreFoundation -framework OpenDirectory" --with-ldns 
Exit code: 77
Error: org.macports.configure for port openssh returned: configure failure: command execution failed

Version Information:

Mac OS Version:
ProductName:	Mac OS X
ProductVersion:	10.5.8
BuildVersion:	9L31a
Darwin 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386

Xcode Version:
Xcode 3.1.4
Component versions: DevToolsCore-1204.0; DevToolsSupport-1186.0
BuildVersion: 9M2809

Macports Version:
Version: 2.1.3

Attachments (3)

config.log (7.5 KB) - added by nonstop.server@… 11 years ago.
main.log (15.1 KB) - added by nonstop.server@… 11 years ago.
Portfile-openssh.diff (1.1 KB) - added by nonstop.server@… 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by nonstop.server@…

Attachment: config.log added

Changed 11 years ago by nonstop.server@…

Attachment: main.log added

comment:1 Changed 11 years ago by neverpanic (Clemens Lang)

Owner: changed from macports-tickets@… to cal@…
Status: newassigned
ld: framework not found OpenDirectory

It seems Leopard doesn't use OpenDirectory. Unless you find out yourself what the correct alternative would be for Leopard (if any), I'm just going to advise you to avoid the +gsskex variant and disable it in the Portfile. I don't have a Leopard box to test on and have no intention of supporting such an old operating system on a port I don't even maintain.

comment:2 in reply to:  1 Changed 11 years ago by nonstop.server@…

Replying to cal@…:

Thank you for the advice and your support it's much appreciated.
I was able to get openssh to configure and compile with the +gsskex variant enabled using the DirectoryService.framework.
I'm not 100% sure this is the correct solution, but so far it seems to be all right.
If I encounter any problems I'll fallback on the installation without the +gsskex variant enabled, like you suggested.
My difference report has been attached for your inspection.

Changed 11 years ago by nonstop.server@…

Attachment: Portfile-openssh.diff added

comment:3 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: fixed
Status: assignedclosed

If that fixes the build for you, that's great – it also works fine on newer versions of OS X. Committed in r108368.

Note: See TracTickets for help on using tickets.