Ticket #35359 (closed defect: fixed)
OpenSSH configure fails on Mountain Lion
| Reported by: | justus.c79@… | Owned by: | jwa@… |
|---|---|---|---|
| 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@…) (diff)
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:
- Change the configure option --with-tcp-wrapprs to --without-tcp-wrappers
- Change the MACOSX_DEPLOYMENT_TARGET variable to 10.7
I am unsure what the consequences of option 1 are.
Attachments
Change History
comment:1 Changed 10 months ago by ryandesign@…
- Keywords mountainlion added; "Mountain Lion" libwrap "TCP Wrappers" openssh removed
- Owner changed from macports-tickets@… to jwa@…
- Description modified (diff)
- Priority changed from High to Normal
comment:3 Changed 10 months 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:9 follow-up: ↓ 10 Changed 10 months ago by 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.
comment:10 in reply to: ↑ 9 Changed 10 months 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 follow-up: ↓ 13 Changed 10 months 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:13 in reply to: ↑ 11 Changed 10 months 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 10 months ago by justus.c79@…
- Attachment Portfile-openssh.diff added
Patch file that adds tcp_wrappers dependency for Mountain Lion.
comment:14 Changed 10 months ago by jwa@…
- Status changed from new to closed
- Resolution set to fixed
fixed in r96179

