[MacPorts] #67986: openssh @9.4p1: build fails with zlib @1.3 installed
MacPorts
noreply at macports.org
Fri Aug 18 22:17:46 UTC 2023
#67986: openssh @9.4p1: build fails with zlib @1.3 installed
-------------------------+----------------------
Reporter: fabianwenk | Owner: artkiver
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: artkiver |
-------------------------+----------------------
Comment (by artkiver):
I couldn't help but notice this:
{{{
./configure --prefix=/opt/local --with-ssl-dir=/opt/local
--sysconfdir=/opt/local/etc/ssh --with-privsep-path=/var/empty --with-
md5-passwords --with-pid-dir=/opt/local/var/run --with-pam
--mandir=/opt/local/share/man --with-zlib=/opt/local --without-kerberos5
--with-libedit --with-pie --with-xauth=/opt/local/bin/xauth --with-ldns
--with-audit=bsm --with-keychain=apple
}}}
Specifically this parameter stood out:
{{{
--with-zlib=/opt/local
}}}
And invocation of configure manually on the OpenSSH 9.4p1 tarball yields
the same zlib error.
However, this does not:
{{{
./configure --prefix=/opt/local --with-ssl-dir=/opt/local
--sysconfdir=/opt/local/etc/ssh --with-privsep-path=/var/empty --with-
md5-passwords --with-pid-dir=/opt/local/var/run --with-pam
--mandir=/opt/local/share/man --with-zlib=/opt/local/include/zlib.h
--without-kerberos5 --with-libedit --with-pie --with-
xauth=/opt/local/bin/xauth --with-ldns --with-audit=bsm --with-
keychain=apple
}}}
Which, since I don't have the ldns stuff on the system with which I am
testing yields the following error instead:
{{{
checking for ldns-config... no
checking for ldns support... no
configure: error: ** Incomplete or missing ldns libraries.
}}}
Ignoring that for the time being, if I run make with the
{{{
--with-zlib=/opt/local/include/zlib.h
}}}
Path declaration as above it does generate the following warning:
{{{
ld: warning: -L path '/opt/local/include/zlib.h' is not a directory
}}}
But otherwise seems to build without issue?
Meanwhile, from the Portfile the pertinent line is:
{{{
--with-zlib=${prefix} \
}}}
Which, I think typically expands to /opt/local/
I'm not sure it would be wise to change that to something more like
--with-zlib=${prefix}/include or --with-zlib=${prefix}/include/zlib.h
though I'll do some additional experimenting.
--
Ticket URL: <https://trac.macports.org/ticket/67986#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list