Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Apr 2014 23:12:24 +0200
From:      olli hauer <ohauer@gmx.de>
To:        freebsd-ports@freebsd.org
Cc:        Egoitz Aurrekoetxea <egoitz@ramattack.net>
Subject:   Re: Building Apache22 against OpenSSL port
Message-ID:  <53446638.4020103@gmx.de>
In-Reply-To: <EF90C683-5916-4E42-9AB8-E5E851B8EFF5@ramattack.net>
References:  <EF90C683-5916-4E42-9AB8-E5E851B8EFF5@ramattack.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-04-08 12:03, Egoitz Aurrekoetxea wrote:
> Hi, 
> 
> Have tried building Apache on a recently upgraded ports collection for linking Apache, php and all against openssl new port…. but no way of ending up that way….
> 
> I see always : 
> 
> ldd /usr/local/libexec/apache22/mod_ssl.so 
> /usr/local/libexec/apache22/mod_ssl.so:
> 	libssl.so.7 => /usr/lib/libssl.so.7 (0x801630000)
> 	libcrypto.so.7 => /lib/libcrypto.so.7 (0x801899000)
> 	libthr.so.3 => /lib/libthr.so.3 (0x801c84000)
> 	libc.so.7 => /lib/libc.so.7 (0x80081d000)
> 
> 
> Have tried with : 
> 
> make WITH_OPENSSL_PORT=yes
> 
> inserting in /etc/make.conf… but no way….
> 
> has anyone suffered this same issue?
> 
> Regards,




Hi Egoitz,

Have you also build devel/apr1 with 'WITH_OPENSSL_PORT=yes' in /etc/make.conf?
apache22/24 uses only the information from apr-1-config to calculate the path to openssl
As far as I know more and more crypto/ssl stuff will will be relocated from httpd source to apr/apu.


Here are some outputs from apu-1-config, build with OpenSSL from base / ports
so you can compare it with the output from apr-1-config on your system.


OpenSSL base:
=================
$> usr/local/bin/apu-1-config --includes
 -I/usr/local/include/apr-1 -I/usr/include -I/usr/local/include -I/usr/local/include/db5

/usr/local/bin/apu-1-config --ldflags
 -L/usr/lib -L/usr/local/lib -L/usr/local/lib/db5


OpenSSL ports:
=================
$> /usr/local/bin/apu-1-config --includes
 -I/usr/local/include/apr-1 -I/usr/local/include -I/usr/local/include/db5

$> /usr/local/bin/apu-1-config --ldflags
 -L/usr/local/lib -L/usr/local/lib/db5


And also important '/usr/local/share/apr/build-1/apr_rules.mk'

diff -nru base_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk ports_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk
--- base_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk   2014-04-08 23:00:48.000000000 +0200
+++ ports_1.5.0.1.5.3/usr/local/share/apr/build-1/apr_rules.mk  2014-04-08 23:00:46.000000000 +0200
@@ -42,8 +42,8 @@
 # configure adds to them for tests, but we restore them at the end.
 #
 CFLAGS=-O2 -pipe -fno-strict-aliasing
-CPPFLAGS=-I/usr/include
-LDFLAGS= -L/usr/lib -Wl,-rpath,/usr/lib:/usr/local/lib
+CPPFLAGS=-I/usr/local/include -I/usr/local/include
+LDFLAGS= -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib
 LIBS=
 DEFS=-DHAVE_CONFIG_H



-- 
HTH,

olli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53446638.4020103>