Date: Fri, 14 Jul 2006 22:58:04 GMT From: Jo Rhett <jrhett@svcolo.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/100315: apache compilation mixes port headers and base libraries Message-ID: <200607142258.k6EMw47j022685@www.freebsd.org> Resent-Message-ID: <200607142300.k6EN0guf037037@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 100315 >Category: ports >Synopsis: apache compilation mixes port headers and base libraries >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 14 23:00:41 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jo Rhett >Release: 6.0-REL >Organization: svcolo >Environment: FreeBSD arran 6.0-RELEASE FreeBSD 6.0-RELEASE #4: Fri Nov 11 13:29:33 PST 2005 root@barrel.svcolo.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: If you have openssl installed from ports, and you compile apache22 it will use the port's headers but link against the base libraries. This produces the following error httpd: Syntax error on line 84 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_ssl.so into server: /usr/local/libexec/apache22/mod_ssl.so: Undefined symbol "X509_STORE_CTX_set_depth" >How-To-Repeat: cd /usr/ports/security/openssl make install cd /usr/ports/www/apache22 make install >Fix: Update the Makefile to include Mk/bsd.openssl.mk which provides the use of several make configuration options to control this behavior. You also need to set a variable in the Makefile to alter the RPATH for apache. Patch is ... --- Makefile_orig Thu Jul 6 11:25:35 2006 +++ Makefile Fri Jul 14 15:50:27 2006 @@ -84,10 +84,6 @@ . endif .endif -.if !defined(WITHOUT_SSL_MODULES) -USE_OPENSSL= yes -.endif - .if defined(WITH_STATIC_SUPPORT) CONFIGURE_ARGS+= --enable-static-support .endif @@ -121,6 +117,11 @@ .include "${APACHEDIR}/Makefile.doc" .include "${APACHEDIR}/Makefile.modules" .include <bsd.port.pre.mk> + +.if !defined(WITHOUT_SSL_MODULES) +USE_OPENSSL_RPATH=yes +.include "${PORTSDIR}/Mk/bsd.openssl.mk" +.endif .if defined(WITH_APR_FROM_PORTS) PLIST_SUB+= APR_PORTS="@comment " >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200607142258.k6EMw47j022685>