Bug 100315

Summary: www/apache22 compilation mixes port headers and base libraries with openssl installed from ports
Product: Ports & Packages Reporter: Jo Rhett <jrhett>
Component: Individual Port(s)Assignee: Clement Laforet <clement>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jo Rhett 2006-07-15 00:00:41 UTC
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"

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 ...
How-To-Repeat: cd /usr/ports/security/openssl
make install

cd /usr/ports/www/apache22
make install
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-07-15 00:55:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer
Comment 2 dfilter service freebsd_committer freebsd_triage 2007-03-17 16:03:30 UTC
clement     2007-03-17 16:03:24 UTC

  FreeBSD ports repository

  Modified files:
    www/apache22         Makefile pkg-plist 
    www/apache22/files   apache22.sh.in 
  Log:
  - Ensure we use correct OpenSSL libs [1]
  - Fix multiprofiles support in rc script [2]
  
  PR:             ports/100315 [1],
                  ports/109536 [2]
  Submitted by:   Jo Rhett <jrhett@svcolo.com> [1]
                  Eygene Ryabinkin <rea-fbsd@codelabs.ru> [2]
  
  Revision  Changes    Path
  1.202     +7 -4      ports/www/apache22/Makefile
  1.3       +2 -2      ports/www/apache22/files/apache22.sh.in
  1.80      +2 -2      ports/www/apache22/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Clement Laforet freebsd_committer freebsd_triage 2007-03-17 16:04:28 UTC
State Changed
From-To: open->closed

Committed, thanks!