Opened 12 years ago

Closed 12 years ago

#35359 closed defect (fixed)

OpenSSH configure fails on Mountain Lion

Reported by: justus.c79@… Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.1.2
Keywords: mountainlion Cc: giesen@…, pkutzner+macports@…, nonstop.server@…, manzhikov@…, bruce@…
Port: openssh

Description (last modified by ryandesign (Ryan Carsten Schmidt))

When trying to build OpenSSH on Mountain Lion, it fails to configure due to libwrap check failure. The output I see is:

$ sudo port -d install openssh
...
checking for libwrap... configure: error: *** libwrap missing
...

It looks like libwrap was removed from the OS X 10.8 SDK. I found two possible fixes:

  1. Change the configure option --with-tcp-wrapprs to --without-tcp-wrappers
  2. Change the MACOSX_DEPLOYMENT_TARGET variable to 10.7

I am unsure what the consequences of option 1 are.

Attachments (1)

Portfile-openssh.diff (332 bytes) - added by justus.c79@… 12 years ago.
Patch file that adds tcp_wrappers dependency for Mountain Lion.

Download all attachments as: .zip

Change History (15)

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

Description: modified (diff)
Keywords: mountainlion added; "Mountain Lion" libwrap "TCP Wrappers" openssh removed
Owner: changed from macports-tickets@… to jwa@…
Priority: HighNormal

comment:2 Changed 12 years ago by giesen@…

Cc: giesen@… added

Cc Me!

comment:3 Changed 12 years ago by justus.c79@…

I found that changing the deployment target to 10.7 does not work. While it will compile OpenSSH correctly, sshd cannot find libwrap at runtime.

comment:4 Changed 12 years ago by pkutzner+macports@…

Cc: pkutzner+macports@… added

Cc Me!

comment:5 Changed 12 years ago by nonstop.server@…

Cc: nonstop.server@… added

Cc Me!

comment:6 Changed 12 years ago by manzhikov@…

Cc Me!

comment:7 Changed 12 years ago by manzhikov@…

Cc: manzhikov@… added

Cc Me!

comment:8 Changed 12 years ago by matts@…

"port install tcp_wrappers" before installing openssh.

comment:9 Changed 12 years ago by jyrkiwahlstedt

Curious, I checked and:

jwa@bach:openssh> port installed openssh
The following ports are currently installed:
  openssh @6.0p1_0 (active)
jwa@bach:openssh> port installed tcp_wrappers
None of the specified ports are installed.

comment:10 in reply to:  9 Changed 12 years ago by justus.c79@…

Replying to jwa@…:

Curious, I checked and:

jwa@bach:openssh> port installed openssh
The following ports are currently installed:
  openssh @6.0p1_0 (active)
jwa@bach:openssh> port installed tcp_wrappers
None of the specified ports are installed.

This can happen if you upgraded to Mountaion Lion without rebuilding the port or somehow the deployment target was set to 10.7 when OpenSSH was built. If you are running Mountain Lion, uninstall and reinstall openssh to see the failure. You may also want to check which libraries it is linked with using otool -L /opt/local/sbin/sshd; libwrap will probably be unavailable.

comment:11 Changed 12 years ago by bruce@…

Could you post specific instructions on how one goes about telling MacPorts to build the package with the --without-tcp-wrappers configure option?

comment:12 Changed 12 years ago by bruce@…

Cc: bruce@… added

Cc Me!

comment:13 in reply to:  11 Changed 12 years ago by justus.c79@…

Replying to bruce@…:

Could you post specific instructions on how one goes about telling MacPorts to build the package with the --without-tcp-wrappers configure option?

That should not be necessary. As matts pointed out, you can install tcp_wrappers to resolve the issue. I guess the best fix is just to add that dependency to openssh.

However, if you want to build without tcp wrappers you will need to modify the port file. Use

port file openssh

to get the file location. Then change --with-tcp-warppers to --without-tcp-wrappers in that file.

Changed 12 years ago by justus.c79@…

Attachment: Portfile-openssh.diff added

Patch file that adds tcp_wrappers dependency for Mountain Lion.

comment:14 Changed 12 years ago by jyrkiwahlstedt

Resolution: fixed
Status: newclosed

fixed in r96179

Note: See TracTickets for help on using tickets.