From owner-freebsd-apache@FreeBSD.ORG Tue Apr 8 21:55:43 2014 Return-Path: Delivered-To: apache@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4B765C23 for ; Tue, 8 Apr 2014 21:55:43 +0000 (UTC) Received: from mx1.dui.nkhosting.net (mx1.dui.nkhosting.net [213.9.94.26]) by mx1.freebsd.org (Postfix) with ESMTP id D2A7E1A0F for ; Tue, 8 Apr 2014 21:55:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mx1.dui.nkhosting.net (Postfix) with ESMTP id C2AEA20C2F030; Tue, 8 Apr 2014 23:55:41 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mx1.dui.nkhosting.net Received: from mx1.dui.nkhosting.net ([127.0.0.1]) by localhost (mx1.dui.nkhosting.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1LmBd2OSzt7G; Tue, 8 Apr 2014 23:55:28 +0200 (CEST) Received: from air13.fritz.box (w36.nkhosting.net [85.183.116.20]) (Authenticated sender: pjlists@netzkommune.de) by mx1.dui.nkhosting.net (Postfix) with ESMTP id 1C76A24B1676B; Tue, 8 Apr 2014 23:55:27 +0200 (CEST) Subject: Re: www/apache22 not honoring WITH_OPENSSL_PORT=yes under FreeBSD 10? Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Content-Type: text/plain; charset=iso-8859-1 From: Philip Jocks In-Reply-To: <53446581.7070802@gmx.de> Date: Tue, 8 Apr 2014 23:55:27 +0200 Jabber-Id: pj@netzkommune.de Content-Transfer-Encoding: quoted-printable Message-Id: References: <53446581.7070802@gmx.de> To: olli hauer X-Mailer: Apple Mail (2.1510) Cc: apache@FreeBSD.org X-BeenThere: freebsd-apache@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Support of apache-related ports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 21:55:43 -0000 Am 08.04.2014 um 23:09 schrieb olli hauer : > On 2014-04-08 17:58, Philip Jocks wrote: >> Hej, >>=20 >> I just came across this: When building in a fresh jail, mod_ssl.so is = linked against the base libraries instead of those from ports: >>=20 >> # ldd = /var/ports/basejail/usr/ports/www/apache22/work/httpd-2.2.27/modules/ssl/.= libs/mod_ssl.so >> = /var/ports/basejail/usr/ports/www/apache22/work/httpd-2.2.27/modules/ssl/.= libs/mod_ssl.so: >> libssl.so.7 =3D> /usr/lib/libssl.so.7 (0x801630000) >> libcrypto.so.7 =3D> /lib/libcrypto.so.7 (0x801899000) >> libcrypt.so.5 =3D> /lib/libcrypt.so.5 (0x801c84000) >> libthr.so.3 =3D> /lib/libthr.so.3 (0x801ea4000) >> libc.so.7 =3D> /lib/libc.so.7 (0x80081d000) >>=20 >> In an older FreeBSD 8.x jail it works as expected. A friend of mine = confirmed with a fresh FreeBSD 10 VM. >> Am I missing something? >>=20 >=20 > Hi Philip, Hi Olli, thanks for getting back to me. > have you also build devel/apr1 with 'WITH_OPENSSL_PORT=3Dyes' in = /etc/make.conf? Yes, it's a fresh FreeBSD 10.0 jail and my friend tested with a fresh VM = with same results. > 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. >=20 >=20 > OpenSSL base: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $> 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 >=20 > /usr/local/bin/apu-1-config --ldflags > -L/usr/lib -L/usr/local/lib -L/usr/local/lib/db5 >=20 >=20 > OpenSSL ports: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > $> /usr/local/bin/apu-1-config --includes > -I/usr/local/include/apr-1 -I/usr/local/include = -I/usr/local/include/db5 >=20 > $> /usr/local/bin/apu-1-config --ldflags > -L/usr/local/lib -L/usr/local/lib/db5 mine also has /usr/include and /usr/lib appended: # /usr/local/bin/apu-1-config --includes -I/usr/local/include/apr-1 -I/usr/local/include = -I/usr/local/include/db48 -I/usr/include # /usr/local/bin/apu-1-config --ldflags -L/usr/local/lib -L/usr/local/lib/db48 -L/usr/lib >=20 >=20 > And also important '/usr/local/share/apr/build-1/apr_rules.mk' >=20 > 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=3D-O2 -pipe -fno-strict-aliasing > -CPPFLAGS=3D-I/usr/include > -LDFLAGS=3D -L/usr/lib -Wl,-rpath,/usr/lib:/usr/local/lib > +CPPFLAGS=3D-I/usr/local/include -I/usr/local/include > +LDFLAGS=3D -L/usr/local/lib -Wl,-rpath,/usr/local/lib = -L/usr/local/lib > LIBS=3D > DEFS=3D-DHAVE_CONFIG_H >=20 here I got: CPPFLAGS=3D-I/usr/local/include LDFLAGS=3D -L/usr/local/lib -Wl,-rpath,/usr/local/lib Can you make anything out of this? If you build www/apache22 on a fresh FreeBSD 10 box with = "WITH_OPENSSL_PORT=3Dyes", does it link to the port instead of base? Cheers, Philip