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:
- 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 (1)
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: | High → Normal |
comment:2 Changed 12 years ago by giesen@…
Cc: | giesen@… added |
---|
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:9 follow-up: 10 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 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 follow-up: 13 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:13 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: | new → closed |
fixed in r96179
Cc Me!