Bug 100315 - www/apache22 compilation mixes port headers and base libraries with openssl installed from ports
Summary: www/apache22 compilation mixes port headers and base libraries with openssl i...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Clement Laforet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-15 00:00 UTC by Jo Rhett
Modified: 2007-03-17 16:10 UTC (History)
0 users

See Also:


Attachments
file.diff (597 bytes, patch)
2006-07-15 00:00 UTC, Jo Rhett
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 2006-07-15 00:55:29 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clement

Over to maintainer
Comment 2 dfilter service freebsd_committer 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 2007-03-17 16:04:28 UTC
State Changed
From-To: open->closed

Committed, thanks!