openssl from ports

Randal L. Schwartz merlyn at
Fri Mar 2 22:27:26 UTC 2012

>>>>> "Jerry" == Jerry  <jerry at> writes:

Jerry> I have used the port's version for quite some time now. I am not sure
Jerry> if it is still required; however, I placed the following in the
Jerry> "/etc/make.conf" file:


Jerry> I then rebuilt all of the ports that require OpenSSL. Perhaps someone
Jerry> else has an easier solution.

Ahh, according to my read of /usr/ports/Mk/,
it looks like:

    #       if no preference was set, check for an installed base version
    #       but give an installed port preference over it.
    .if     !defined(WITH_OPENSSL_BASE) && \
            !defined(WITH_OPENSSL_PORT) && \
            !exists(${DESTDIR}/${LOCALBASE}/lib/ && \

and later

    .if exists(${LOCALBASE}/lib/
            @${ECHO_CMD} "Dependency error: this port wants the OpenSSL
            library from the FreeBSD"
            @${ECHO_CMD} "base system. You can't build against it, while a
            @${ECHO_CMD} "version is installed by a port."
            @${ECHO_CMD} "Please deinstall the port or undefine

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.


Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at> <URL:>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See for Smalltalk discussion

More information about the freebsd-questions mailing list