Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Mar 2012 23:53:39 +0000
From:      Matthew Seaman <>
Subject:   Re: openssl from ports
Message-ID:  <>
In-Reply-To: <>
References:  <> <20120302171631.775dd715@scorpio> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 02/03/2012 22:27, Randal L. Schwartz wrote:

> Ahh, according to my read of /usr/ports/Mk/,
> it looks like:
>     #       if no preference was set, check for an installed base versi=
>     #       but give an installed port preference over it.
>     .if     !defined(WITH_OPENSSL_BASE) && \
>             !defined(WITH_OPENSSL_PORT) && \
>             !exists(${DESTDIR}/${LOCALBASE}/lib/ && \
>             exists(${DESTDIR}/usr/include/openssl/opensslv.h)
>     .endif
> and later
>     .if exists(${LOCALBASE}/lib/
>     check-depends::
>             @${ECHO_CMD} "Dependency error: this port wants the OpenSSL=

>             library from the FreeBSD"
>             @${ECHO_CMD} "base system. You can't build against it, whil=
e a
>             newer"
>             @${ECHO_CMD} "version is installed by a port."
>             @${ECHO_CMD} "Please deinstall the port or undefine
>             WITH_OPENSSL_BASE."
>             @${FALSE}
>     .endif
> So it looks like modern FreeBSD will Do The Right Thing if I just
> recompile the apache22 port.  Once I knew what to look for, I found it
> with a bit of grepping.

You do need WITH_OPENSSL_PORT=3Dyes in /etc/make.conf or equivalent; just=

installing security/openssl alone will cause any port that links against
openssl shlibs to emit rude messages.

Also, beware of any apache modules that might link against openssl in
their own right which should also be rebuild to use the ports version --
the classic example here is php5-openssl loaded via mod_php -- but there
are many ways of doing this.  Trying to load two different OpenSSL
shlibs into the same execution image causes instant crash and burn.



Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP:     Ramsgate
JID:               Kent, CT11 9PW

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla -



Want to link to this message? Use this URL: <>